Arduino RGB Color Grab Flashlight
---Despite thousands of colors, only take one---
Function Description
There is only 1 button in the flashlight. Short press the button, open and turn off. Long press it in ON will enter the color grabbing mode and LED is in BLN control.In front of the color you want, short-press the button, the light of the flashlight will be changed accordingly. The color you took will be stored to the EEPROM area which is equals to memory zone, so that the flashlight can memorize the color until you pick up the new one. Short-press the button again, then the flashlight turns off. Let’s store the colorful world to the flashlight now!
Design Idea
The light of the flashlight is made of 1 RGB and 30-degree spotlight cover. The button is a micro switch. I selected the powerful small Beetle as the main control. Usually, Beetle keeps in sleep, once the button is pressed, Beetle will be awake and light up the RGB LED, or recognize colors. The lithium Battery 3.7v 50mah is adopted as the power supply. In charging, the DC-DC module is used to transfer 5v of Beetle to stable 4.2V to supply the lithium battery.
1. Design the crust
2. SLA 3D Printing
3. Apply masking glue where paint is not required
4. Spray paint to the main part of the crust in grey
5. Tilt the masking glue applied before
6. Paint acrylic to suitable positions
7. Remove unnecessary acrylic paint around with the sandpaper, and clean-up dust
8. Paint mask putty to the acrylic area and float all masking putty, just hide the acrylic parts
9. Paint to the main part of the crust in grey again, take out all masking putty and varnish.
10. Spray paint the button cap in yellow and the back cover in black, and varnish.
Here the curst work is done.
Welding circuits1. Cut out Beetle and the color sensor.
The color sensor is made of black acrylic plate and PCB board. Here we just need to cut the PCB part to make it small enough. Well, you can also keep the original size if you do not mind the flashlight size.
2. Short-circuit pins shown as below
3. Plug the micro switch to 4 holes in the back cover, and flatten pins to cling to its surface.
4. According to the figure as below to weld the circuit.
Please note that the all wielding wires of the color sensor and the micro sensor should go through the square holes in the back cover. Because both of them should be installed in the outside of the back cover.
1. Fix the color sensor to the back cover with the quick-drying glue temporarily.
2. Fix the battery to the slot in the back cover with the hot-melt adhesive
3. Fix the light cover with the quick-drying glue to the holes reserved in the crust
4. Install the masking cap
5. Fix Beetle with hot-melt adhesive to the crust bottom board.
6. Stick the DC-DC module to the top left of the inner wall with hot-melt adhesive.
7. Put the RGB LED to the slot in the back of the light cover
8. Put all wires to the inner part of the crust. Take off the black acrylic crust, expand the hole size and drill a slope to suit the screw.
9. Install 2 self-tapping screws.
Here we finish all works to install.
Uploading the programPlease kindly note that in the end of the program burning, it will not show “successful loading”, but will remind cannot find the serial port, never mind, it shows that the uploading is done. If you need to upload it again, Beetle should be short circuited, otherwise IDE will not recognize the main control board.
Done with the uploading
Here we accomplished all works to make a color recognize flashlight.
Function Description
There is only 1 button in the flashlight. Short press the button, open and turn off. Long press it in ON will enter the color grabbing mode and LED is in BLN control.In front of the color you want, short-press the button, the light of the flashlight will be changed accordingly. The color you took will be stored to the EEPROM area which is equals to memory zone, so that the flashlight can memorize the color until you pick up the new one. Short-press the button again, then the flashlight turns off. Let’s store the colorful world to the flashlight now!
Design Idea
The light of the flashlight is made of 1 RGB and 30-degree spotlight cover. The button is a micro switch. I selected the powerful small Beetle as the main control. Usually, Beetle keeps in sleep, once the button is pressed, Beetle will be awake and light up the RGB LED, or recognize colors. The lithium Battery 3.7v 50mah is adopted as the power supply. In charging, the DC-DC module is used to transfer 5v of Beetle to stable 4.2V to supply the lithium battery.
1. Design the crust
2. SLA 3D Printing
3. Apply masking glue where paint is not required
4. Spray paint to the main part of the crust in grey
5. Tilt the masking glue applied before
6. Paint acrylic to suitable positions
7. Remove unnecessary acrylic paint around with the sandpaper, and clean-up dust
8. Paint mask putty to the acrylic area and float all masking putty, just hide the acrylic parts
9. Paint to the main part of the crust in grey again, take out all masking putty and varnish.
10. Spray paint the button cap in yellow and the back cover in black, and varnish.
Here the curst work is done.
Welding circuits1. Cut out Beetle and the color sensor.
The color sensor is made of black acrylic plate and PCB board. Here we just need to cut the PCB part to make it small enough. Well, you can also keep the original size if you do not mind the flashlight size.
2. Short-circuit pins shown as below
3. Plug the micro switch to 4 holes in the back cover, and flatten pins to cling to its surface.
4. According to the figure as below to weld the circuit.
Please note that the all wielding wires of the color sensor and the micro sensor should go through the square holes in the back cover. Because both of them should be installed in the outside of the back cover.
1. Fix the color sensor to the back cover with the quick-drying glue temporarily.
2. Fix the battery to the slot in the back cover with the hot-melt adhesive
3. Fix the light cover with the quick-drying glue to the holes reserved in the crust
4. Install the masking cap
5. Fix Beetle with hot-melt adhesive to the crust bottom board.
6. Stick the DC-DC module to the top left of the inner wall with hot-melt adhesive.
7. Put the RGB LED to the slot in the back of the light cover
8. Put all wires to the inner part of the crust. Take off the black acrylic crust, expand the hole size and drill a slope to suit the screw.
9. Install 2 self-tapping screws.
Here we finish all works to install.
Uploading the programPlease kindly note that in the end of the program burning, it will not show “successful loading”, but will remind cannot find the serial port, never mind, it shows that the uploading is done. If you need to upload it again, Beetle should be short circuited, otherwise IDE will not recognize the main control board.
Done with the uploading
Here we accomplished all works to make a color recognize flashlight.
Comments
Please log in or sign up to comment.