Fade Lamp

by revithaca in Circuits > Electronics

2298 Views, 8 Favorites, 0 Comments

Fade Lamp

lol.jpg

This project outlines the design and build of a simple jar lamp using the NeoPixel and ATTiny85. The purpose of this project is to demonstrate the use of multiple rapid prototyping machines here in our shop at Rev Ithaca including a CNC PCB mill (we used Bantam tools Othermill) and a CNC laser cutter (we used a Glowforge).

Materials:

Tools:

  • Computer with EAGLE and Arduino IDE
  • Arduino Uno with USB type A to B cable
  • Bantam Tools Othermill (or other method for PCB production)
  • Soldering Iron
  • Solder
  • Laser cutter

Circuit Design

Breadboard.PNG
Wiring_Diagram.PNG
20180705_134745.jpg

This is a pretty basic circuit, but there are a couple points worth explaining. The capacitor connected from VCC to ground is called a bypass capacitor. This helps to attenuate AC noise introduced to the DC source due to high-current components. The NeoPixel specifically has a signal structure that requires high-current pulls periodically. See the links below for further rationale for these design decisions.

Bypass capacitor:

https://www.elprocus.com/bypass-capacitor-its-func...

Selected parts explained Neopixel Data signal structure: http://www.seeedstudio.com/document/pdf/WS2812B%2...

The resistor between the ATTiny85 and DI of the NeoPixel serves to buffer the signal and reduce error due to noise. Make sure you breadboard the circuit first to ensure everything works. See the next step to program the ATTiny85.

ATTiny85 Programming

Attiny85.png
Code_Snip.PNG

I pieced together a couple tutorials to set up the ATTiny85 and NeoPixel Library since I am not well-versed in Arduino IDE. See the links below:

https://www.hackster.io/arjun/programming-attiny85...

https://github.com/adafruit/Adafruit_NeoPixel

Once this is set up you can either write your own code or use mine! The NeoPixel has particularly pleasing violet and orange hues which my program fades in between.

Downloads

PCB Design in EAGLE

Board_Snip.PNG
20180705_134817.jpg

To fabricate the PCB I used EAGLE to create a .brd file in conjunction with a DRC provided by the Othermill's resources. Using a custom DRC in an EAGLE file ensures the machine will accurately fabricate based on your design. See Bantam Tools resources:

https://support.bantamtools.com/hc/en-us/articles/...

Specifically, I used the 1/32" flat endmill and a single-sided FR-1 copper board. If you do not have access to a PCB mill, you can follow the circuit design per step 1 on protoboard. Follow the next steps to bring this design into reality.

Milling, Cutting, and Testing

othermill.jpg
Glowforge.jpg
Oscilloscope.jpg
20180705_134607.jpg
neo1.png
neo2.png

Othermill:

https://support.bantamtools.com/hc/en-us/articles/...

or use: OSH Park https://oshpark.com/ (This will require specification of multiple layers through gerber files)

Follow the circuit diagram to solder thru-hole components to your PCB

Glowforge (or other CNC laser cutter):

.svg attached, see below laser settings for different stages of the cut:

Logo: 500 speed, 30 precision, 0.190 focus height, 225 inches per inch

Shape: 120 speed, 45 precision, 0.190 focus height

The wooden rings, when glued together, serve to make the switch flush with the profile of the lid.

Testing/Debugging:
Use an oscilloscope to diagnose any problems that may remain after soldering, look for short circuits on the PCB

Final Assembly

jar.jpg
img_1085.jpg
20180705_134651.jpg
20180705_134628.jpg
20180705_134622.jpg
  1. Glue the wooden rings together using a glue of your choice
  2. Use M3 nuts and bolts to secure switch on the underside of the wooden insert
  3. Solder long leads between PCB switch holes and DPDT terminals to hold everything together (see picture)
  4. Screw ring to jar over wooden lid
  5. Enjoy your lamp!

Isaac Lawson-Hughes 2018