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"
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"
I like Arduino devices, but I don't quite like Arduino IDE. Among all the reasons, one is its
sprintf() implementation on floating point support. Continue reading "Do you know Arduino? – sprintf and floating point"
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"
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"
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"
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"
On previous article, I wrote an Arduino sketch for interfacing LCD 5110 display module with Arduino, it is not an Arduino library that can be distributed and share with others yet. In this article, I will explain how to create an Arduino library in 6 easy steps. Continue reading "How to create Arduino Library from Arduino Sketch"
LCD 5110 (a.k.a. Nokia 5110 or PCD8544) display is a commonly available LCD module with SPI interface, by writing our own LCD driver based on its data sheet, we could learn a lot about how the LCD module works and how to write SPI program and save a lot of SRAM memory. Continue reading "How to use LCD 5110 (PCD 8544) with Arduino"