Input Devices

are often sensors or electrical voltage circuits that allow your computer program to make "decisions".  In the Arduino IDE there are very useful input device examples.  Input devices may be analog or digital.  A0 to A5 pins on the Arduino UNO are analog input pins. 

Once you have read the input .. the code can control the output!

  • The Arduino IDE has an example of an "analog" program.
  • If you need to control the volume of a speaker, for example, you could use an input device like a potentiometer ( a variable resistor ).  Then attach a knob or wheel to the sensor.