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

Arduino UNO and L298N Motor Driver-Based Motion-Activated Robotic System with PIR Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO and L298N Motor Driver-Based Motion-Activated Robotic System with PIR Sensor

Circuit Documentation

Summary

This circuit is designed to control two hobby motors using an Arduino UNO, a PIR sensor, and an L298N DC motor driver. The circuit is powered by a 12V battery and includes a rocker switch for power control. The PIR sensor detects motion and sends a signal to the Arduino, which then controls the motors through the L298N motor driver.

Component List

  1. L298N DC Motor Driver

    • Description: A dual H-bridge motor driver that allows control of the speed and direction of two DC motors.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  2. PIR Sensor

    • Description: A passive infrared sensor used to detect motion.
    • Pins: VDD, SIG, GND
  3. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • 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. Motor (Hobby Gear Motor)

    • Description: A small DC motor with a gearbox for increased torque.
    • Pins: vcc, GND
  6. Rocker Switch

    • Description: A switch used to control the power supply to the circuit.
    • Pins: 1, 2

Wiring Details

L298N DC Motor Driver

PIR Sensor

Arduino UNO

Battery 12V

Motor (Hobby Gear Motor)

Rocker Switch

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:

}

Additional Documentation (documentation.txt)