In this experiment, we will demonstrate the precise color mixing capabilities achieved by making use of a potentiometer as an analog input.


Parts Required

Instructions

  1. Connect the positive (Potentiometer +) pin to 5V.
  2. Connect the negative (Potentiometer -) pin to GND.
  3. Connect the data (Potentiometer Data) pin to A3.
  4. Attach a Red LED to pin 9 with a 220 Ohm resistor.
  5. Connect a Green LED to pin 10 with a 220 Ohm resistor.
  6. Wire a Blue LED to pin 11 with a 220 Ohm resistor.

Circuit Schematic

Code

Link to Code

Demo

Previous Entry

Next Entry