This circuit is designed to control a NEMA23 stepper motor using an Arduino Uno R3 as the main microcontroller. The circuit includes an L298N Motor Driver to interface with the stepper motor, a 12V battery to power the motor and the motor driver, and a 5V single-channel relay to control a 12V solenoid lock. Additionally, an HC-05 Bluetooth Module is incorporated for wireless communication, possibly for remote control or data transmission purposes.
5V
connected to HC-05 Bluetooth Module VCC
and 5V Single Channel Relay VCC
GND
connected to HC-05 Bluetooth Module GND
, L298N Motor Driver Ground
, and 5V Single Channel Relay GND
VIN
connected to L298N Motor Driver +5v Power
13
, 11
, 10
, 9
, and 8
connected to 5V Single Channel Relay IN
and L298N Motor Driver Input 4
, Input 3
, Input 2
, and Input 1
respectivelyRX
and TX
(pins 0
and 1
) connected to HC-05 Bluetooth Module TXD
and RXD
A
, B
, C
, and D
connected to L298N Motor Driver Output A
and Output B
+12v Power
connected to 12V Battery +
and 5V Single Channel Relay NO
+5v Power
connected to Arduino Uno R3 VIN
Ground
connected to Arduino Uno R3 GND
Output A
and Output B
connected to NEMA23Input 1
, Input 2
, Input 3
, and Input 4
connected to Arduino Uno R3 digital pins 8
, 9
, 10
, and 11
VCC
connected to Arduino Uno R3 5V
GND
connected to Arduino Uno R3 GND
IN
connected to Arduino Uno R3 pin 13
NO
connected to L298N Motor Driver +12v Power
COM
connected to 12V Solenoid Lock VCC
+
connected to L298N Motor Driver +12v Power
-
connected to L298N Motor Driver Ground
, 12V Solenoid Lock GND
, and Arduino Uno R3 GND
VCC
connected to 5V Single Channel Relay COM
GND
connected to 12V Battery -
VCC
connected to Arduino Uno R3 5V
GND
connected to Arduino Uno R3 GND
TXD
connected to Arduino Uno R3 RX
(pin 0
)RXD
connected to Arduino Uno R3 TX
(pin 1
)No code has been provided for the microcontroller. The expected code should handle the communication with the HC-05 Bluetooth Module, control the L298N Motor Driver to operate the NEMA23 stepper motor, and manage the state of the 5V Single Channel Relay to lock or unlock the 12V Solenoid Lock based on the received Bluetooth commands.