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

Wi-Fi Controlled Smart Feeder with ESP32 and Arduino UNO

View and Edit Project In Cirkit DesignerImage of Wi-Fi Controlled Smart Feeder with ESP32 and Arduino UNO

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various sensors, actuators, and microcontrollers. The circuit is designed to monitor environmental conditions, control motors, and upload sensor data to Firebase. The main components include an ESP32 microcontroller, an Arduino UNO, stepper motors, sensors, and power supplies.

Component List

  1. Nema 17 42-STH48

    • Description: Stepper motor
    • Pins: A2 (black), A1 (Green), B2 (Red), B1 (Blue)
  2. POWER SUPPLY 12V 5AMP

    • Description: Power supply unit
    • Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
  3. Power Jack

    • Description: Power jack for external power supply
    • Pins: POSITIF, NEGATIF
  4. ESP32 38 PINS

    • Description: Microcontroller with Wi-Fi and Bluetooth capabilities
    • Pins: GND, 23, 22/SCL, 1, 2, 21/SDA, 19, 18, 5, 17/TX2, 16/RX2, 4, 0, 15, D1, D0, CLK, 3V3, EN, VP, VN, 34, 35, 32, 33, 25, 26, 27, 14, 12, 13, D2, D3, 11, 5V/VIN
  5. Mist Maker Module

    • Description: Module for creating mist
    • Pins: Usb Type B
  6. IR Sensor

    • Description: Infrared sensor for object detection
    • Pins: out, gnd, vcc
  7. Fan

    • Description: Cooling fan
    • Pins: GND, 5V
  8. Water Level Sensor

    • Description: Sensor for detecting water level
    • Pins: SIG, VCC, GND
  9. RTC DS3231

    • Description: Real-time clock module
    • Pins: 32K, SQW, SCL, SDA, VCC, GND
  10. A4988 on Breakout Board

    • Description: Stepper motor driver
    • Pins: VIN (12-24V), GND, 2B, 2A, 1A, 1B, ENABLE, STEP, DIR, VDD (5V)
  11. Arduino UNO

    • Description: Microcontroller board
    • 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
  12. 12v to 5v Step Down Power Converter

    • Description: Power converter
    • Pins: VIN 9v-36v, VIN+, VIN-, USB OUTPUT 5V, 5v OUTPUT, GND
  13. HC-SR04 Ultrasonic Sensor

    • Description: Ultrasonic distance sensor
    • Pins: VCC, TRIG, ECHO, GND
  14. DHT11

    • Description: Temperature and humidity sensor
    • Pins: DATA, GND, VCC
  15. Power 220v

    • Description: 220V power source
    • Pins: hot wire, neutral wire
  16. 5v Relay

    • Description: Relay module
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC

Wiring Details

Nema 17 42-STH48

POWER SUPPLY 12V 5AMP

Power Jack

ESP32 38 PINS

IR Sensor

RTC DS3231

A4988 on Breakout Board

Fan

Mist Maker Module

12v to 5v Step Down Power Converter

Documented Code

ESP32 Code

#include <WiFi.h>
#include <Firebase_ESP_Client.h>
#include "DHT.h"

// Pin configuration
#define DHTPIN 14              // DHT sensor on GPIO14
#define DHTTYPE DHT11          // DHT11 sensor type