Tag Archives: arduino

Countdown timers and executing tasks in parallel on an Arduino

The examples in this article use an OLED display. Countdown timer example In its simplest form, a countdown timer can be coded like this, using the loop() for repetition (no for- or while-loop needed!): Full example : oled_display_countdown_start_button.ino This will countdown from 10 to 0 in ten seconds. If you prefer to display the number … Continue reading Countdown timers and executing tasks in parallel on an Arduino

Using an Optical (IR) sensor with Arduino

This short tutorial introduces the Optical (infrared) distance sensor (Sharp GP2Y0A21YK0F). It is assumed you have installed the Arduino IDE and have some basic understanding of using electronics and wiring a breadboard. If you want to learn more or if anything is unclear, check out this extensive tutorial. Although in this example we use a display, you can … Continue reading Using an Optical (IR) sensor with Arduino

Using an Ultrasonic sensor with Arduino

This short tutorial introduces HC-SR04 Ultrasonic sensor. It is assumed you have installed the Arduino IDE and have some basic understanding of using electronics and wiring a breadboard. If you want to learn more or if anything is unclear, check out this extensive tutorial. Although in this example we use a display, you can also do without … Continue reading Using an Ultrasonic sensor with Arduino

Use DHT11 temperature and humidity sensor with display

This tutorial uses the Arduino Nano, but you may also use an Arduino Uno. You might need the Arduino Nano pinout diagram or an other diagram for your particular model of Arduino. We are going to use the diagram below to build it. But if you are inexperienced each step is explained in detail. First, … Continue reading Use DHT11 temperature and humidity sensor with display