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

ROS AsyncSpinner Example

In this tutorial I’ll show you how to use a ROS AsyncSpinner with an example. You’ll see when using a roscpp AsyncSpinner is required, instead of the standard roscpp spinner. This tutorial could also be called: how to solve roscpp callback issues, when it seems that some callbacks are stuck or late. We’ll start by … 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

[ROS] How To Import a Python Module From Another Package

In this tutorial I’ll show you how to import a Python module from another package. ROS allows you to do that, and as you’ll see it’s quite simple. If you have a package which contains some common tools, helper functions, utils, or other stuff like that, you may want to be able to write the … Read more