Structs (short for structure) are far less common in Arduino programming because they are mostly used in C whereas Arduino is based on C++. However, they are still a very useful tool especially if there is a need for a user-defined data set. This tutorial aims to help you understand …
Read More »Arduino Programming: Static Variables
Here we are with another tutorial on Arduino programming. This time, we will look at static variables and how you can use them to your advantage. You may need to read about functions and classes before going through this one. What is a Static Variable? A variable is known to …
Read More »Using a Thermocouple with Arduino
Temperature is a very common parameter in all of science and engineering. The behavior of electronic components drastically changes with temperature; storage of food and medicine relies on the correct temperature; getting the right metal type depends on how much heat is applied; fever means our body temperature goes beyond …
Read More »Sending and Receiving Data over STM32 USB
The serial port is the most usual comm channel between a microcontroller and a computer. However, the different voltage levels and loss of the RS-232 port in modern computers led to the use of USB-TLL converter chips like CH340, CP2102, etc. This is what happens in the NodeMCU ESP8266 and …
Read More »STM32F1 Serial Port and printf()
Needless to say, a serial output is a necessary tool in debugging embedded system applications. Placing the right messages in the right place will help you save hours in figuring out what went wrong in your code. Arduino programmers are very familiar with Serial. print() and its derivatives. But how can …
Read More »Using Rotary Encoders with Arduino
There exists a sensor for almost all physical parameters. Temperature? Pressure? Weight? Gas Concentration? We’ve written a tutorial for them all on this site. This time, we will try to build a device that measures rotational position. The same device can measure rotational speed too. Of course, we’re talking about the …
Read More »Using an E-ink Display with Arduino
Ever wondered why e-book readers don't use LCDs, OLEDs, or TFT displays? This is because, with the same usage, e-paper or e-ink displays consume 0.008% power compared to a TFT display. In this article, I'll be featuring an e-ink display that can be readily used with Arduino and other microcontrollers.
Read More »Get Any Reddit Post using ESP32
Reddit's API has been piquing my curiosity for some time. However, my past experiences with APIs, especially with Twitter and Facebook have left a bad taste in my mouth. Then one day I had the courage to try it again using ESP32 and to my surprise, it's far easier than …
Read More »Arduino Pressure Sensor Tutorial | MPS20N0040D
This site has built up several tutorials on how to measure almost anything. Now, we add to that list an Arduino pressure sensor featuring the MPS20N0040D and the HX710B Analog-to-Digital IC. By the end, you’ll be able to measure air or liquid pressure and convert it to Pascals, mmHg, or …
Read More »MAX30102: An Improved Heart Rate Sensor for Arduino
Have you read the MAX30100 tutorial and are still having trouble making that chip work? Maybe it’s time to use another Arduino heart rate sensor. The MAX30102 module has a better hardware design and software support. I’ll explain why after the jump.
Read More »