Hi everyone,
I’m experimenting with relay switching right now and have a question regarding flyback diodes. I had a look at different circuits and tested a few on a breadboard. I even traced my EQD Acapulco Gold to have a look how they’ve done the switching.
Here are a few examples:
Top right is the way it’s done in the PedalPCB intelligent relay bypass module: https://docs.pedalpcb.com/project/PedalPCB-IntelligentRelayBypass.pdf
While looking at the schematics of a few circuits to power a relay I stumbled over different designs. The first batch used a non-latching relay and pretty much all had a diode between the power pins of the relay.
I had noise problems with that design and stumbled upon circuits with single coil latching relays like the TQ2-L-5V or EC2-5SNU. The TQ2 is used in the PedalPCB relay bypass module and the EC2 is used in my EQD Acapulco Gold. With those relays you change the polarity of the two power pins to switch the relay on or off. This is the cause you can’t just use one diode across both pins to protect the ATTINY against the current coming from the relay when you change the state of the relay.
Pretty much all info I could find said that you should use a flyback diode to protect the micro controller but the vast majority talked about non latching relays. The few resources which talked about latching relays said you could use back to back zener diodes (is this called H-Bridge protection?). The datasheet and application guides show a few examples but seem to lack explicit instructions for single coil latching relays (Well, at least for me as l laymen). EQD use a resistor to ground on both pins and I not quite sure if they serve a similar purpose.
I’m struggling to decide on how for to go with this. Are the diodes necessary in this case or can I leave them off without damaging the ATTINY over time. If you have a few keywords for me for further research that would be great too.
Here’s a picture of circuit block with the switch and LED as I’m planning it right now:
Here a a few passages from the application guidelines regarding those diodes:
Datasheet: https://www3.panasonic.biz/ac/e_download/control/relay/signal/catalog/mech_eng_tq.pdf
General Applications Guidelines: https://www3.panasonic.biz/ac/e_dow.../catalog/mech_eng_cau_general.pdf?f_cd=401620
Applications Guidlines: https://www3.panasonic.biz/ac/e_dow...rm/catalog/mech_eng_cau_appli.pdf?f_cd=401623
I’m experimenting with relay switching right now and have a question regarding flyback diodes. I had a look at different circuits and tested a few on a breadboard. I even traced my EQD Acapulco Gold to have a look how they’ve done the switching.
Here are a few examples:
Top right is the way it’s done in the PedalPCB intelligent relay bypass module: https://docs.pedalpcb.com/project/PedalPCB-IntelligentRelayBypass.pdf
While looking at the schematics of a few circuits to power a relay I stumbled over different designs. The first batch used a non-latching relay and pretty much all had a diode between the power pins of the relay.
I had noise problems with that design and stumbled upon circuits with single coil latching relays like the TQ2-L-5V or EC2-5SNU. The TQ2 is used in the PedalPCB relay bypass module and the EC2 is used in my EQD Acapulco Gold. With those relays you change the polarity of the two power pins to switch the relay on or off. This is the cause you can’t just use one diode across both pins to protect the ATTINY against the current coming from the relay when you change the state of the relay.
Pretty much all info I could find said that you should use a flyback diode to protect the micro controller but the vast majority talked about non latching relays. The few resources which talked about latching relays said you could use back to back zener diodes (is this called H-Bridge protection?). The datasheet and application guides show a few examples but seem to lack explicit instructions for single coil latching relays (Well, at least for me as l laymen). EQD use a resistor to ground on both pins and I not quite sure if they serve a similar purpose.
I’m struggling to decide on how for to go with this. Are the diodes necessary in this case or can I leave them off without damaging the ATTINY over time. If you have a few keywords for me for further research that would be great too.
Here’s a picture of circuit block with the switch and LED as I’m planning it right now:
Here a a few passages from the application guidelines regarding those diodes:
Datasheet: https://www3.panasonic.biz/ac/e_download/control/relay/signal/catalog/mech_eng_tq.pdf
General Applications Guidelines: https://www3.panasonic.biz/ac/e_dow.../catalog/mech_eng_cau_general.pdf?f_cd=401620
Applications Guidlines: https://www3.panasonic.biz/ac/e_dow...rm/catalog/mech_eng_cau_appli.pdf?f_cd=401623
Last edited: