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

Battery-Powered Arduino UNO Smart Light with NeoPixel and ADXL345

View and Edit Project In Cirkit DesignerImage of Battery-Powered Arduino UNO Smart Light with NeoPixel and ADXL345

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, a TP4056 battery charger, a 18650 battery in a holder, a DC-DC converter, an Adafruit NeoPixel Stick, an ADXL345 accelerometer, an ILI9341 TFT display, and several resistors. The circuit is designed to control an LED strip and display information on a TFT screen while being powered by a rechargeable battery.

Component List

Arduino UNO

TP4056

18650 in holder

DC-DC Converter

Adafruit NeoPixel Stick

Resistor (150 Ohms)

Resistor (1000 Ohms)

ADXL345

ILI9341 TFT Display

Wiring Details

Arduino UNO

TP4056

18650 in holder

DC-DC Converter

Adafruit NeoPixel Stick

ADXL345

ILI9341 TFT Display

Code Documentation

Arduino UNO Code

#include "Adafruit_NeoPixel.h"

#define LED_COUNT 5
#define LED_PIN 5

Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin(); // Initialize the strip.
}

void loop() {
  for (int i = 0; i < LED_COUNT; i++) {
    strip.setPixelColor(i, strip.Color(255, 0, 0)); // Red color.
    strip.show();
    delay(300);
  }
  for (int i = 0; i < LED_COUNT; i++) {
    strip.setPixelColor(i, strip.Color(0, 0, 0)); // Turn off.
  }
  strip.show();
  delay(300);
}

Adafruit NeoPixel Stick Code

#include "Adafruit_NeoPixel.h"

#define LED_COUNT 5
#define LED_PIN 5

Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin(); // Initialize the strip.
}

void loop() {
  for (int i = 0; i < LED_COUNT; i++) {
    strip.setPixelColor(i, strip.Color(255, 0, 0)); // Red color.
    strip.show();
    delay(300);
  }
  for (int i = 0; i < LED_COUNT; i++) {
    strip.setPixelColor(i, strip.Color(0, 0, 0)); // Turn off.
  }
  strip.show();
  delay(300);
}

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used for the microcontrollers.