Circuit Documentation
Summary
This circuit is designed to control a 12V solenoid lock and a NEMA17 stepper motor using an Arduino Uno R3 as the main microcontroller. The circuit includes a 5V single-channel relay to interface the Arduino with the higher voltage required by the solenoid lock, and an L298N Motor Driver to control the stepper motor. Communication with the Arduino is facilitated by a Bluetooth module. The entire system is powered by a 12V battery, which also directly supplies the solenoid lock and the motor driver.
Component List
12V Solenoid Lock
- Pins: VCC, GND
- Description: A solenoid lock that operates at 12V.
5V Single Channel Relay
- Pins: NC, COM, NO, IN, GND, VCC, vcc, Vin
- Description: A relay module used to control high power devices with a low power signal.
L298N Motor Driver Controller Board Module
- Pins: Output A, +12v Power, +5v Power, Ground, Output B, Input 4, Input 3, Input 2, Input 1
- Description: A motor driver module for controlling stepper motors.
Arduino Uno R3
- Pins: RX, TX, Digital Pins (2-13), GND, AREF, Analog Pins (A0-A5), Vin, 5V, 3.3V, RESET
- Description: A microcontroller board based on the ATmega328P.
Bluetooth Module
- Pins: en, vcc, gnd, txd, rxd, start
- Description: A wireless communication module for short-range communications.
NEMA17 Stepper Motor
- Pins: A, B, C, D
- Description: A stepper motor commonly used for precision control in CNC machines and 3D printers.
12V Battery
- Pins: -, +
- Description: A power source for the circuit.
Wiring Details
12V Solenoid Lock
- VCC: Connected to the COM pin of the 5V Single Channel Relay.
- GND: Connected to the common ground net.
5V Single Channel Relay
- NC: Not connected.
- COM: Connected to the VCC pin of the 12V Solenoid Lock.
- NO: Connected to the +12v Power pin of the L298N Motor Driver and the + pin of the 12V Battery.
- IN: Connected to pin 13 of the Arduino Uno R3.
- GND: Connected to the common ground net.
- VCC: Connected to the 5V pin of the Arduino Uno R3.
- vcc: Not used in this circuit.
- Vin: Not used in this circuit.
L298N Motor Driver Controller Board Module
- Output A: Connected to the A and B pins of the NEMA17 Stepper Motor.
- +12v Power: Connected to the NO pin of the 5V Single Channel Relay and the + pin of the 12V Battery.
- +5v Power: Connected to the Vin pin of the Arduino Uno R3.
- Ground: Connected to the common ground net.
- Output B: Connected to the C and D pins of the NEMA17 Stepper Motor.
- Input 4: Connected to pin 11 of the Arduino Uno R3.
- Input 3: Connected to pin 10 of the Arduino Uno R3.
- Input 2: Connected to pin 9 of the Arduino Uno R3.
- Input 1: Connected to pin 8 of the Arduino Uno R3.
Arduino Uno R3
- RX: Connected to the TXD pin of the Bluetooth Module.
- TX: Connected to the RXD pin of the Bluetooth Module.
- Digital Pins (2-13): Various connections to the L298N Motor Driver and the 5V Single Channel Relay.
- GND: Connected to the common ground net.
- 5V: Connected to the VCC pin of the 5V Single Channel Relay.
- Vin: Connected to the +5v Power pin of the L298N Motor Driver.
Bluetooth Module
- en: Not used in this circuit.
- vcc: Connected to the 5V pin of the Arduino Uno R3.
- gnd: Connected to the common ground net.
- txd: Connected to the RX pin of the Arduino Uno R3.
- rxd: Connected to the TX pin of the Arduino Uno R3.
- start: Not used in this circuit.
NEMA17 Stepper Motor
- A: Connected to the Output A pin of the L298N Motor Driver.
- B: Connected to the Output A pin of the L298N Motor Driver.
- C: Connected to the Output B pin of the L298N Motor Driver.
- D: Connected to the Output B pin of the L298N Motor Driver.
12V Battery
- -: Connected to the common ground net.
- +: Connected to the NO pin of the 5V Single Channel Relay and the +12v Power pin of the L298N Motor Driver.
Documented Code
Since no code was provided in the input, this section is left blank. The code would typically include the initialization of the pins, the setup of the Bluetooth communication, and the control logic for the solenoid lock and the stepper motor.