Arduino – Control LED Brightness With a Potentiometer

In this Arduino tutorial I will show you how to control an LED with a potentiometer, and more specifically, how to control the LED brightness. You will learn how to dynamically make the LED fade in/fade out when you turn the potentiometer knob. If you’re not familiar yet with the LED or the potentiometer, check … Read more

Arduino Potentiometer – Complete Tutorial

In this Arduino tutorial you will learn how to work with a potentiometer. We’ll start from scratch, building the circuit. Then you will write the Arduino code to interact with the potentiometer, so you can read some data. And finally you will learn how to make sense of the data you got from the potentiometer, … Read more

Arduino LED – Complete Tutorial

In this complete tutorial you will learn how to use an LED with Arduino. First, you will setup your circuit with an Arduino board and an LED, and then discover different ways to control the LED. I will use Arduino Uno for the examples but the instructions here apply to any Arduino board. If you … Read more

Arduino Push Button – Complete Tutorial

In this complete tutorial you will learn how to use a push button with Arduino, with different circuit configurations. You will also see how to use the push button for various applications, and take advantage of some of the Arduino capabilities, for example interrupts. I’m going to use an Arduino Uno board, but this tutorial … Read more

Arduino pulseIn() With Interrupts

In this tutorial I will show you how to make the Arduino pulseIn() function non blocking, using interrupts. Actually what we’ll try to do is to reproduce the behavior of pulseIn() without using it. I will not explain what is pulseIn() and how it works here, for that please check this pulseIn() tutorial first. The … Read more

Arduino pulseIn() function

The Arduino pulseIn() function may be quite hard to grasp at first. However, this function can be very useful to be able to read data from certain sensors. In this tutorial I will explain what is a pulse, how the pulseIn() function works, and how to use it in your own programs. >> Watch this … Read more

Raspberry Pi’s GPIOs Default State

So, you’ve been playing with your Raspberry Pi and the GPIO panel, and you’ve noticed that when you read the GPIOs, some of them give you the value HIGH (or 1) by default, some of them give you the value LOW (0). Why is that? In this tutorial I will show you what is the … Read more