Fork me on GitHub

Project Notes

#191 Low-voltage Glowing LEDs

A dual-LED glowing oscillator from a 1.5V supply

Here’s a quick video of the circuit in action:

LowVoltageGlowingLEDs

Notes

So for another project I wanted some “glowing” LEDs, ideally powered from a single 1.5V AA or AAA battery. That seemed like an interesting challenge, especially when the forward voltage of the LEDs I’m using is about 2.1V.

I had a feeling I could cobble together a couple of ideas from other projects to get something going:

And it works! I’ve made a couple of modifications to the circuit along the way to get the result I wanted:

  • a diode and capacitor to couple the output of the voltage boost circuit and provide a stiffer though still load-dependent supply
  • some additional capacitors in the oscillator to smooth out the wave so I get more of a glow effect rather than a harsh on/off switching

Boost Power Supply

This is based on the LEAP#129 RelaxationJouleThief circuit.

I’ve added a diode on the output to prevent any of the negative voltage swings passing through. I used a 1N5819 because it has very low forward voltage drop. A 1N4148 also works. A small 100nF capacitor provides some high frequency smoothing. Putting too large a capacitor on the output actually interferes with the oscillator that follows.

The circuit exhibits quite a bit of instabiity on a breadboard, no doubt due to all the stray capacitance, inductance and just plain dodgy connections.

But on a PCB or protoboard and with a fixed load, the circuit delivers a beautifully stable ramp-wave. Of course what the supply can deliver varies completely with load.

With 10kΩ fixed load, the signal averages 3.3V with a 1.4V peak-peak 3.2kHz wave. Here’s the AC-coupled trace:

RelaxationBoostPS_ac_10kload

With 100kΩ fixed load, the signal boosts to an average of 6.1V with a 0.54V peak-peak 2.3kHz wave. Here’s the AC-coupled trace:

RelaxationBoostPS_ac_100kload

Here’s the power supply as built on a protoboard:

RelaxationBoostPS_build2

“Glowing” Oscillator

The LEAP#049 BJT RC Oscillator circuit oscillates between two LED outputs. But it is a harsh transition. I really wanted two LEDS that oscillated in a much gentler fashion - “glowing” on and off.

First step was just to get the basic oscillator working with the boost supply. Parts are a little bit critical.

The transistors need to be reasonable well matched to get the oscillation going and balanced. S9013 were the first I grabbed that worked. Note these are different than the 2N3904’s I used in the power stage, but I did go back and verify that some 2N3904’s also worked in the oscillator.

R3/R4 and C3/C4 determine the basic oscillator frequency, but the theoretical frequency is counfounded by the load-dependent power supply. So I needed to just play around with some values

Eventually I settled on R3/R4=100kΩ and C3/C4=100μF, for a theoretical frequency of 0.02 Hz. However in practice it’s more like 0.5 Hz as you can estimate from the scope traces below.

Here’s the scope trace of the basic oscillator without C5/C6 installed.

  • CH1: Vg (power input - the output from the boost converter)
  • CH2: TP1, base of Q3
  • CH3: TP2, collector of Q3
  • all channels DC-coupled and shifted down 500mV

Things to note:

  • that power supply gets noise under a variable load!
  • hard edges on the transistor switching

LowVoltageGlowingLEDs_scope_no_smoothing

After a bit of experimentation, I came up with a configuration of 22µF capacitors C5/C6 across the base-collector of the transistors. This drammatically smooths out the oscillator transitions.

The values of capacitors C5/C6 need to be « C3/C4, otherwise they will kill the oscillation. Also note the orientation of the capacitors in the oscillator. I’m using electrolytics, and the orientations in the schematic are correct in this configuration to ensure they are driven with correct polarity.

LowVoltageGlowingLEDs_scope_with_smoothing

Now I’m quite happy with the result and committed to component values, I transfered the the circuit to protoboard for the project I really wanted this for in the first place!

Construction

Breadboard

The Schematic

Here’s the protoboard build, with LEDs temporarily attached (pending installation in the final project):

The Build

This is the protoboard layout:

LowVoltageGlowingLEDs_pb_layout

Credits and References

About LEAP#191 BJTLEDOscillatorsPower

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader