Quote:
Originally Posted by GeeTwo
The encoder class is intended for sensors which send a signal rather frequently, typically 4 times per motor revolution. I'm not familiar with the sensor you're using but this reads like you're planning to use this to keep an item between boundaries. What are you trying to control, and what does it mean when these trigger values are met?
|
Using it as a lift encoder. We are out of digital ports so we want to create a digital source for the encoder routine using the analog trigger output. The trigger creates a true pulse when the Greyhill output transitions above 3.5v and a low pulse when below 1.5 volts. We were able to use the trigger output to drive a counter successfully so we know its working. Just doesn't seem to work with the encoder class.