Toggling a pin, thoughts on code portability

There are many articles that explain embedded software, bare metal programming, and architectural design, providing a lot of practical tips. The great majority of projects, particularly those that require quick but nice prototypes, are based on Arduino. However, starting an Arduino project seems not to require any theoretical knowledge of firmware architecture, bare metal, and … Continue reading Toggling a pin, thoughts on code portability

MC34063, the jellybean converter (Part 1) – Introduction design of a voltage inverter

When I needed to design a dual power supply I was looking for parts capable to handle buck, buck-boost, with inverting and non inverting properties. Because I was also looking for a contained budget, I've been fascinated by a single, multipurpose part, capable of doing all of this. I immediately realized it was the 555 … Continue reading MC34063, the jellybean converter (Part 1) – Introduction design of a voltage inverter

Experiments in implementing the WS2812B protocol in AVR MCUs without bit-banging

I started to experiment with the WS2812 LED, more specifically the WS2812B, which is a better revision in term of connections. These are the very famous individually addressable RGB LED, where tons of sources are available. Mainly due to their low cost, they are spread to the maker scene like a rhinovirus in a primary … Continue reading Experiments in implementing the WS2812B protocol in AVR MCUs without bit-banging

Switching converters nostalgia: a brief history

I have some kind of interest in electronic projects, whether hobbists or a professional ones, which are based on standard and always available sub-components. Those always available parts are also called jelly bean components, like resistors, capacitors and cheap basic parts, like op amps (including in my opinion also LM741, LM324, even TL081 and the … Continue reading Switching converters nostalgia: a brief history

Dimming LEDs (part 2/3) – Sneaky non-linear events while using the PWM technique

In the previous article we tried to analyze what is the Contrast Ratio in a LED driver and how the non-idealities are giving a boundary on the minimum allowable PWM period. That was quite worth a full article, but a big part was indeed missing. Here we will go through how the PWM period and … Continue reading Dimming LEDs (part 2/3) – Sneaky non-linear events while using the PWM technique

Dimming LEDs (part 1/3) – Analog and digital, not analog vs. digital

While messing around with dimmable DC-DC converters for LED drivers, I had the need to quantify the contrast ratio of a dimmable light. Turns out it is not that trivial, specially when combining switching periods, transients and mixed analog/PWM dimming. Looking for contrast ratio on the internet is only useful if you want to buy a TV, not if you want to build a LED driver. Also, on the web not all information seems to be correct, therefore this article and its possible continuation is the result of long investigations and discussions between engineers.