I am creating a little man in the middle circuit to hijack an LED in an appliance.
I am wondering if I have the circuit right-
I have simplified the appliance circuit down to the LED circuit to focus the clarity im looking for and put together a proposed circuit.
The cathode of the LED is switched to power the LED in normal operation.
Am I right in thinking I will need a diode infront of each MCU pin so while the appliance pin is HIGH(LED OFF state), I can light the LED with the new MCU with a LOW state without current flowing from the appliance pin? and vice versa?
I have also added a 10k resistor to stop the LED floating.
they share a common power ground, or are both powered from the same 5V source,
then if circuit A is designed to provide a low signal to enable the LED, and circuit B is designed to provide a high signal to enable the LED, wire the LED cathode to output A and the LED anode via the resistor to output B.
Then, when output A is low and B is high, your LED will light.
Yes! Theoretically the current is only 0.6 mA; whereas, a LED requires about 10 mA - 15 mA (haveing 2.5V drop across its terminals) o emiit satisfactor level of light.
The OP is advised to bring down the value of R1 to 200 ohm or better to nil.
I suppose you mean to keep R2 and R3, else you’d damage the outputs.
Keeping R2 and R3 means that the brightness will differ if only one or if both MCUs steer the LED.