Assignment 2: ATTiny85 Neopixels Control

Assignment 1: ATTiny85 and Neopixels Control

The Idea

The project consists of developing some kind of interactive project with an ATTiny85 microcontroller. I decided to control a NeoPixels ring I had laying around with a potentiometer to control the speed of the flashing lights around the ring.

The Result

Final pcb mount.
Result GIF.

Bill of Materials

– 1 Neopixels ring
– 1 ATTiny85 microntroller
– 1 LM7805 Voltage Regulator
– 1 10K resistance
– 1 potentiometer
– 1 9V Battery
– 1 PCB Board of choice

 

Materials
Materials
My PCB.
My PCB.

Process

As I showed in the last post, the process started by flashing the code onto the ATTiny85 microcontroller using my custom bootloading jig. The code itself was adapted from the Adafruit Neopixel library “Simple” example sketch. It would have to be modified to receive an analog sensor value incoming from the potentiometer.

Bootloading Jig.
Bootloading Jig.

At first I just tried the Neopixels Sample example without the sensor control. I wanted to test if the library would work with the ATTiny. Once I confirmed the library worked I proceeded to add the potentiometer in order to control the speed in which the lights would spin around the ring.

Testing the Neopixels on the breadboard.
Testing the Neopixels on the breadboard.
ATTiny85 with Neopixels control on breadboard
ATTiny85 with Neopixels control on breadboard

After checking the hole circuit worked on the breadboard, I soldered the whole setup onto the PCB board.

Soldering the components onto the PCB board.
Soldering the components onto the PCB board.

Finally, after a bit of flux and a couple soldering, I completed a circuit I’m completely satisfied with.

Final setup.
Final setup.

The Code

Circuit Diagram

Circuit Diagram
Circuit Diagram

Thanks for reading!