Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an ESP32 Devkit V1 microcontroller, a LoRa Ra-02 SX1278 module, a motor driver (ponte h), two motors with reducers, a 12V power supply, an AC source, and a rocker switch. The ESP32 Devkit V1 is used to control the LoRa module and the motor driver, which in turn controls the motors. The power supply provides the necessary voltage to the components, and the rocker switch is used to control the power to the motor driver.
Component List
LoRa Ra-02 SX1278
- Description: LoRa module for long-range communication.
- Pins: GND, NSS, MOSI, MISO, SCK, D105, DI04, 3.3V, RST, DI00, DI01, D102, DI03
ESP32 Devkit V1
- Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
Ponte H
- Description: Motor driver for controlling two motors.
- Pins: OUT4-Motor2, OUT3-Motor2, OUT2-Motor1, OUT1-Motor1, 5V, GND, 12V, IN3, IN1, IN2, IN4
Motor with Reducer (Motor 1)
- Description: Motor with a reducer for controlled motion.
- Pins: 3 - 6 VCC, GND
Motor with Reducer (Motor 2)
- Description: Motor with a reducer for controlled motion.
- Pins: 3 - 6 VCC, GND
Power Supply 12V 5AMP
- Description: Power supply providing 12V DC output.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
AC Source
- Description: AC power source.
- Pins: +, -
Rocker Switch
- Description: Switch for controlling power.
- Pins: 1, 2
Wiring Details
LoRa Ra-02 SX1278
- NSS connected to ESP32 Devkit V1 D4
- MOSI connected to ESP32 Devkit V1 D23
- MISO connected to ESP32 Devkit V1 D19
- SCK connected to ESP32 Devkit V1 D18
- GND connected to ESP32 Devkit V1 GND
- 3.3V connected to ESP32 Devkit V1 3V3
- RST connected to ESP32 Devkit V1 D5
- DI00 connected to ESP32 Devkit V1 D2
ESP32 Devkit V1
- D27 connected to Ponte H IN4
- D14 connected to Ponte H IN3
- D12 connected to Ponte H IN2
- D13 connected to Ponte H IN1
- GND connected to Ponte H GND and Power Supply 12V 5AMP GND (DC)
- VIN connected to Rocker Switch 1
Ponte H
- OUT4-Motor2 connected to Motor with Reducer (Motor 1) 3 - 6 VCC
- OUT3-Motor2 connected to Motor with Reducer (Motor 1) GND
- OUT2-Motor1 connected to Motor with Reducer (Motor 2) 3 - 6 VCC
- OUT1-Motor1 connected to Motor with Reducer (Motor 2) GND
- 5V connected to Rocker Switch 2
- 12V connected to Power Supply 12V 5AMP 12V-24V Output (DC)
Motor with Reducer (Motor 1)
- 3 - 6 VCC connected to Ponte H OUT4-Motor2
- GND connected to Ponte H OUT3-Motor2
Motor with Reducer (Motor 2)
- 3 - 6 VCC connected to Ponte H OUT2-Motor1
- GND connected to Ponte H OUT1-Motor1
Power Supply 12V 5AMP
- 220V Positive Pole (AC) connected to AC Source +
- 220V Negative Pole (AC) connected to AC Source -
- GND (DC) connected to ESP32 Devkit V1 GND and Ponte H GND
- 12V-24V Output (DC) connected to Ponte H 12V
AC Source
- + connected to Power Supply 12V 5AMP 220V Positive Pole (AC)
- - connected to Power Supply 12V 5AMP 220V Negative Pole (AC)
Rocker Switch
- 1 connected to ESP32 Devkit V1 VIN
- 2 connected to Ponte H 5V
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code documentation. Each component is described, and the connections between components are detailed to ensure proper assembly and functionality.
