This is a WS2812B based Seven Segment Display aka Moodiest Seven Segment Display is designed to be the moodiest of all.
You heard it right because it not only serves you a particular colour of light but the whole rainbow (VIBGYOR) effect and tons of animations.
From this tutorial, you will be Learning-
1. How to design this Moodiest Seven Segment Display.
2. How to integrate animations and effects
3. How to get the IPC class 2 graded PCBs
4. How to Build the very same display with customizations
Step 1: How do these Displays Work?Each WS2812B LED has a data input and output pin. So, these LEDs take a formation of a Train where you connect the first LED to the data pin of the microcontroller and the output of the first LED is connected to the data input pin of the second LED. The chain formation goes on... π
Now the reason to choose WS2812B is that it has a built-in WS2811 integrated chip. We need a 100nF capacitor for each LED, but in this project, we can ignore it as we have a 3V option in the popular Nodemcu.
In future, we can opt for a WS2813 LED as we get a built-in capacitor with the WS2811 integrated chip.
Calculation
No. of Segments in one display unit - 7
No. of LEDs in one segment - 2
Total no. of LEDs required to build one Moodiest Segment - 7 x 2 = 14 LEDs
Now to make one RGB Clock we need 3 display units
So, we will need 14 x 3 = 42 LEDs in total.
Unfortunately, my stock is not sufficient but once the international curbs open, I will get it refilled.
I will update you all when I am back with the RGB Clock.
Until you can try it out and share.
So, let's begin the project.
Step 2: Getting Your PCBs (Lion Circuits)For making this project you will need a PCB board and I highly recommend getting it from Lion Circuits.
They provide IPC Class 2 PCBs for only $15 for 10pcs and on-time globe shipments. You get a free goodie with your PCB order as a gift.
They provide an impressive latest generation Manufacturing from India.
Lion Circuits(Salient Features)
π have a Real-Time Pricing Engine.
π provide Instant DFM feedback pre-manufacturing.
π bring you AI-based Quality assurance with the latest AOI.
π secure your design in a robust Design Confidentiality environment.
Your PCB manufacturing time takes only 24 to 48 hours excluding the DFM check and the fastest global shipments.
A cool feature is that we get an assurance report of our PCB manufactured.
Have a look at my PCB fabrication report. The report consists of everything that other PCB companies lack and fail to share.
Enjoy your PCBs from Lion circuits and get it blended in India. You have a chance to get a discount on your PCB order by completing this form.
Step 3: How to Run These Displays? (Coding)So, to operate these displays there are tons of code available around the world, so to avoid complexity I prepared a code (From Kitesurfer's WS2812FX) for the initial test of this project which will help us know that what we have assembled is correct or wrong.
Now copy-paste the code into your Arduino IDE software and make sure you change your Wi-Fi credentials before compiling.
After uploading the code-
1. Open Serial Monitor in the Arduino IDE.
2. Wait for the message "connected"
3. Copy the IP address shown on the serial monitor and paste it into your browser.
4. Now you can control the segment from the browser over the air.
When we deal with the NeoPixels, there are chances of damaging the data pins while hand soldering.
So before soldering, upload the code to the microcontroller.
Then connect the Microcontroller with the PCB using jumper wires and check the effect after soldering.
This process will be time-consuming. But you will see a good result. The same I followed when I faced these errors.
Once you see the effect on a segment from the test code, you can develop your own code or get it from GitHub and hit upload.
Now there are some precautions to be followed -
1. Make sure the Data Pin defined in the Code matches your wired connection.
2. Make sure you have all the required libraries and the boards installed.
To add a library or a board in Arduino IDE, check these cool tutorials-
Importing Library to Arduino IDE
3. The VCC on the PCB requires 3V, not 5V
Ok, so here comes the first application. A GitHub repository by Electropoint4u allows us to exhibit numbers 0-9 with some animations on our Moodiest Display. I changed the code with my requirements and colour codes for the numbers.
To change the colour effects, I used this RGB Colour Code Software.
Since the NeoPixels has been so amazing to work with, I tried to add a feature of the Wi-Fi RSSI function.
While browsing Electropoint4u's Github page, I found his amazing Wifi signal strength tester project. This man rocks here, his contribution made my project thrilled with another feature.
Finally, I assigned the colours to the LEDs depicting a Pattern and the Code is complete here.
Upload the code to your Nodemcu and see the Moodiest indicating the WI-FI signal strength in your area.
I have attached the code here and have tried to get it familiar to you at an ease by explaining each section use. still, if you scratch your head, then let me know in the comment section. I will help you out.
This project is available as complete Instructables and will be available soon on my Tindie Store.
Comments