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

Arduino UNO and L298N Motor Driver Controlled Robotic Car with Bluetooth and IR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino UNO and L298N Motor Driver Controlled Robotic Car with Bluetooth and IR Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control multiple 12V geared motors using L298N motor driver modules, an Arduino UNO microcontroller, IR sensors, and an HC-05 Bluetooth module. The circuit is powered by a 12V battery and includes various connections to ensure proper functionality.

Component List

  1. 12V Geared Motor

    • Description: A motor designed to operate at 12V with a built-in gearbox to provide higher torque.
    • Pins: Terminal 1, Terminal 2
  2. L298N 2A Dual Motor Driver Module with PWM Control

    • Description: A motor driver module capable of controlling two motors with PWM (Pulse Width Modulation) control.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT4, OUT3, ENA, IN1, IN2, IN3, ENB, IN4
  3. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P, used for various control and automation tasks.
    • 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
  4. Battery 12V

    • Description: A 12V battery used to power the circuit.
    • Pins: +, -
  5. IR Sensor

    • Description: An infrared sensor used for detecting objects or obstacles.
    • Pins: out, gnd, vcc
  6. HC-05 Bluetooth Module

    • Description: A Bluetooth module used for wireless communication.
    • Pins: Key, VCC, GND, TXD, RXD, State
  7. Resistor

    • Description: A resistor with a resistance of 1000 Ohms.
    • Pins: pin1, pin2

Wiring Details

12V Geared Motor

L298N 2A Dual Motor Driver Module with PWM Control

Arduino UNO

Battery 12V

IR Sensor

HC-05 Bluetooth Module

Resistor

Documented Code

Arduino UNO Code

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

}

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

}

This code is a basic template for the Arduino UNO. The setup function is used to initialize any settings or configurations, and the loop function contains the main code that runs repeatedly. Additional code can be added to control the motors, read sensor data, and communicate via Bluetooth.