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

Arduino UNO-Based Battery-Powered IR-Controlled Motor System with OLED Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Battery-Powered IR-Controlled Motor System with OLED Display

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various components including an IR transmitter, an OLED display, a motor driver, motors, LEDs, an IR sensor, and a rocker switch. The circuit is powered by two 18650 Li-ion batteries. The Arduino UNO controls the components and processes input from the IR sensor and remote control.

Component List

  1. Arduino UNO

    • Description: 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
  2. IR Transmitter

    • Description: Infrared transmitter module.
    • Pins: DAT, VCC, GND
  3. HX1838 Infrared IR Wireless Remote Control

    • Description: Infrared remote control for wireless communication.
    • Pins: FFA25D (1), FF629D (2), FFE21D (3), FF22DD (4), FF02FD (5), FFC23D (6), FFE01F (7), FFA857 (8), FF906F (9), FF9867 (0), FFB04F (#), FF6897 (*), FF18E7 (↑), FF5AA5 (→), FF10EF (←), FF4AB5 (↓), FF38C7 (OK)
  4. Motor with Reducer

    • Description: DC motor with a gear reducer.
    • Pins: 3 - 6 VCC, GND
  5. L293D Motor Driver

    • Description: Motor driver IC for controlling motors.
    • Pins: pin 1, pin 2, pin 10, pin 9, pin 12, pin 11, pin 5, pin 6, pin 7, pin 8, pin 3, pin 4
  6. 18650 Li-ion Battery x 2

    • Description: Rechargeable lithium-ion batteries.
    • Pins: +, -
  7. 0.96" OLED

    • Description: Small OLED display for visual output.
    • Pins: GND, VDD, SCK, SDA
  8. LED: Two Pin (red)

    • Description: Red LED with two pins.
    • Pins: cathode, anode
  9. 5 Channel IR Sensor

    • Description: Infrared sensor module with 5 channels.
    • Pins: VCC, GND, S1, S2, S3, S4, S5, CLP, Near
  10. Rocker Switch

    • Description: On/Off rocker switch.
    • Pins: 1, 2

Wiring Details

Arduino UNO

IR Transmitter

HX1838 Infrared IR Wireless Remote Control

Motor with Reducer (First Motor)

Motor with Reducer (Second Motor)

L293D Motor Driver

18650 Li-ion Battery x 2

0.96" OLED

LED: Two Pin (red) (First LED)

LED: Two Pin (red) (Second LED)

5 Channel IR Sensor

Rocker Switch

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 initializes the Arduino UNO and contains empty setup and loop functions. The setup function runs once when the Arduino is powered on or reset, and the loop function runs continuously. You can add your specific code to these functions to control the components connected to the Arduino.