okay, so if i understand it right....
The chip has a vcc (voltage input of the 5 volts), and a ground. I connect those.
Then each sensor to the input. and the anode of a diode to the output, then a resistor and then the LED and then to ground (like in picture).
So, when the switch is high (4.9 volts), the diodes anode would be as if I had connected it to ground. But when the Sensor is low (0.13 volts), then the diodes anode would be as if I connected it to the 5 volts (vcc). Is that correct? So it kind of works like a transistor then? If 5 volts is supplied to the vcc, is that what the LED will see (minus the 1.2v drop through diode), so the LED will see a total of 3.8 volts? I think the diodes drop 1.2 volts, if I red the chip characteristics correctly.
And since no reverse current can flow to the sensor, it shouldn't interfere with the ULN2803's operation.
And since no current or voltage is really used from the sensor, it shouldn't interfere with the ULN2803's operation.
So, if that is correct, will I need a resistor between sensor and inverter to drop the voltage lower to get closer to 0 volts when the switch is activated with the magnet?
A Little confused on the Schematic of the 74HC240.
Would it be connected as....
Sensor to 1A0 then 1Y0 to Diode Anode
Sensor to 1A1 then 1Y1 to Diode Anode
Sensor to 1A2 then 1Y2 to Diode Anode
Sensor to 1A3 then 1Y3 to Diode Anode
Sensor to 2A0 then 2Y0 to Diode Anode
etc....
What are 1OE and 2OE for, it says 'Output Enable Input (Active LOW'
What would I connect GND1 to? Do I just use a couple of vias through the pad and then go under the board and connect to ground?
Would I need any other resistors or capacitors?