This project is a ring of 12 RGB LEDs controlled to show different set colours (in a smile pattern), based on the resistance of the slide potentiometer.
If anyone has any suggestions, I'd be happy to read them as improvements can always be made. :)
Step 1: Bill of Materials (BOM)
- Any Arduino board or Arduino IDE compatible configuration (ex. an ATMEL IC w/the necessary components)
Arduino UNO R3 I used:
- Breadboard or PCB
The breadboard I used:
- Any size RGB LED Ring or "Adafruit NeoPixel Ring"
RGB LED Ring I used with 12 LEDs:
Potentiometer I used:
Jumper wires I used:
Step 2: Wiring
Diagram was created with Circuito.io
(click the image to see full diagram)
Step 3: Arduino Code
The original code is an Adafruit Neopixel Example, "Simple," modified by myself to work with this project.
Currently it shows five different colours, either red, yellow, green, blue or violet. If the potentiometer is not in range of the values set into the conditional statements, it will turn all the LEDs off. (set R,G,B to 0,0,0).
This is an entry in the
First Time Author