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,