I am trying to connect connect an normally closed push button to my Arduino OPTA. I am using a 12V power supply which powers the OPTA and the push button. When I press the button, I want one of the inbuilt leds to light up. The
The problem that I am facing is that the OPTA does not react on button presses (continuity has been verified with voltmeter, so wiring is correct).
Thank you. I read somewhere that the range for the analog input input is between 0 and 10V, and for digital inputs its between 0 and 24V. Although not completely sure about this
I managed to test an analog between 0 and 10 volts. Digital inputs however, remain a mystery. I tested with 12V to see if the DI went high, with still no luck. I think I will try a higher voltage, however @nachoherrera quote about "everything above 5V is seen as high" still puzzles me...
I think that you are using an incorrect pin mapping. As stated in Opta's User Manual, Opta's terminal I8 is mapped either as A7 or PIN_A7, you are using 8 in your code. So, the following line of code: