Diodes Needed for Back Feed?

Thread Starter

Jibebuoy

Joined Nov 5, 2025
59
Hi - I am wondering if I need diodes to prevent any back feed from occurring or if the + voltage from my Nano MCU will go straight to ground? Please see below, and thank you.

Screenshot 2026-03-05 174343.jpg
 

dendad

Joined Feb 20, 2016
4,635
D1 will short A0 to Gnd and D3 will short A2 to ground (as the relays allow).
What is the point of those diodes? Why do you think they need to connected to the analog pins?
 

panic mode

Joined Oct 10, 2011
4,864
this is your latching relay info:
1772763948325.png

coils themselves are not polarized so above document suggests using MOVs as suppression.
if you want to use diodes (cannot blame you), you need to watch polarity....
KC is the common terminal. if you use examples in the document (KC is the negative side), then diodes need to be placed like this:
1772764253478.png

but since you are using KC as positive 12V, diodes would need to be reversed. like this:
1772764332823.png
or in your circuit, they would be placed across coils but in such orientation that in NORMAL operation current does NOT flow through them:
1772765227628.png

same applies when adding clamping diodes to analog inputs. and add some series resistor as well. 1k will do.
finally clamping diodes will cause +5V rail to rise under faults. to deal with that add capacitors. usually 100nF and 10uF will do the trick.
 
Last edited:

Thread Starter

Jibebuoy

Joined Nov 5, 2025
59
D1 will short A0 to Gnd and D3 will short A2 to ground (as the relays allow).
What is the point of those diodes? Why do you think they need to connected to the analog pins?
I am concerned if there would be some stray voltage that might not find its way to ground and will end up finding its way to an MCU pin.
 

panic mode

Joined Oct 10, 2011
4,864
while at it orient everything so it is easy to read, and make the signal flow from left to right such as
1772804277642.png

do not turn things sideways, the arduino, +12V power flags and transistors/LEDs circuits look weird.

in KiCad schematics you have not just rotation - things can be flipped using X and Y keys so that connections line up for more readable signal flow. better organized circuits are easy to copy/paste. so applying above, skeleton of this circuit would look something like:
1772805834869.png
 
Top