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

Arduino Nano Controlled Robot with Ultrasonic Sensor and Dual Motor Drivers

View and Edit Project In Cirkit DesignerImage of Arduino Nano Controlled Robot with Ultrasonic Sensor and Dual Motor Drivers

Circuit Documentation

Summary

This circuit is designed to control a pair of DC Mini Metal Gear Motors using a TB6612FNG Motor Driver, interfaced with an Arduino Nano microcontroller. The circuit also includes an HC-SR04 Ultrasonic Sensor for distance measurement, a Servomotor SG90 for positioning, and a 5 channel IR sensor for line or edge detection. Power is supplied by a 12V battery. The Arduino Nano is responsible for processing inputs from the sensors and controlling the motors and servomotor accordingly.

Component List

TB6612FNG Motor Driver

HC-SR04 Ultrasonic Sensor

Servomotor SG90

Battery 12V

DC Mini Metal Gear Motor

5 Channel IR Sensor

Arduino Nano

Wiring Details

TB6612FNG Motor Driver

HC-SR04 Ultrasonic Sensor

Servomotor SG90

5 Channel IR Sensor

Arduino Nano

Documented Code

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

}

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

}

Filename: sketch.ino

This is the basic template for the Arduino code. The setup() function is called once when the program starts and is used to initialize the settings. The loop() function runs continuously after setup() has finished. The actual implementation of the control logic for the motors, servomotor, and reading from the sensors will be added to this template.