Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Controlled Bluetooth Stepper Motor with Solenoid Lock and Relay Switching

Image of Arduino-Controlled Bluetooth Stepper Motor with Solenoid Lock and Relay Switching

Circuit Documentation

Summary

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.

Component List

Arduino Uno R3

  • Microcontroller board based on the ATmega328P
  • Features digital I/O pins, analog input pins, and various power pins

NEMA23

  • A stepper motor commonly used for high torque applications

L298N Motor Driver Controller Board Module

  • A dual H-bridge motor driver capable of driving a pair of DC motors or one stepper motor

5V Single Channel Relay

  • An electromechanical switch used to control a high power circuit with a low power signal

12V Battery

  • Provides power to the circuit

12V Solenoid Lock

  • An electrically-controlled lock mechanism

HC-05 Bluetooth Module

  • A wireless communication module for Bluetooth connectivity

Wiring Details

Arduino Uno R3

  • 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
  • Digital pins 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 respectively
  • RX and TX (pins 0 and 1) connected to HC-05 Bluetooth Module TXD and RXD

NEMA23

  • Pins A, B, C, and D connected to L298N Motor Driver Output A and Output B

L298N Motor Driver Controller Board Module

  • +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 NEMA23
  • Input 1, Input 2, Input 3, and Input 4 connected to Arduino Uno R3 digital pins 8, 9, 10, and 11

5V Single Channel Relay

  • 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

12V Battery

  • + connected to L298N Motor Driver +12v Power
  • - connected to L298N Motor Driver Ground, 12V Solenoid Lock GND, and Arduino Uno R3 GND

12V Solenoid Lock

  • VCC connected to 5V Single Channel Relay COM
  • GND connected to 12V Battery -

HC-05 Bluetooth Module

  • 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)

Documented Code

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.