The PROGMEM keyword is a variable modifier, it tells the compiler to "keep this variable in flash memory", instead of loading it into SRAM. Th PROGMEM is useful for Arduino Boards that have limited SRAM, but yet many Arduino users and even some library developers don't use it. Continue reading "Do you know Arduino? – PROGMEM demystified"
I like the low price of ESP-01, but I don't quite like to use it in my project because its design always make me feel like that I'm dealing with an unfinished product. Over the past a couple of months, out of necessity for one of my project, I was forced to spent some time to figure out a better way to use ESP-01 as a WiFi shield. Continue reading "A better way to use ESP-01 as WiFi shield"
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"