my recent reads..

LEAP#440 Logging Data with Adafruit IO

I wanted a simple way to log the voltage of the LEAP#439 QX5252 Solar Night Light, rechargeable battery to get a sense of the overnight discharge and daily recharge pattern.

It didn’t need to be particularly accurate, but I did want to get a fairly continuous log at least every 5 minutes or so. Sounds like a perfect case for some Arduino-powered data logging!

I could just capture some data locally to an SD card, but sending the data to the cloud is much more appealing, as it means I can access and do some analysis at any time without needing to be local to the device.

There are many established and roll-your-own solutions for this problem, but I’ve taken this as an opportunity to experiment in particular with Adafruit IO:

  • collect measurements to a feed
  • create a simple dashboard
  • setup triggers to notify on low/high voltage

I was quickly impressed by Adafruit IO! It is extremely easy to get something simple up and running. It doesn’t over-reach in terms of features (or price), so I can see this being a great prototyping platform for relatively straight-forward control and data collection. But this also means you can probably imagine much more ambitious projects that require more than Adafruit IO has to offer.

For my initial problem - log some data about the state of a rechargeable battery over a couple of days - it was perfect. Literally took me 10 minutes from signing up at Adafruit to when I had data streaming into a feed. Doing more research on how it worked and writing my notes took far longer;-)

As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub

hero_image

Here’s a sample of the voltage measurements I’m seeing on the dashboard:

aio_dashboard.png


read more and comment..

LEAP#439 QX5252 Solar Night Light

Inside most solar-powered garden lights is an ingenious little circuit comprising a rechargeable battery, solar cell, inductor, LED and a little IC that does all the magic:

  • when voltage is detected from the solar cell, the LED is off and the battery will charge
  • as the solar cell voltage drops off (gets dark), the chip runs a switching converter (using the inductor) to boost the voltage from the 1.x V battery sufficient to drive the LED
  • when the battery voltage falls too low, it tuens off the boost converter to prevent over-discharge

The chips that do the work are typically 4-pin TO-94 packages and come from various sources. Some of the most common are the QX5252 and YX805. I’m using a QX5252 here as it is the one I found a reasonable datasheet for.

There are DIP versions of these chips that have an additional light control pin that can either be used as a simple on-off, or to adjust the PVC voltage at which the LED cuts-off. I’m not using this as I have the TO-94 package version.

This project is a simple demonstration build of the standard solar-powered LED circuit. As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub

hero_image

A quick demo of the switching based on light conditions:


read more and comment..

LEAP#437 QX5252 Joule Thief

I recently “discovered” solar LED driver ICs, such as the QX5252 and YX805. They are mainly designed to drive LED lights from a low-voltage rechargeable battery, with solar powered charging.

A core function is a boost converter circuit (similar to a joule thief) that allows LEDs with a forward voltage of over 2V to be driven from a 0.9V-1.5V battery.

As a test and demonstration, I’m ignoring the solar charging aspect here, and using the chip to drive an LED from a 1.55V coin cell. It just needs an external inductor to work.

As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub

hero_image

Here’s a quick demo:


read more and comment..

LEAP#436 Vivian the Vibrating BEAM Bot

Whatever happened to BEAM robotics? Perhaps it was just a 90’s fad, now rendered irrelevant by cheap microprocessors. But just as we still enjoy tinkering with 7400-series logic, old and irrelevant technology has a special attraction for some;-)

And it turns out that these days there are some new tricks - such as using the QX5252/YX805 solar LED driver to boost the output of the photovoltaic cell (it’s like a joule thief in a TO-94 package).

“Vivian” is the result of my first experiments: a solar-powered jumping vibrobot that employs a classic FLED solar engine circuit with a QX5252 boost converter.

As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub.

hero_image

Here’s quick video of my first bench-top test:


read more and comment..