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

Arduino-Controlled Ultrasonic Sensor Array with DC Motor Actuation and Rocker Switch Power Control

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Ultrasonic Sensor Array with DC Motor Actuation and Rocker Switch Power Control

Circuit Documentation

Summary

This circuit is designed to control multiple DC motors using an Arduino UNO microcontroller and an L298N DC motor driver. The circuit also includes multiple HC-SR04 Ultrasonic Sensors for distance measurement and a rocker switch to control the power supply. The power is provided by two 18650 Li-ion batteries. An Arduino Sensor Shield v5.0 is used to facilitate the wiring of sensors and the motor driver to the Arduino UNO.

Component List

Rocker Switch

HC-SR04 Ultrasonic Sensor

DC Motor

18650 Li-ion Battery

Arduino UNO

Arduino Sensor Shield v5.0

L298N DC Motor Driver

Wiring Details

Rocker Switch

HC-SR04 Ultrasonic Sensors

DC Motors

18650 Li-ion Batteries

Arduino UNO

Arduino Sensor Shield v5.0

L298N DC Motor Driver

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 is a template and does not contain any functional code to control the motors or read the sensors. It needs to be populated with the appropriate setup and loop code to manage the inputs and outputs of the Arduino UNO.