Breathing LED Done With Raw Logic Synthesized From A Verilog Design

Breathing LEDs are an attractive adornment on many electronic devices. These days they’re typically controlled by software but of course there were fading effects back in the days of analog too. [Pepijn de Vos] mixes a little of the new and the old by building a hardware-based fader from a Verilog design and even too the time to explain the process in depth.

Rather than using a microcontroller and software, [Pepijn] wrote the logic required to make the LED “breathe” in the hardware description language, Verilog. You may be familiar with this for FPGAs, but using it to plan out a build with logic chips is just as apt a use. The Verilog was synthesized into a circuit using 74-series logic chips, with the help of work by [Dan Ravensloft] who has made a library for the Yosys Open Synthesis Suite. With the addition of a basic clock circuit, the LED is made to breathe and the rate can be controlled by changing the clock speed.

It’s a fun way to experiment with both Verilog and old-school logic, albeit one that may not scale well. An interesting side note from the Twitter thread, [Dan] estimates that with current settings the PicoRV32 CPU would require over 2000 chips to build. Regardless, it’s an interesting tool and one that likely has further scope for experimentation.

First patented by Apple way back in 2002, the breathing LED has been a popular project for those learning electronics. We’ve even seen it on motorbikes. Video after the break.

Continue reading “Breathing LED Done With Raw Logic Synthesized From A Verilog Design”

Solar Heart Engineered To Beat For Decades

It’s often said that if something is worth doing it’s worth doing right, or maybe even worth overdoing. This is clearly a concept that [ANTALIFE] takes very seriously, as made abundantly clear by projects like the solar powered “beating” heart he made as a gift for his wife. What for most of us would have ended up being a junk bin build becomes a considerable engineering project in his hands, with a level of research and fine tuning that’s frankly staggering.

But [ANTALIFE] didn’t put this much thought into the device just for fun. He wants it to remain functional for as long as 30 years, and hopes he and the missus can still look on it fondly in their retirement years. Keeping an electronic device up and running for decades straight means you need to look carefully at each component and try to steer clear of any potential pitfalls.

The biggest one was the battery. More specifically, the fact he couldn’t use one. The lifetime of most rechargeable batteries is measured in hundreds of cycles, which for a device which will be charged by solar every day, means the battery is going to start showing its age in only 4 to 5 years. That simply wasn’t going to cut it.

[ANTALIFE] did some digging and realized that the solution was to use a supercapacitor, specifically the AVX SCMS22C255PRBA0. This is little wonder is rated for a staggering half million cycles, which in theory means that even with daily use it should still take a charge in the year 3300. In practice of course there are a lot of variables which will reduce that lifetime such as temperature fluctuations and the Earth being conquered by apes; but no matter what caveats you put on the figure it should still make 30 years without breaking a sweat.

Similar thought was given to choosing a solar cell with a suitably long lifetime, and he did plenty of testing and experimentation with his charging circuit, including some very nice graphs showing efficiency over time, to make sure it was up to snuff. Finally he walks the reader though his light-sensitive ring oscillator circuit which gives the device its pleasing “breathing” effect once the lights go down.

We’d love to bring you an update on this device in 30 years to see how close [ANTALIFE] got, but as we’re still trying to work the kinks out of the mobile version of the site we can’t make any guarantees about what the direct-brain interface version of HaD might look like. In the meantime though, you can read up on the long term battle between supercapacitors and traditional batteries.

Continue reading “Solar Heart Engineered To Beat For Decades”

Simplifying Basic LED Effects

There was a time when having a blinking blue LED on a project was all you needed to be one of the cool kids. But now you need something more complex. LEDs should not just snap on, they should fade in and out. And blinking? Today’s hotness is breathing LEDs. If that’s the kind of project you want, you should check out [jandelgado’s] jled library.

At first glance, an Arduino library for LED control might seem superfluous, but if you are interested in nice effects, the coding for them can be a bit onerous. If you don’t mind stopping everything while you fade an LED on (or off) then sure, you just write a loop and it is a few lines of code. But if you want to have it happen while other things continue to execute, it is a little different. The library makes it very simple and it is also nicely documented.

Continue reading “Simplifying Basic LED Effects”

The P.u.l.s.e Parking Light

[Anool]’s brother loves his motorcycle, and when he came across a ‘breathing LED’ mod for the brake light, he had to have one. Being tasked with the creation of a pretty cool mod, [Anool] came up with p.u.l.s.e., an extremely small LED controller and a slight tip ‘o the hat to Pink Floyd and the second or third greatest CD packagings.

The circuit is a slightly Apple-inspired mod for the  parking light that keeps the lamp fully lit when the Neutral Detect line on the bike is high, and slowly pulses the LED in a ‘breathing’ pattern when the Neutral Detect line is low. Not a lot of logic is needed for something this simple, so [Anool] turned to the ATtiny45 and the Arduino IDE to accomplish his goal.

[Anool] created a circuit in KiCAD that would plug in to the lamp socket of his brother’s bike. A cluster of LEDs replace the T10 lamp inside the parking light, and a small amount of code takes care of the logic and breathing effect. It’s a great mod, and the astonishingly small size of the board puts him in the running for the smallest Arduino we’ve ever seen.

Videos of the light in action below.

Continue reading “The P.u.l.s.e Parking Light”