The nRF52832 is a versatile SoC (System on Chip) from Nordic Semiconductor that supports various features, including Flash Data Storage (FDS) for non-volatile data management. This post gives some basic examples of how to use FDS to save, delete, and update data, as well as how garbage collection works to …
Read More »Implementing PID for a Line Follower Robot
A PID controller is a must-have for any control system aiming for stability. I’ve introduced how to implement PID using an Arduino microcontroller. Now, I’ll be applying PID in the design of a beginner robot project, a line follower. A line follower does what it’s named after. An optical …
Read More »Raspberry Pi Pico L298N Motor Control
Introduction The Raspberry Pi Pico is a versatile microcontroller from the Raspberry Pi Foundation. It features the RP2040 microcontroller chip, offering dual-core ARM Cortex-M0+ processors and a variety of I/O pins. Its affordability, GPIO flexibility, and programmability make it an excellent choice for various applications, including motor control projects using …
Read More »How to Use a LED Bar Graph with Arduino
In this tutorial, we will look into adding LED bar graphs to your Arduino projects. Understanding how to effectively use Arduino LED bar graphs opens up possibilities for visualizing data, creating dynamic displays, or simply adding an eye-catching element to your projects. Throughout this guide, I will show you how …
Read More »Interfacing HC-SR04 Ultrasonic Sensor with Raspberry Pi Pico
Introduction Beginner tutorials on the web often use the HC-SR04 ultrasonic sensor. Why? Because it’s easy to use and requires a few short lines of code. So when I tried it with the Raspberry Pi Pico, I expected it to work immediately. Until it didn’t. Fortunately, I made it to …
Read More »ESP32 Pressure Sensor
In this tutorial, we will feature the MPS20N0040D and how to use it with the ESP32 microcontroller. It's challenging to directly interface this pressure sensor with the ESP32 but thankfully, we have a development board that comes with a HX710B analog-to-digital converter.
Read More »Automating Video Uploads to TikTok Using Raspberry Pi
The Raspberry Pi, a versatile and affordable single-board computer, has gained immense popularity among hobbyists, makers, and tech enthusiasts. While it's often used for educational and DIY projects, its capabilities can extend to more complex tasks, such as automating video uploads to popular social media platforms like TikTok. In this …
Read More »What is meant by "packed" in Embedded C programming?
In embedded C programming, "packed" refers to a method of organizing data in memory where there are no empty spaces or padding between the data elements. When data is packed, it's placed right next to each other without any additional room, which can help save memory space.
Read More »Generating Sine, Triangular, and Sawtooth Waveforms using STM32F4 DAC
The STM32F4 microcontroller series is popular in embedded systems applications due to its powerful features. One of its key peripherals is the Digital-to-Analog Converter (DAC), which enables the generation of analog waveforms. In this article, I will show you how to generate sine, triangular, and sawtooth waveforms using the STM32F4 …
Read More »Soil NPK Sensor with Arduino: Pinout, RS485 Wiring & Code
Plants need more than water to grow well. They also need nutrients in the soil, especially nitrogen, phosphorus, and potassium. These three nutrients are commonly shortened to NPK, which is why this type of soil nutrient probe is called an NPK sensor. In this tutorial, you will learn how to …
Read More »