Hello Vlad,

here i go again with another question: it is possible to configure the zero position sensor behaviour?

I have a TCR5000 ir sensor panel - not just an ir led and a receiver, but a complete panel. 

It works the following way: when there is a reflection, it gives 5V to output pin, when no reflection, gives out 0V to output pin. I don't know it is a common way of working, but this panel does this way.
When i try to use it in my compass, the following happens:

it works totally opposite way that i expect: when no reflection detected by the sensor, the stepper doesn't make the calibrating round, but when i cover the sensor and it gives permanent reflection to it, the stepper makes a normal calibration round, until i remove the cover.

So i figured out, that the zero position port on arduino expects 0V when the stepper not in zero pos, and it expect 5V when the stepper in position? Am i right?

It could be configured to work in opposite way?

Please clear my confusion.

Thanks in advance,

Tom

Apr 30 in Output - Gauges by

2 Answers

Hi tomz71
This may be a solution, another possible solution is to look for the chip schmitt trigger, this has inverted logic and from there send the Arduino digital signal, and lastly it would be for plugin software, but this is done by Mr. Vlad.

https://i.ibb.co/QD7WTy0/transistor.jpg

https://www.youtube.com/watch?v=BcRHQnfaUjU
Milton Rodriguez.
May 2 by

Tom,
You can simply solder the optocouple out of the board and connect it as described on the SimVIm pages:
https://simvim.com/tech_x27.html



Vlad

May 2 by
Hello everybody,

thanks for the advices, i think the simply way will be, i'll pick out the coupler, and i'll use it standalone.

Tom

update: i made it without disassembling the module: i've reversed the surface, made the whole area reflective, and a little slice unreflective. It works well. :)
...