Home / Tutorials (page 10)

Tutorials

Arduino Programming: Structs

Arduino Struct

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

Arduino 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

MAX6675 Thermocouple to Digital Converter

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

STM32F407VE black board features

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()

STM32F1 serial output

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

incremental rotary encoder

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

e-ink display front

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 »