Things used in this project

Hardware components:
Atmel ATtiny85 - DIP
×1
Adafruit Neopixel Buttons
×3
DIP-8 Socket
×1
2-Pin JST Connector
×1
LiPo - 100 mAH
×1
A000066 iso both
Arduino UNO & Genuino UNO
Just needed for programming the ATtiny85
×1
12002 04
Breadboard (generic)
Just needed for programming the ATtiny85
×1
Stranded-Core Wire
×1
Software apps and online services:
D94d qxu
Autodesk Fusion 360
Hand tools and fabrication machines:
Hy gluegun
Hot glue gun (generic)
09507 01
Soldering iron (generic)
3drag
3D Printer (generic)

Custom parts and enclosures

Middle
Fusion Archive
Upload this in your Fusion 360 Data Panel
light_up_wallet_v31_HCZe37PdkI.f3d

Schematics

Circuits.io Breadboard Simulator
You can use this to test code before uploading it to the ATtiny

Code

Light-Up-WalletArduino
//Alex Wulff - www.AlexWulff.com

//##################
//IMPORTANT NOTE - BURN THE BOOTLOADER TO THE ATTINY BEFORE UPLOADING THIS OTHERWISE IT WON'T WORK
//##################
#include <Adafruit_NeoPixel.h>

#define PIN            3
#define NUMPIXELS      3
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  // put your setup code here, to run once:
  pinMode(PIN, OUTPUT);
  strip.begin();
}

void loop() {
  rainbowCycle(20); 
}

void rainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
    for(i=0; i< strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
    }
    strip.show();
    delay(wait);
  }
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else if(WheelPos < 170) {
    WheelPos -= 85;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  }
}

Credits

Dsc 0358 aupidjdwxg
Alex Wulff
1 project • 38 followers
I'm an 18-year-old maker from Upstate New York. I love Arduino, embedded systems, 3D printing, and iOS development. www.AlexWulff.com
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog