Fade Lamp

1,088

6

1

Published

Introduction: Fade Lamp

About: Rev: Ithaca Startup Works is a business incubator and workspace in Ithaca, NY. We offer business mentorship, workspace, and startup resources for any new or growing business that will create jobs in the comm...

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

Step 1: Circuit Design

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.

Step 2: ATTiny85 Programming

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.

Step 3: PCB Design in EAGLE

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.

Step 4: Milling, Cutting, and Testing

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

Step 5: Final Assembly

  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

Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Clocks Contest

      Clocks Contest
    • Water Contest

      Water Contest

    Discussions

    Hi
    how long last the battery?