Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Stepper Motor Controller with Keypad Shield and Relay Integration

View and Edit Project In Cirkit DesignerImage of Arduino UNO Stepper Motor Controller with Keypad Shield and Relay Integration

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various components including a DM542 stepper driver, a 5V 2-Relay JD-VCC module, a keypad shield, a NEMA 23 stepper motor, limit switches, an emergency stop button, and indicator lamps. The circuit is designed to control a stepper motor and provide user input through a keypad shield, with safety features such as limit switches and an emergency stop button.

Component List

DM542 Stepper Driver

5V 2-Relay JD-VCC

Keypad Shield

NEMA 23 Stepper Motor

Arduino UNO

GND

Limit Switch

Emergency STOP

SMPS

Lamp Red

Pilot Lamp Green

Wiring Details

DM542 Stepper Driver

5V 2-Relay JD-VCC

Keypad Shield

NEMA 23 Stepper Motor

Arduino UNO

Limit Switch

Emergency STOP

SMPS

Lamp Red

Pilot Lamp Green

Code Documentation

Arduino UNO Code

/*
 * This Arduino Sketch initializes the LCD on the keypad shield.
 * The LCD is connected to the Arduino UNO via the analog pins.
 */

#include <LiquidCrystal.h>

// Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
  // Set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("Hello, World!");
}

void loop() {
  // Nothing to do here
}

This code initializes the LCD on the keypad shield connected to the Arduino UNO. The LCD is set up with 16 columns and 2 rows, and it displays the message "Hello, World!" upon initialization. The loop function is empty as there is no repetitive task to perform.