Learn about analog output and mapping values by making a lamp that will change colors depending on external lighting.
From Project 04 in the Arduino Projects Book
![Photo of the Arduino circuit set up for the Color Mixing Lamp project](https://u.osu.edu/makemoe/files/2017/07/IMG_5244-19ytdya-e1500822406321.jpg)
Arduino circuit set up for the Color Mixing Lamp project
From Project 04 in the Arduino Projects Book
Arduino circuit set up for the Color Mixing Lamp project
From Project 03 in the Arduino Projects Book
From Project 02 in the Arduino Projects Book
From Project 01 in the Arduino Projects Book
When components are in a series the electrical current flows through both one after another. In this example, both buttons must be pressed at the same time for the LED to light.
When components are parallel the electrical current is split between them. In this example, if either button is pressed the LED will light up.
…