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

Arduino UNO-Based Smart LED Strip Controller with Battery Monitoring and SOS Alert

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Smart LED Strip Controller with Battery Monitoring and SOS Alert

Circuit Documentation

Summary

This circuit is designed to control an LED strip, a DC motor, and a buzzer using an Arduino UNO. It also includes a battery voltage monitoring system and two pushbuttons for user interaction. The LED strip can display different colors, and the buzzer can emit an SOS signal. The circuit is powered by a 12V battery and includes a charge controller for solar charging.

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. LED Strip

    • Description: RGB LED strip.
    • Pins: B, +12V, R, G
  3. Pushbutton

    • Description: Momentary pushbutton switch.
    • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
  4. Resistor (10k Ohms)

    • Description: Resistor with a resistance of 10k Ohms.
    • Pins: pin1, pin2
  5. Resistor (200 Ohms)

    • Description: Resistor with a resistance of 200 Ohms.
    • Pins: pin1, pin2
  6. Battery 12V

    • Description: 12V battery.
    • Pins: +, -
  7. Mosfet

    • Description: Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET).
    • Pins: Gate, Drain, Source
  8. Charge Controller

    • Description: Charge controller for solar charging.
    • Pins: GND, BAT, Vin
  9. Diode

    • Description: Diode for current direction control.
    • Pins: cathode, anode
  10. Solar Cell

    • Description: Solar cell for generating electricity.
    • Pins: +, -
  11. DC Motor

    • Description: Direct Current (DC) motor.
    • Pins: pin 1, pin 2
  12. Buzzer

    • Description: Piezoelectric buzzer.
    • Pins: PIN, GND
  13. Voltage Regulator

    • Description: Voltage regulator for stabilizing voltage.
    • Pins: IN, GND, OUT

Wiring Details

Arduino UNO

LED Strip

Pushbutton

Resistor (10k Ohms)

Resistor (200 Ohms)

Battery 12V

Mosfet

Charge Controller

Diode

Solar Cell

DC Motor

Buzzer

Voltage Regulator

Code Documentation

// Pin definitions
const int redPin = 9;
const int greenPin = 10;
const int bluePin = 11;
const int button1Pin = 2;
const int button2Pin = 4;
const int buzzerPin = 8;

const int batteryPin = A0;  // Battery voltage measurement pin
float batteryVoltage = 0.0;
int batteryLevel = 0;

// States
int button1State = 0;
int button1LastState = 0;
int lightMode = 0;

int button2State = 0;
int sosActive = 0;

void setup() {
    Serial.begin(9600);  // Start serial communication
    // Set pin modes
    pinMode(redPin, OUTPUT);
    pinMode(greenPin, OUTPUT);
    pinMode(bluePin, OUTPUT);
    pinMode(button1Pin, INPUT);
    pinMode(button2Pin, INPUT);
    pinMode(buzzerPin