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

Arduino UNO-Based Dual Stepper Motor Controller with Gesture Sensing and RTC Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Dual Stepper Motor Controller with Gesture Sensing and RTC Display

Circuit Documentation

Summary

This project is an Arduino UNO-based dual stepper motor controller with gesture sensing and RTC display. The circuit includes the following components:

The functionality of the circuit includes controlling two stepper motors using ULN2003A driver boards, displaying RTC time on a 16x2 I2C LCD, using the APDS-9960 for gesture-based control, indicating status with a green LED, and using pushbuttons for additional control.

Component List

Arduino UNO

28BYJ-48 Stepper Motor

ULN2003A Breakout Board

APDS-9960 RGB and Gesture Sensor

DS1307 RTC (Wokwi Compatible)

LED: Two Pin (green)

Resistor

Pushbutton

16x2 I2C LCD

Wiring Details

Arduino UNO

28BYJ-48 Stepper Motor (first)

28BYJ-48 Stepper Motor (second)

APDS-9960 RGB and Gesture Sensor

DS1307 RTC (Wokwi Compatible)

LED: Two Pin (green)

Resistor

Pushbutton (first)

Pushbutton (second)

16x2 I2C LCD

Code Documentation

/*
 * Arduino UNO-Based Dual Stepper Motor Controller with Gesture Sensing and RTC Display
 *
 * Components:
 * - Arduino UNO
 * - Two 28BYJ-48 Stepper Motors with ULN2003A Driver Boards
 * - APDS-9960 RGB and Gesture Sensor
 * - DS1307 RTC Module
 * - 16x2 I2C LCD Display
 * - Green LED with Resistor
 * - Two Pushbuttons
 *
 * Functionality:
 * - Control two stepper motors using ULN2003A driver boards
 * - Display RTC time on 16x2 I2C LCD
 * - Use APDS-9960 for gesture-based control
 * - Indicate status with a green LED
 * - Use pushbuttons for additional control
 */

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Stepper.h>
#include <Adafruit_APDS9960.h>
#include <RTClib.h>

// Pin definitions
#define LED_PIN A1
#define BUTTON1_PIN 3
#define BUTTON2_PIN 12

// Stepper motor pins
#define STEPPER1_IN1 7
#define STEPPER1_IN2 6
#define STEPPER1_IN3 5