Data Sheet

Guide V1.0
Email: keen@elecrow.com Web: www.elecrow.com ---Designed by Elecrow Keen
22
Language reference
Tipsclick on the following name to jump to the web page.
If you fail to open, use the Adobe reader to open this document.
pinMode()
OUTPUT
INPUT
for()
HIGH
LOW
digitalWrite()
delay()
< (less than)
++ (increment)
Application effect
The green light flashes for 5 seconds, then the yellow light flashes 3 times, and then the
red light 5 seconds, the formation of a cycle. And then repeat the cycle. This experiment
shows the effect of the simulation of traffic lights.
Lesson 4: Analog input
Overview
In this lesson, we use a variable resistor (a potentiometer), we read its value using one
analog input of an Arduino board and we change the blink rate of the built-in LED
accordingly. The resistor's analog value is read as a voltage because this is how the analog
inputs work.
Specification
Product Name: Potentiometer;