How to Make RGB LED Goggles With Button Control for Different Patterns and Colors

by CrazyScience in Circuits > Arduino

29 Views, 0 Favorites, 0 Comments

How to Make RGB LED Goggles With Button Control for Different Patterns and Colors

rgbgoggles.JPG
rgb gogg.gif
rgb goggle.gif
29w.png

Hello friends in this project, I made these RGB LED Goggles, which are one of the best attention grabbers at the party or if you just wear them outside.

These goggles are powered by Arduino Nano and the best part is you can load as much as color and patterns into this and activate all of them one by one at the press of a button.

Sounds cool, doesn't it?

Yeah, and I know most of them are just eager to build this and we will do it in this Instructables.

To begin with, let me explain the features of these goggles and you will find an excuse to build one of these!

This is a 3d printed goggle and I have made this design to fit almost any headsize of the adults, The earsupports are adjustable and the front lids can be closed and open.

It has a push button and when you press this, the LED will start to show different colors and patterns and this can be changed accordingly to your preferences.

The LED googles are programmable and you can make this led emit any colors and patterns that you can imagine, all you have to do is write some code and then simply push it to the nano board and it will do the job for you.

I have also given a detailed building tutorial for these goggles. Also you can watch that video to see how to use and the open and close features on this.

So this is all about these goggles now let's start to make one of these and to begin with, we will go through the supplies that we need.

Stay tuned and happy building

Supplies

8w.png
9w.png
7w.png

These are the materials that you will need to make this project

Arduino Nano from here

WS2812B LED strip

Micro servo(For the open and close mechanism)

3D Printer

PLA Filament

Jumper Cables

Programming Cable

Arduino IDE

Elastic Bands

Soldering Iron

Soldeering Lead

Spare Connecting Wires(Single Standed not preferred)

Super Glue

Design and 3D Printing

Bodacious Blad.png
sli.jpg
1w.png

I used Tinkercad to design the parts for these Goggles. As a precheck, I made a note of the measurements of the LED strip that I used here.

I started with the frame first then as per the standards I designed the other parts

The thickness was based on the weight to performance. I later exported all the designs to Cura slicer, you can see the settings that i used at the time of slicing for the parts.

You can simply use my STL for printing or also if you want to customize the designs, you can do that too.

There is no need for rafts or supports at the time of print, Use 20 to 40% infill rate and the choice of PLA filament color is left to you.

Once we have the 3d printed parts ready we can assemble but before, let me quickly explain to you the function of each part in the below steps

3D Printed Parts

6w.png
2w.png
5w.png
4w.png
3w.png

There are a total of 5 parts that make this RGB glasses, I will name them as follows

Main frame

This is a rectangular frame with 2 hollow square at the center that will fit on your face and it will enable the wearer to see through.

It comes with nose support and i have made it universal fit so that anyone can wear this(although minor adjustment in fittings maybe still there)

LED holder

As the name itself says this holds the LED strip and and comes infront of the main frame also it moves up and down with the help of servo.

Support

This creates a space between main frame and the LED holder part, The space is for double layer safety for the wearer from the light and it also limits the movement of the LED holder to 90 degrees up and down.

Frame holder

The main frame to be wearable needs a thing and this frame holder will do the job, You can use different shapes but i will be choosing circle.

Ear support(Adjustable)

The frame holder by istelf will not be able to keep the goggles secure, It needs some sort of support that is adjustable so everyone can wear it.

I made an arc shaped support that is attached to the end of frame holder and i will be using elastic band.

We will now work on the LED frame part, the thickness was enough to hold all the LED strip but also ensuring light weight to the wearer.

Preparing LED

10w.png
12w.png
rigid flex pcbs.png
flexxible pcbs.png
prototyping service.jpg
rigid pcb.jpg
11w.png
13w.png
14w.png

The WS2812B LED strip is programmable and you can individually address the colors to each LED in a strip.

Let's say for example you have 20 LED in a strip, By codes you can choose any color on the 15th LED and do the same for the other LEDs also.

This shows that you can program LED's to show any color and also the patterns.

One thing here that you need to make a note of is the LED strip is straight and to fit this square frame you need to cut the LED.

