الطلب
“An Arduino Uno wired to a relay and L298N motor driver: power the relay from 5 V, control it from D7, feed the driver through the relay, and use D8, D9 and D10 for IN1, IN2 and ENA.”
جرّب إذنMove the relay input to D6Add a second motor channel
ما الذي يتضمنه هذا الرسم
اقرأ القرارات الكامنة وراءه.
01
Use relay COM/NO to switch 12V supply to L298N 12V pin, isolating motor power when idle
02
Drive L298N IN1/IN2 with Arduino D8/D9 for forward/reverse and ENA with D10 for PWM speed
03
Share common ground between Arduino, relay, and L298N via top negative rail
Use this wiring when building a remote-controlled DC motor driver with safe power switching and reversible speed control on a half-size breadboard.