Arduino-Controlled Autonomous Rover with LIDAR Navigation and Water Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to interface various sensors, actuators, and modules with an Arduino UNO microcontroller and an ESP-8266 Controller. It includes a LIDAR sensor for distance measurement, a GPS module for location tracking, a DC motor driver for controlling motors, a servo motor for precision control, an ESP32-CAM for image capture, voltage regulators for power management, and water level sensors for detecting the presence of water. The circuit is powered by a 12v Battery and uses a 3.3V regulator and a 7805 voltage regulator to provide the necessary voltage levels to the components. Communication between devices is facilitated through digital, analog, and I2C interfaces.
Component List
- 12v Battery: Provides the main power source for the circuit.
- SparkFun Accessories LIDAR-Lite v3: A compact, high-performance optical distance measurement sensor.
- GPS NEO 6M: A GPS module for location tracking.
- L298N DC motor driver: A module for controlling up to two DC motors.
- Servo: A motor capable of precise position control.
- ESP32 - CAM: A small camera module with Wi-Fi capabilities.
- 3.3V regulator: Provides a stable 3.3V output from a higher voltage input.
- 7805: A voltage regulator that provides a stable 5V output from a higher voltage input.
- Arduino UNO: A microcontroller board based on the ATmega328P.
- rtc MODULE: A real-time clock module for keeping track of the current time.
- Water Level Sensor: A sensor for detecting the presence of water.
- DC Motor: An electric motor that runs on direct current electricity.
- ESP-8266 Controller: A Wi-Fi capable microcontroller module.
Wiring Details
12v Battery
-(Negative) connected to the common ground.+(Positive) connected to the input of the 3.3V regulator and the 7805 voltage regulator.
SparkFun Accessories LIDAR-Lite v3
GNDconnected to the common ground.5V (red)connected to the 5V output from the 7805 voltage regulator.SDA (blue)andSCL (green)connected to the I2C bus on the Arduino UNO (A4 and A5).
GPS NEO 6M
GNDconnected to the common ground.VCCconnected to the 5V output from the 7805 voltage regulator.RXconnected to digital pin D5 on the Arduino UNO.TXconnected to digital pin D4 on the Arduino UNO.
L298N DC motor driver
GNDconnected to the common ground.5Vconnected to the 5V output from the 7805 voltage regulator.IN1,IN2,IN3,IN4,ENA, andENBconnected to various digital pins on the Arduino UNO for motor control.OUT1,OUT2,OUT3,OUT4connected to the DC Motors.
Servo
GNDconnected to the common ground.VCCconnected to the 5V output from the 7805 voltage regulator.PWMconnected to analog pin A1 on the Arduino UNO.
ESP32 - CAM
GNDconnected to the common ground.3V3connected to the 3.3V output from the 3.3V regulator.VORandVOTconnected to the RX and TX pins on the ESP-8266 Controller.
3.3V regulator
GNDconnected to the common ground.OUTproviding 3.3V to the ESP32 - CAM.Vinconnected to the positive terminal of the 12v Battery.
7805
Gndconnected to the common ground.Voutproviding 5V to various components in the circuit.Vinconnected to the positive terminal of the 12v Battery.
Arduino UNO
GNDconnected to the common ground.5Vproviding 5V to various components in the circuit.A0toA5,D2toD13connected to various components for control and data acquisition.
rtc MODULE
GNDconnected to the common ground.VCCconnected to the 5V output from the 7805 voltage regulator.SDAandSCLconnected to the I2C bus on the Arduino UNO (A4 and A5).
Water Level Sensor
GNDconnected to the common ground.VCCconnected to the 5V output from the 7805 voltage regulator.SIGconnected to digital pins D6, D7, and D8 on the Arduino UNO.
DC Motor
pin 1andpin 2connected to the outputs of the L298N DC motor driver.
ESP-8266 Controller
GNDconnected to the common ground.3V3connected to the 3.3V output from the 3.3V regulator.RXandTXconnected to the ESP32 - CAM for serial communication.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code for the Arduino UNO is a template with empty setup and loop functions. This code needs to be populated with the logic to control and interact with the connected components based on the specific requirements of the circuit.
ESP-8266 Controller Code
No code was provided for the ESP-8266 Controller.