Flexible Mounting RGB Dome Light
Introduction: Flexible Mounting RGB Dome Light
A few years ago, when my son started going to school on his own by bike, I bought for him a QQ Watch that allowed me and my wife to stay in touch and keep track of him. This smartwatch is now broken but I still keep its box because it looks pretty. I took my time to turn it into a useful thing - this is a flexible mounting RGB light made out of this case.
Let's getting started.
Step 1: Supplies
The main components are as follows:
⦾ 1pcs x DigiSpark ATTiny85.
⦾ 3pcs x Power Logic 8-Bit Shift Register TPIC6B595N.
⦾ 2pcs x A1013 Transistors.
⦾ 16pcs x RGB LED 10mm, Common Anode.
⦾ 24pcs x R100.
⦾ 3 pcs x R10K.
⦾ 1 pcs x R22K.
⦾ 2pcs x Capacitor 0.1uF.
⦾ 2pcs x Female 40pin 2.54mm Header.
⦾ 2pcs x Male 40pin 2.54mm Header.
⦾ 3pcs x 20-Pin DIP IC Base Socket Connector (For TPIC6B595N).
⦾ 1pcs x Mini Round Momentary Push Button.
⦾ 2pcs x Double Sided DIY Protoboard Circuit 5x7cm.
⦾ 1 meter x 8P/16P Rainbow Ribbon Cable.
⦾ 2pcs x 5mm DC Male And Female Power Plug.
⦾ Some Neodymium Magnets.
Step 2: Schematic
I stuffed 16pcs x RGB leds 10mm and control board into the watch box. ATTiny85 microcontroller was used in this project to control RGB led and one push button for mode selection. 769
The schematic is shown on the image above.
First of all, I would like to thank the JLCPCB for supporting me on this project. If you have a PCB project, please visit the JLCPCB website to get exciting discounts and coupons as follows:
* JLCPCB PCB Prototype only $2.
* Get $24 Register Coupon here: jlcpcb.com/cyt
Step 3: Assembly and Soldering
I disassembled the watch box parts and measured the dimensions. It fits with 5x7cm PCB protoboards.
RGB led matrix 4x4 was soldered on a protoboard 5x7 cm.
Soldering control component on the remaining PCB 5x7 cm following the schematic on Step 2.
⦾ Top view.
⦾ Bottom view.
Remove the watch holder and glue the led matrix 4x4 to the middle part's top.
Thread all wires from the led matrix down to the control board which is located at the middle part's bottom.
Plug ATTiny85 on its header.
Drill and install one push button and female power plug at bottom part.
Glue some Neodymium magnets.
Assemble all the parts together. DONE.
Step 4: Programing
The following core, libraries and driver for DigiSpark ATTiny85 need to be installed in this project:
⦾ ATTinyCore.
⦾ Digistump Driver.
⦾ Arduino tinySPI Library.
⦾ AnalogButtons.
SPI Connections:
⦾ DigiSpark ATTiny85 PB0 to TPIC6B595N Pin 12 (RCK - LATCH PIN).
⦾ DigiSpark ATTiny85 PB1 to TPIC6B595N Pin 3 (SER IN - DATA IN).
⦾ DigiSpark ATTiny85 PB2 to TPIC6B595N Pin 13(SRCK - CLOCK PIN).
⦾ TPIC6B595N Enable Pin (OE) to Ground.
The DigiSpark ATTiny85 code is shown below:
#include <tinySPI.h>
#include <AnalogButtons. 379