Skip to content

Digital Me

Electronics, Computers at leisure time

Menu
  • Home
  • Contact
  • About
Menu
Crystal schematic

Project Crystal (Part 1)

Posted on May 24, 2012

A small project I did while waiting for the Raspberry Pi – Arduino controlled RGB LED light.

The initial idea was stolen taken from Luminch One

I made several redesigns:

  1. RGB LED strip instead of original high-powered LED
  2. Use battery power.

The journey for battery power ends up to be much more complex. The major concern is standby (light off) power consumption. I wished the circuit could remain standby for at least one week. With three 3100mAh 18650 battery cell at 3.7V each, the maximum allowed current draw works out as 3100 * 0.8 / 7 (days) / 24 (hrs) = 14.7mA (reference here, number of cells actually does not help, but LED light needs 12V). However, the Arduino Nano alone consumes 20mA when running. After removing the power LED, it still consumes about 17mA. The distance sensor, Sharp GP2Y0A21YK0F takes another whopping 20mA. With these two monsters, standby time is 3100 * 0.8 / 37mA = 67 Hours ~ 2.8 days (show stopper).

It seems I need to turn off distance sensor and put Arduino into sleep mode during standby. It is solved by adding a Passive Infrared (PIR) sensor which powers on GP2Y0A21YK0F only when human (or pet) walks near the light. Together with AVR sleep mode the current now reduces to 2mA standby. My standby time is 51 days 🙂

Here comes the schematic.

Crystal schematic
Crystal schematic

Notes:

  1. Q1 controls power to the Sharp sensor. I tried to drive this sensor directly from an Arduino pin but failed. The sensor output is unstable. I believe GP2Y0A21YK0F  specified 20mA power draw is only average value. Its peak current is quite higher.
  2. Q2 is reverse voltage protection (reference)
  3. J_LIGHT is the main RGB LED light. J_LIGHT_BK is for backup.
  4. R1/R2 is voltage divider for battery voltage measurement.
  5. J_INDI connects to a Bi-color (Red/Green) LED light as indication.

 The final construction will be on a perf-board. So I start Eagle PCB, set grid to 0.1inch and route the design. All files at the bottom.

Next part will include Arduino sketch, photos, and demo video. Stay tuned …

3 thoughts on “Project Crystal (Part 1)”

  1. Pingback: FlappyDuino - Arduino Day 2014 celeration « Digital Me
  2. Waleed says:
    July 29, 2015 at 10:03 pm

    I know this is really late and I don`t know how long it will take to get a reply but here it goes… Can you explain the equation 3100 * 0.8 / 37mA = 67 Hours ~ 2.8 days (show stopper) a bit more, I don`t understand why you are multiplying by 0.8.

    Reply
    1. Baoshi says:
      July 29, 2015 at 11:28 pm

      It is just a conservative estimation. To prolong lithium battery life I do not fully charge or discharge the battery.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Arduino ARM AVR Charger CNC Distance Sensor emWin ESP31 ESP32 ESP8266 FT230X GCC iPad JTAG LED Strip Makefile Maker Faire MF70 OLED Oscilloscope PCB PIR Sensor Pogo pin PWM Raspberry Pi RGB LED Rigol RTOS Saleae SEGGER Shopping SPI SSD1305 SSD1306 STM8 STM32 STM32Cube STM32CubeMX Storage TFT Tindie Tool USB Power VFD Workbench

Recent Posts

  • Arduino Redesigned – Maker UNO Review
  • Is ESP8266 I/O really 5V tolerant?
  • First sight into ESP32
  • ESP8266 MQTT client on RTOS
  • Maker Faire, Yearly Review, and Rant

Archives

  • March 2018
  • August 2016
  • December 2015
  • August 2015
  • July 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • July 2014
  • May 2014
  • March 2014
  • January 2014
  • December 2013
  • November 2013
  • August 2013
  • July 2013
  • May 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2023 Digital Me | Design: Newspaperly WordPress Theme