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

Arduino UNO-Based Battery-Powered Robotic Vehicle with Magnetometer and Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Battery-Powered Robotic Vehicle with Magnetometer and Ultrasonic Sensor

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, a 12V battery, two DC motors, a Servomotor S05NF, an HC-SR04 Ultrasonic Sensor, and a QMC5883L Magnetometer. The circuit is designed to control the motors and read sensor data using the Arduino UNO.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • 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
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows control of two 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
  3. Battery 12V

    • Description: A 12V battery used to power the motor driver.
    • Pins: +, -
  4. DC Motor

    • Description: A standard DC motor.
    • Pins: pin 1, pin 2
  5. Servomotor S05NF

    • Description: A standard servomotor.
    • Pins: SIG, VCC, GND
  6. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic sensor used for distance measurement.
    • Pins: VCC, TRIG, ECHO, GND
  7. QMC5883L Magnetometer

    • Description: A magnetometer used for measuring magnetic fields.
    • Pins: VCC, GND, SCL, SDA, DRDY

Wiring Details

Arduino UNO

L298N DC Motor Driver

Battery 12V

DC Motor 1

DC Motor 2

Servomotor S05NF

QMC5883L Magnetometer

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:

}

Additional Documentation (documentation.txt)

This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO microcontroller.