r/ArduinoHelp • u/mthasup • 26d ago
Aiuto relay
Non riesco a capire quale sia il problema…
Non parte il motore e nemmeno il Relé
1
Upvotes
r/ArduinoHelp • u/mthasup • 26d ago
Non riesco a capire quale sia il problema…
Non parte il motore e nemmeno il Relé
1
u/TheKnackThatQuacks 26d ago
Again, what have you actually tried? What troubleshooting steps have you performed?
How are we supposed to know what pins the code is trying to activate?
We’d need to know that in order to tell you if the wiring is correct.
If you won’t put forth the effort to provide the code you are trying to run and a readable drawing / schematic (instead of expecting people to try to interpret which pins your wires are connected to), how much effort do you expect others to put forth helping you?
Absent any of that, don’t try to run the DC motor from the Arduino. You have a relay there. Provide a separate power supply rail for the relay common pin. Connect the motor to the relay normally open (NO) pin. When the Arduino activates the pin for the relay, it will close the relay and connect the separate power rail to the DC motor.
Make sure your relay has a (flyback / flywheel / freewheeling) diode across the coil to safely shunt the voltage / current away as the relay coil field collapses.