It is important to understand how SPI (Serial Peripheral Interface) works in the embedded world because SPI is widely used deep inside embedded systems, ranging from sensor connection, to SD card interface, to even between the flash memory and its MCU. Continue reading "Do you know Arduino? – SPI and Arduino SPI Library"
Author: Henry Cheung
Do you know Arduino? – Arduino boards and MCUs
When we talk about Arduino boards, the choice of the boards available can be overwhelming, the naming of the boards are often not really helpful and sometime quite confusing. I like to take a different approach to see what are the things in common for some of the most popular boards so that you will have better idea on which Arduino board you are going to buy. Continue reading "Do you know Arduino? – Arduino boards and MCUs"
Do you know Arduino? – sprintf and floating point
I like Arduino devices, but I don't quite like Arduino IDE. Among all the reasons, one is its printf()
and sprintf()
implementation on floating point support. Continue reading "Do you know Arduino? – sprintf and floating point"
Getting started with STM32 and things you need to be aware of
Getting started with STM32 development isn’t as smooth as setting up an Arduino or ESP32 for me for various reasons, and I hope my experience in setting it up, and the things you need to be aware of will help any one interested with this article. Continue reading "Getting started with STM32 and things you need to be aware of"
Measure pH with a low-cost Arduino pH sensor board
I recently bought an Arduino pH sensor kit for measuring pH value of my hydroponic setup, it cheap but has very little information/document on how to use it, so I decided to figure it out myself on how it works and how to use it. Continue reading "Measure pH with a low-cost Arduino pH sensor board"
Build an ESP32 Web Server and IR Remote
My TV remote control is corroded by leaking battery and no longer working reliably, so I decided to build my own TV remote control with an ESP32 that running as a web server and IR remote control so that I can uses my iPhone to interactive with it via web browser. Continue reading "Build an ESP32 Web Server and IR Remote"
Mount a hard disk to Raspberry Pi as root file system
For past 3 years this web site was running on a Raspberry Pi with a 16GB SD card. I have a couple of old hard disks with me, so I recently decided to replace the SD card of this web site's Raspberry Pi with a hard disk. Continue reading "Mount a hard disk to Raspberry Pi as root file system"
Using a Thermistor with Arduino and Unexpected ESP32 ADC Non-linearity
I recently accidentally bought 5 pieces of thermistor, so I tried it out on both of my Arduino and ESP32 modules, and I have surprise findings on both Arduino and enchanted unexpected ESP32's ADC linearity issue. Continue reading "Using a Thermistor with Arduino and Unexpected ESP32 ADC Non-linearity"
How Google Read Your Gmail?
If someone asking you to give him (or her) the key to your home so that this person can come in to your house to inventory what you purchased in exchange for a free service, will you accept it? That basically what Gmail is asking for... Continue reading "How Google Read Your Gmail?"
Shortest Path Algorithm Revisit with Golang
I wrote a shortest path algorithm about a year ago using Python and later on port it into JavaScript, I recently revisit the algorithm and port it into Golang and compare the performance of three versions on two different hardware platforms. Continue reading "Shortest Path Algorithm Revisit with Golang"