Learn to code


Arduino Digital / Analog

Arduino Tutorials Digital / AnalogTeaching you by example how digital and analog input works. The Digital / Analog input tutorials will combine lessons learned from the first three chapters. We will use a button and potentiometer to explain everything. By the end of this chapter, you will be able to make use of the digitalread() 

What You’ll Learn:

In these digital() tutorials you will learn about:

  • How to use a pushbutton to control a LED
  • make a toggle switch to turn a LED on / off
  • to make use of the debounce method
  • add a counter to your pushbutton
  • having multiple states with one push
  • Read an analog input pin, map the result, and then use that data to dim or brighten an LED by PWM (Pulse Width Modulation).
  • How to control a LED with a Potentiometer
Arduino Digital / Analog
In this Arduino tutorial, you will learn how to reliable detect if a pushbutton is open or closed. Pushbuttons can generate spurious open/close transitions when they are pressed due to mechanical or physical issues. These transistion may be read by the Arduino as multiple presses. To overcome this problem we…
Read More
Arduino Digital / Analog
In this tutorial, we will read the values of a keypad without using libraries. This tutorial is for those who want to understand how the keypad works. Firstly, we will learn how the keypad works. In other words, how a keypad detects key presses. An easy example is given by…
Read More
Arduino Digital / Analog
In this tutorial, we will use the analogRead() function to read the voltage on a potentiometer.  All Arduino Boards have a 10-bit analog to the digital converter. This means that it will map input voltages between 0 and the operating voltage (5V or 3.3V) into integers between 0 and 1023.…
Read More
Previous Post
Reading analog values with Arduino
Next Post
Introduction into visual output with Arduino