Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino Nano-Controlled Robotic Vehicle with Ultrasonic Sensor and Laser Module

Image of Arduino Nano-Controlled Robotic Vehicle with Ultrasonic Sensor and Laser Module

Circuit Documentation

Summary

This circuit integrates an Arduino Nano microcontroller with a TB6612FNG Motor Driver to control two DC motors. Additionally, it includes a laser module and an HC-SR04 Ultrasonic Sensor for distance measurement. The circuit is powered by a 9V battery, and the ground connections are shared among the components to complete the circuit.

Component List

Arduino Nano

  • Microcontroller with a variety of digital and analog I/O pins.
  • Used as the central processing unit for controlling the motors, laser, and reading sensor data.

DC Motor (x2)

  • Electric motor that converts DC electrical power into mechanical power.
  • Controlled by the motor driver to perform tasks that require rotational movement.

TB6612FNG Motor Driver

  • A motor driver IC capable of driving two DC motors.
  • Interfaces with the Arduino Nano to control the speed and direction of the motors.

Laser Module

  • A module that emits a focused beam of light.
  • Controlled by the Arduino Nano for applications such as distance marking or as a visual indicator.

HC-SR04 Ultrasonic Sensor

  • A sensor that measures distance by emitting ultrasonic waves and measuring the time taken for the echo to return.
  • Connected to the Arduino Nano for distance measurement tasks.

9V Battery

  • Provides the power supply for the motor driver and indirectly for the other components through voltage regulation by the Arduino Nano.

Wiring Details

Arduino Nano

  • D3 connected to TB6612FNG Motor Driver PWMA
  • D4 connected to TB6612FNG Motor Driver AI1
  • D5 connected to TB6612FNG Motor Driver AI2
  • D6 connected to TB6612FNG Motor Driver PWMB
  • D7 connected to TB6612FNG Motor Driver BI1
  • D8 connected to TB6612FNG Motor Driver BI2
  • D9 connected to TB6612FNG Motor Driver STBY
  • D10 connected to HC-SR04 Ultrasonic Sensor TRIG
  • D11/MOSI connected to HC-SR04 Ultrasonic Sensor ECHO
  • D12/MISO connected to Laser Module +
  • GND connected to TB6612FNG Motor Driver GND, HC-SR04 Ultrasonic Sensor GND, and Laser Module -
  • 5V connected to TB6612FNG Motor Driver VCC and HC-SR04 Ultrasonic Sensor VCC

DC Motor #1

  • pin 1 connected to TB6612FNG Motor Driver B01
  • pin 2 connected to TB6612FNG Motor Driver B02

DC Motor #2

  • pin 1 connected to TB6612FNG Motor Driver A01
  • pin 2 connected to TB6612FNG Motor Driver A02

TB6612FNG Motor Driver

  • GND connected to Arduino Nano GND and 9V Battery -
  • VM connected to 9V Battery +

Laser Module

  • + connected to Arduino Nano D12/MISO
  • - connected to Arduino Nano GND

HC-SR04 Ultrasonic Sensor

  • VCC connected to Arduino Nano 5V
  • TRIG connected to Arduino Nano D10
  • ECHO connected to Arduino Nano D11/MOSI
  • GND connected to Arduino Nano GND

9V Battery

  • + connected to TB6612FNG Motor Driver VM
  • - connected to TB6612FNG Motor Driver GND

Documented Code

Arduino Nano 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 is a template and does not include specific functionality. It should be populated with the necessary setup and loop code to control the connected components as per the circuit's requirements.