Arduino – Compute Duration of an Action

In this tutorial I’ll show you how to compute the duration of a part of code in Arduino. The notion of time/duration is super important when you program, especially on embedded systems like Arduino. Writing a code that takes too much time, and not being able to know it, can lead to severe problems in … Read more

Create Your Own Arduino Library

In this tutorial I’ll show you how to create your own Arduino library. You’ll see, this might be much simpler than you thought! Very simply put, an Arduino library is a bunch of Cpp files that you have to organize in a certain way. Then you import it, use it, and that’s it. Creating an … Read more

Arduino Write a String in EEPROM

In this tutorial I’ll show you how to write an Arduino String to the EEPROM memory, and then read it again. The EEPROM memory lets you save values on your Arduino board so you can retrieve them even after you reboot the board. This is very handy when you want to save some settings/data to … Read more

Arduino and the STL library (C++)

So, you are using Arduino and you wonder if you can use the Cpp STL library in your code. The good news is: yes that’s possible! Even if some feature will still be lacking, or some others will be limited, you will be able to use things like std::vector and std::string in your Arduino programs. … Read more

Arduino Protothreads [Tutorial]

Arduino protothreads, when to use them, how to use them, and why? In this tutorial I’ll show you, step by step, how to use protothreads in your Arduino programs. First I’ll give you a template that you can use for any protothread you create. Then you’ll see more complex examples and how to use multiple … Read more

Arduino Interrupts Tutorial

What are Arduino Interrupts? How to use them? What should you know about them? In this Arduino Interrupts tutorial I’ll show you an example of when you can use interrupts and how to handle them. I’ll also give you a list of important points you should pay attention to, because, as you’ll see, interrupts are … Read more