It’s not the prettiest thing, but it works.
Work did a hack-a-thon event last week on Thursday and Friday. I decided to do a hardware project. The developers in the company can never decide how bright they want the lights on in the room, so I built a lamp that would auto-adjust based on the ambient lighting.
The circuit is a simple LED dimmer circuit. It uses a photo resistor to measure the ambient light in the room and then adjusts the brightness of the LEDs based on that. It also does a Redshit on the color of the LEDs. I’m using WS2812 LEDs. The microcontroller is an Arduino Beetle board from DFRobot that uses the leonardo chip. I love these little guys and have used them in quite a few projects.
I’ll grab pictures of the final lamp. The prototype was made with PVC and had a protoboard bolted to the top of it. It looked very ‘highschool science project’ looking, but it managed to net me two awards… Best hardware and Most Creative. I called it ‘Sir Lampalot’.
I’m currently rebuilding the lamp using a copper pipe to replace the PVC. It’s looking pretty nice. I need to sand and buff the copper and put some clear coat on it so it stays nice and shiny. I also 3d printed a box to mount the circuit board in.
On to the CNC side of the project.
I tried to cut a circuit board for the project. I ran into issues during the hack-a-thon, but was finally able to get something cut yesterday during my day off.
I’m having a problem with the cheap 10º engraving bits breaking the tips off. I may be cutting too fast @120mm/min
I used Eagle to design the board and I used pcb-gcode to create the cut paths.
I then had to edit the g-code files. The drill gcode adds tool changes for each of the drill bits, but those don’t seem to work, so I take them all out. I then use a drill bit big enough for everything.
I also add a G00 X0 Y0 to the end of the engraving code so that it goes back to home so I can switch the engraving bit with the drill bit.
The engraving bits seem to leave a rough edge, so I hit the bottom of the board with a little sand paper.