If you've been following my tutorials on ESP32, then you'll notice that the WiFi SSID and password are always hardcoded. This tutorial will show you a way to change the WiFi credentials without needing to edit and re-upload your sketch. Our aim is to create a simple ESP32 WiFi manager. …
Read More »Using RESTful APIs with ESP32
With its WiFi capabilities, the ESP32 can connect to API services and acquire useful (and sometimes useless) information from the web. Here’s a quick tutorial on how to connect to RESTful APIs using ESP32.
Read More »Getting Started with Blue Pill and STM32Cube
Arduino is easy-to-use but that's at the expense of numerous features, most glaring of them is speed. Hence you would rarely see an Arduino in an embedded, industrial setting. ARM Cortex-M microcontrollers are low-cost, energy-efficient 32-bit devices with up to 2 DMIPS/MHz. They are the microcontroller of choice if you …
Read More »Arduino State Machine Tutorial
A finite state machine (FSM) is a theoretical machine that only has one action or state at a time. The machine may go from one state to another if there are inputs (or one input) that triggers the state change. In this article, I will guide you on how to …
Read More »ESP8266 SPIFFs | File System for NodeMCU
SPIFFS or Serial Peripheral Interface Flash File System is a system that utilizes extra flash memory on the ESP8266 and ESP32 for storing files. It’s so named because the user reads, writes or deletes files in the memory using the serial interface. In this article, I will show you how …
Read More »How to Use MQ-4 Methane Gas Sensor
The MQ-4 is one of many gas sensors ready to be interfaced with microcontrollers. Just like the rest of the MQ sensors, the MQ-4 is most sensitive to a particular gas. This time, it’s methane, although the sensor can still detect other flammable gases like butane and propane.
Read More »Using the BH1750 (GY-30) Sensor with Arduino
The BH1750 is a light intensity sensor which interfaces with a microcontroller through the I2C bus. It can directly provide lux values without further processing unlike CdS cells or photodiodes.
Read More »Using AD9833 Signal Generator with Arduino
Ever wondered how you can create sine, square or triangular waves with Arduino? Apparently, there’s a way with the help of an integrated circuit package called AD9833. With it, you can now create waveforms for communications, instrumentation or other related projects. My tutorial on building your own Arduino signal generator …
Read More »How to Use I2C Devices with Raspberry Pi
I2C is a popular device protocol in communicating with microcontrollers. However, this protocol is not limited to Arduino, PIC and STM32; the Raspberry Pi can also use I2C.
Read More »Watchdog Timer on Arduino Tutorial
In Arduino programming, we learn about functions setup() and loop(). Any code inside setup() executes once while code inside loop() executes again and again until the next reset. Now what if while inside the loop(), something went wrong either in code or in hardware? Normally we just press the reset …
Read More »