Hi Node-Red Gurus,
I've recently begun a greenhouse automation system with NodeRed. The NodeRed part is super easy.... Inject node -> Interval node -> GPIO output.... I'm amazed.
In the process I'm learning about making the circuit and have a question... my current wiring is below, which is tested and working. I know that it's good to use a flyback diode like this (
https://www.adafruit.com/products/755) somewhere in the jumper cables used on this wiring to keep the relay from surging and messing up the pi. However I don't know where this should go!
I'm running the relay off the 5v, a ground pin, and sending the signal via Pin 17. Should the diode be on the 5v then? or Pin 17?
So my questions are 1) Where does the flyback diode go? and 2) Do I need a transistor?
Thank you!! I'm happy to share the simple flow if needed....
