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

Arduino UNO and ESP8266 Wi-Fi Controlled Motor System

View and Edit Project In Cirkit DesignerImage of Arduino UNO and ESP8266 Wi-Fi Controlled Motor System

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, an ESP8266 WiFi module, a stepper motor with its driver, two DC motors with their drivers, a peristaltic pump, and a 12V battery. The Arduino UNO controls the motors and communicates with the ESP8266 module. The L298N motor drivers are used to drive the DC motors and the peristaltic pump, while the A4988 driver is used for the stepper motor.

Component List

  1. 12V Battery

    • Description: Provides power to the circuit.
    • Pins: +, -
  2. Arduino UNO

    • Description: Microcontroller used to control the circuit.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  3. Stepper Motor (Bipolar)

    • Description: Motor used for precise control of rotation.
    • Pins: D, B, C, A
  4. L298N DC Motor Driver

    • Description: Driver used to control DC motors.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  5. AC Wire

    • Description: Provides AC power.
    • Pins: GND, Phase
  6. Peristaltic Pump

    • Description: Pump used for fluid transfer.
    • Pins: +, -
  7. A4988 Stepper Motor Driver (Red)

    • Description: Driver used to control the stepper motor.
    • Pins: ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR, VMOT, GND, 2B, 2A, 1A, 1B, VDD
  8. Greartisan DC 12V 45RPM Turbo Worm Geared Motor

    • Description: DC motor used for high torque applications.
    • Pins: +, -
  9. Limit Switch

    • Description: Switch used to detect the limit of movement.
    • Pins: C, NO, NC
  10. ESP8266 ESP-02 WiFi Module

    • Description: WiFi module used for wireless communication.
    • Pins: GPIO15, GPIO0, GPIO2, RST, VCC, TXD, RXD, GND

Wiring Details

12V Battery

Arduino UNO

Stepper Motor (Bipolar)

L298N DC Motor Driver

AC Wire

Peristaltic Pump

A4988 Stepper Motor Driver (Red)

Greartisan DC 12V 45RPM Turbo Worm Geared Motor

Limit Switch

ESP8266 ESP-02 WiFi Module

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main code that runs repeatedly.