LTV-846 & ATMega Port or what stupid thing am I doing
I have a 12VDC source feeding the diode input to an optocoupler via a 560Ω resistor.
The diode cathodes to ground.
The input to the AVR ports are inputs and their prospective pullups are on.
The emitters of the opto transistors go to ground. The same common ground as the AVR.
What I see
is 12VDC on the port inputs!
WHY???