We are installing an encoder to our Arduino and stepper motor. This is so we can define and find “home” when everything is turned on. We are using an optical encoder hooked up to the 5 volts from the Arduino and pin number 2 as an input from the “index” of the encoder. For the Arduino we are getting 5 volts at “index” and it drops only to about 2 volts out of "index’. Is this enough voltage change for the Arduino to detect from “LOW” to “HIGH”? Thanks
Hi,
From the ATMega328 datasheet :
Therefore, if your VCC is 5V. The VIL would be from -0.5 to 1.5V and VIH would be from 3V to 5.5V.
2V would be in the invalid voltage region and might not be recognized by the Arduino.
Thanks for your help.