I recently build myself a Li-Ion/Li-Po battery capacity tester, this article discuss the theory behind a battery capacity tester and how I build it. On my previous blog I mentioned that I often salvage 18650 batteries or other Li-Po battery packs from old appliances. One thing about those salvaged battery is that sometime those batteries [ ]
This article described how to add the protection circuit to 18650 battery the CORRECT WAY and how I build my own battery charger and an IoT power supply subsystem which consists of a battery charger, a 3.3v/5v boost/buck converter with very low quiescent current. 18650 Battery and Battery Protection One of the common things that [ ]
One of my long-waiting outstanding projects is to fix this no-frill SoundTech doorbell. I finally done it, by replacing the RF transmitter/receiver used by the doorbell with ESP-NOW. The Problem with SoundTech doorbell The doorbell is a wireless one, operated on a unknown frequency band, presumably on 403MHz band or even 27MHz band. The indoor [ ]
AThis tutorial will look into the USART controller within the ATtiny3227, and focus on setting up the serial USART on the Modern AVR platform. This is part 4 of tutorials for ATtiny3227 AVR programming, focusing on bare metal programming, with ATtiny3227 as the target MCU. All Modern AVR family lineup contains at least one USART [ ]
This is just another weekend project. I need a temperature and humidity monitor, instead of buying one from Ikea, I decided to make one with a Sensirion SHT40 sensor and a ATtiny824 MCU. Here is the schematic, but I didn't create it with each of the components and a custom PCB from scratch this time. [ ]
A while back when browsing Aliexpress, I saw this 4-digit segment LCD glass that selling for slightly more than USD1.00, so I bought it out of curiosity and this article describes on how to drive the LCD glass with GPIO, no dedicated LCD controller used. Segment LCD (a.k.a. LCD glass) Most of the popular LCD [ ]
In this tutorial, we will discuss the concept of interrupt, and how we could setup interrupt to free up from constantly polling the hardware resource and handling certain task in the 'background'. This is part 3 of tutorials for ATtiny3227 AVR programming, focusing on bare metal programming, with ATtiny3227 as the target MCU. What is [ ]
Hackaday.io is having a 2024 Business Card Contest between May and July 2024, I decided to enter the contest with my own design. This describes my design process from planning to the completion for a business card that can be used as real time clock with 3-year battery life and can also be used as [ ]
In this tutorial, we will discuss how to programming GPIO pin to perform I/O functionalities by altering the bits of various GPIO registers of ATtiny3227. This is part 2 of tutorials for ATtiny3227 AVR programming, focusing on bare metal programming, with ATtiny3227 as the target MCU. Almost all of embedded programming tutorials started with blinky [ ]
This is the begining of a series of tutorials for ATtiny3227 AVR programming, focusing on bare metal/register programming, with ATtiny3227 as the target MCU (but applicable to all Modern AVRs such as ATtiny 0, 1 2 series, ATmega 0-seris, and AVR Dx-sereis), with Microsfot Visual Studio Code (VS Code), avr-gcc c-compiler and a Makefile [ ]