I cut 8 pieces and each had 3 LEDs in them and the double side adhesive behind those LEDs will help you to glue them directly to the frame base without any hassle

Make sure you take care of the direction of the signal inside the LED strip, It should follow the arrow

Soldering will take time and after connecting each alternate strip check for the soldering connections.

It took me around 30 minutes to solder everything and check for the connections simultaneously. After you make all the soldering in the end for the input for the strip connect the jumper cables.

This is the part that will be lifted and lowered with the hand and the servo will act as a hinge to perform this action.

You can also replace this open circuit with a simple PCB, Complete your electronic projects in the best way from PCBWay

Why them? They have provided me with the best PCB, and the quality is just amazing compared to other providers in the market. They also have Color PCB printing, check it out

Check Here for their Multicolor 3D printing service with this, your project becomes more interesting

A revolutionary solution that combines the best of both rigid and flexible circuitry to elevate your electronic projects to new heights.

They also offer PCBA services that specialise in prototyping and small volume production, making PCBWay the one-stop destination for board fabrication and assembly check their services here , Try for only 29$ for 20pcs

PCBA & Online quote available with 24-hour delivery services

Their expertise in advanced manufacturing techniques offers seamless integration of rigid and flexible components, ensuring enhanced reliability, durability, and space-saving benefits.

Frame Preparation

15w.png
16w.png
17w.png
23w.png
24w.png

This is the step that will determine the overall strength of the glass, I mean the 3d printed parts are strong enough but the way you are combining parts really matter here.

I will use superglue to join the parts you can also use gel based glue also(it takes time to stick so im going with superglue)

Start by connecting the side support, drop some glue and stick on the eye frame and allow to stick completely before moving in to the next step.

Now after you work on the one side(elevated) for the other side i will simply use the micro servo, these act as a hinge and solve many complications whihc in the other hand may have arised if i went with some other alternatives.

Glue the servo to the other side and now place the part that has the LED strips, After this is complete we can head over to uploading code.

Circuit and Program

circuit.jpg
pro go.jpg
21w.png
32w.png

The circuit is very simple and straightforward, all you need to do is connect the argb or WS2812b strip to connect the nano board

WS2812B strip has 3 pins, Gnd, Di and 5v

Di means the input data pin and we will be connecting this pin to the D6 on the nano board.

5v and GND are connected to 5v and the GND pin of the nano board and the GND of push button can also be shared with the common ground.

The other pin of the push button will be connected to the D2 pin on the nano board, This is all about the connection that is needed for this circuit.

After the connections are complete, Connect nano board to computer and open arduino ide.

Paste the below code to the IDE and select proper type of board and port and click on upload button, Now once you have the code in your nano you are good to go.

Test the circuit by connecting pins of LED strip and buttons to the nano board directly.

When you press the push button the LED should display different colors and also the different patterns.

Now we are almost done and the only thing left here is the googles frame and i will show you how to make that in the next step.

Downloads

Finishing

25w.png
26w.png
rgb goggles.gif
IMG_1071.JPG
31w.png

In the end after all the work is complete we can finish the project by adding the holders, Since all have different head shapes or i would be more specific as ear shapes i made this.

With this you can adjust the frame accordingly, i have added ear supports that is held by the elastic band.

Easily you can increase or decrease the size of ear supports, The front glass(led strip light part) can be raised or lowered manually to gain access to the viewing part of glass.

Connect the nano board to power either with usb or with battery source and you are good to go.

I have loaded the board with 5 different types of color patterns and there is no limit by which you can add colors or patterns.

All you have to do is upload the new set of patterns and the options are often endless, At the press of a button you can change the colors or patterns.

I wanted the servo to be moving up and down too but it will consume too much power and will need an additional battery.

If you guys have any idea to solve this let me know, we can build a newer version with more features.

Now the golggles are ready and can give out colors that is truly out of the world, Let me hear what you think in the comments section below.

Working Video

How to Make RGB Goggles with WS2812B LEDs and Arduino Nano

Here is a detailed building tutorial of this project and also a working video of the same, If you think you missed something on the above steps consider watching this video.

That is all about this project, Im planning to build a version 2 of this project and let me know what you think.

I will also be expecting you to make these and if possible post in the i made it section.

Thank you and have a happy building.