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

Arduino Nano-Controlled Robotic Vehicle with Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of Arduino Nano-Controlled Robotic Vehicle with Ultrasonic Sensor

Circuit Documentation

Summary

This circuit is designed to control two hobby motors using an L298N DC motor driver, interfaced with an Arduino Nano microcontroller. The circuit includes an ultrasonic sensor (HC-SR04) for distance measurement, a red LED indicator, and a voltage regulator (7805) to ensure stable 5V supply. A rocker switch is used to control the power supply from a 18650 Li-Ion battery. The Arduino Nano is programmed to interact with the motor driver and the ultrasonic sensor, potentially for a robotic application where distance sensing is required to navigate.

Component List

Resistor

LED: Two Pin (red)

L298N DC Motor Driver

7805 Voltage Regulator

Arduino Nano

Motor Amarillo Motorreductor Hobby (x2)

HC-SR04 Ultrasonic Sensor

Rocker Switch

18650 Li-Ion Battery

Wiring Details

Resistor

LED: Two Pin (red)

L298N DC Motor Driver

7805 Voltage Regulator

Arduino Nano

Motor Amarillo Motorreductor Hobby

HC-SR04 Ultrasonic Sensor

Rocker Switch

18650 Li-Ion Battery

Documented Code

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

}

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

}

File: sketch.ino

The provided code is a template with empty setup() and loop() functions, which are the entry points for Arduino code. The setup() function is called once when the microcontroller is powered on or reset, and the loop() function is called repeatedly, allowing the microcontroller to perform operations based on the logic defined within it. The actual implementation details would be added to these functions to control the motors and read from the ultrasonic sensor.