WS2811 POV Display on PC Fan
![Untitled3.png](/proxy/?url=https://content.instructables.com/FIY/PJYB/JG2VYR8L/FIYPJYBJG2VYR8L.png&filename=Untitled3.png)
![WS2811 RGB POV display: final video.](/proxy/?url=https://content.instructables.com/FOU/E8O6/JG2VYSCA/FOUE8O6JG2VYSCA.jpg&filename=WS2811 RGB POV display: final video.)
As time goes on, new possibilities of creating cool devices seem to endlessly pour on my head. This time I was invited to take part in Eurobot 2018 national qualifications to compete for the chance of going to the international grand finale. Aside from the obvious tasks of creating and programming robot's stage, I was also responsible for making a device that dynamically displayed the number of points that the robot earned in the match.
While the robot's electronic entrails were arguably the most enjoyable part of my contribution to our team, I'll publish the details of making the displaying device anyway.
I'm going to show how YOU can make a display like mine out of Arduino and those widespread WS2811 RGB LEDs.
For more details, visit my blog post here:
https://shortn0tes.blogspot.com/2018/04/ws2811-pov-display-on-pc-fan.html
Components
![IMG_7461.JPG](/proxy/?url=https://content.instructables.com/F2A/WUT1/JG2VYRCG/F2AWUT1JG2VYRCG.jpg&filename=IMG_7461.JPG)
![IMG_7462.JPG](/proxy/?url=https://content.instructables.com/FT4/KGGU/JG2VYRCR/FT4KGGUJG2VYRCR.jpg&filename=IMG_7462.JPG)
![IMG_7718.JPG](/proxy/?url=https://content.instructables.com/FAX/6X3J/JG2VYRDA/FAX6X3JJG2VYRDA.jpg&filename=IMG_7718.JPG)
![IMG_7485.JPG](/proxy/?url=https://content.instructables.com/F3Z/OOIT/JG2VYRD4/F3ZOOITJG2VYRD4.jpg&filename=IMG_7485.JPG)
![IMG_7484.JPG](/proxy/?url=https://content.instructables.com/FPQ/VWGB/JG2VYRD2/FPQVWGBJG2VYRD2.jpg&filename=IMG_7484.JPG)
![IMG_7505.JPG](/proxy/?url=https://content.instructables.com/FEA/4VKQ/JG2VYRD6/FEA4VKQJG2VYRD6.jpg&filename=IMG_7505.JPG)
![IMG_7491.JPG](/proxy/?url=https://content.instructables.com/F6Z/J0V0/JG2VYRD5/F6ZJ0V0JG2VYRD5.jpg&filename=IMG_7491.JPG)
![IMG_7767.JPG](/proxy/?url=https://content.instructables.com/FVK/HW6T/JG2VYRDV/FVKHW6TJG2VYRDV.jpg&filename=IMG_7767.JPG)
For the display itself you're going to need:
-
An ordinary PC fan and a plastic top from any jar. Any disc of plastic will do.
-
Five WS2811 individually addressable RGB LEDs. I got mine online (aliexpress).
-
Hall sensor (ali) and a magnet to synchronize LED blinks to platform rotation.
-
Two 3x7cm perforated boards (ali again. Yeah, you got me, I like to order junk from this store). Actually, maximal allowed size will depend on the size of your fan, but it all fit snugly on two boards of this size, so I still recommend those. Also, you'll need something to fix one perfboard on top of another - I had some spare Arduino-style pin headers, but it's OK if you don't have one - you can connect the boards with four long bolts or stadoffs.
-
One lithium battery of any capacity that'll fit on top of the fan (rip it out of some unfortunate old cellphone about to be thrown into the trash. Everyone got one of those, ask your friends and family),
-
One charger for the battery.
-
One boost converter (battery voltage -> 5V),
-
One buck-boost converter (battery voltage -> 3.3V),
-
And a power switch.
-
One 3.3V Arduino (that's important to avoid level-shifting circuitry!) and one NRF24L01 RF transceiver.
For score transmitter:
-
Another NRF24L01 RF transceiver and any Arduino with USB port to set the score from PC. I only had 5V Arduino boards with USB, so that's what I had to use - my pick is Arduino Nano clone. 5V microcontroller won't fry the RF module, provided you power it from separate 3.3V power source. NRF24L01 data lines are 5V-tolerant. My 3.3V power source was LM1117-3.3 regulator - the beefier the better! No heatsink required. You'll be better off getting yourself an USB-connected 3.3V Arduino Pro Micro, though you'll still have to feed NRF24L01 off the separate 3.3V regulator - the stock regulator on most Arduino boards is only designed to power microcontroller itself and periphery with insignificant current consumption.
Assembly: LED Strip Composition.
![schematic.PNG](/proxy/?url=https://content.instructables.com/FBT/PU4F/JG2VYRVH/FBTPU4FJG2VYRVH.png&filename=schematic.PNG)
![IMG_7468.JPG](/proxy/?url=https://content.instructables.com/F2F/C02J/JG2VYRSW/F2FC02JJG2VYRSW.jpg&filename=IMG_7468.JPG)
![IMG_7469.JPG](/proxy/?url=https://content.instructables.com/F9S/AT2Q/JG2VYRT1/F9SAT2QJG2VYRT1.jpg&filename=IMG_7469.JPG)
![IMG_7470.JPG](/proxy/?url=https://content.instructables.com/FBL/Y87U/JG2VYRT9/FBLY87UJG2VYRT9.jpg&filename=IMG_7470.JPG)
![IMG_7471.JPG](/proxy/?url=https://content.instructables.com/FPO/488O/JG2VYRTQ/FPO488OJG2VYRTQ.jpg&filename=IMG_7471.JPG)
![IMG_7472.JPG](/proxy/?url=https://content.instructables.com/FLS/KQ74/JG2VYRU1/FLSKQ74JG2VYRU1.jpg&filename=IMG_7472.JPG)
![IMG_7474.JPG](/proxy/?url=https://content.instructables.com/F5L/IGF0/JG2VYRU2/F5LIGF0JG2VYRU2.jpg&filename=IMG_7474.JPG)
![IMG_7475.JPG](/proxy/?url=https://content.instructables.com/FIC/PP0Y/JG2VYRUD/FICPP0YJG2VYRUD.jpg&filename=IMG_7475.JPG)
![IMG_7477.JPG](/proxy/?url=https://content.instructables.com/F2A/PPCG/JG2VYRUO/F2APPCGJG2VYRUO.jpg&filename=IMG_7477.JPG)
![IMG_7479.JPG](/proxy/?url=https://content.instructables.com/FKX/K7V9/JG2VYRUP/FKXK7V9JG2VYRUP.jpg&filename=IMG_7479.JPG)
![IMG_7480.JPG](/proxy/?url=https://content.instructables.com/FQZ/JSRU/JG2VYRUQ/FQZJSRUJG2VYRUQ.jpg&filename=IMG_7480.JPG)
![IMG_7494.JPG](/proxy/?url=https://content.instructables.com/F18/OCK7/JG2VYRV5/F18OCK7JG2VYRV5.jpg&filename=IMG_7494.JPG)
We'll start by making the rotating platform itself, a device conforming to the schematic attached. Each step below corresponds to one image.
-
Take a length of solid core wire, strip the insulation.
-
Start soldering the wire to WS2811 modules, one...
-
..by one.
-
Then, solder opposite ends of wires to another WS2811, so that they are connected head to tail (IN to OUT).
-
Keep the wire between LEDs short, but not too short. It should be as long as to allow modules to align to a single plank, not a smidge longer.
-
Rinse and repeat until you get a stipe of required length (5 in my case, enough to show numbers).
-
Now we have to install the stripe of LEDs at a right angle to the spinning platform.
-
Not having access to laser cutter, I clumsily cut the panel for LEDs out of acrylic sheet.
-
Then mounted and soldered the connector on to it. That's the result here.
-
Time to mount the strip on to the base! For simplicity's sake, I attached it with 2-part epoxy putty (a.k.a. cold weld).
-
The other bulky part of the electronics that my device incorporates is lithium battery. Slap it down with some epoxy as well!
Assembly: Soldering the Circuit Board(s).
![IMG_7493.JPG](/proxy/?url=https://content.instructables.com/FKW/IP70/JG2VZ3PY/FKWIP70JG2VZ3PY.jpg&filename=IMG_7493.JPG)
![IMG_7496.JPG](/proxy/?url=https://content.instructables.com/F9A/T2JE/JG2VZ3QV/F9AT2JEJG2VZ3QV.jpg&filename=IMG_7496.JPG)
![IMG_7497.JPG](/proxy/?url=https://content.instructables.com/FW3/DMOB/JG2VZ3R9/FW3DMOBJG2VZ3R9.jpg&filename=IMG_7497.JPG)
![IMG_7506.JPG](/proxy/?url=https://content.instructables.com/FD3/2HNW/JG2VZ3RG/FD32HNWJG2VZ3RG.jpg&filename=IMG_7506.JPG)
![IMG_7507.JPG](/proxy/?url=https://content.instructables.com/F79/UWLI/JG2VZ3S0/F79UWLIJG2VZ3S0.jpg&filename=IMG_7507.JPG)
![IMG_7513.JPG](/proxy/?url=https://content.instructables.com/F0K/I6GT/JG2VZ3SK/F0KI6GTJG2VZ3SK.jpg&filename=IMG_7513.JPG)
![IMG_7518.JPG](/proxy/?url=https://content.instructables.com/FXI/2U8T/JG2VZ3TE/FXI2U8TJG2VZ3TE.jpg&filename=IMG_7518.JPG)
-
First, let's arrange the components on perfboards. Having sockets for each module will diminish your pain if you manage to destroy one of the parts - in fact, I accidentally applied reverse voltage to Lithium charger's microUSB connector(well, what do you know...), and charger replacement took no more than a minute.
-
I had a couple of Arduino-style headers in my drawer, and they double as power connectors between top and bottom boards in this application - neat!
-
Once everything's seems to be in its right place, solder it down.
-
My bottom board holds the power-related circuit parts. Battery will be connected to the white JST-style connector at the far side of the board. Connect everything according to schematics....
-
... and set up your dc-dc converters so that they output the right voltage.
-
Now that the bottom power-routing board is ready, you can get to the top board. It should contain all controlling peripherals. You can use Arduino-style connectors to transfer power. Don't forget to route 3 wires for hall sensor to the side of the board.
-
Insert Arduino and NRF24L01 in place and the circuit is almost ready!
Testing and Post-assembly.
![IMG_7519.JPG](/proxy/?url=https://content.instructables.com/FDC/HZHK/JG2VZ3TM/FDCHZHKJG2VZ3TM.jpg&filename=IMG_7519.JPG)
![WS2811 RGB POV display: the whole thing assembled.](/proxy/?url=https://content.instructables.com/FY1/6DTF/JG2VZ6G1/FY16DTFJG2VZ6G1.jpg&filename=WS2811 RGB POV display: the whole thing assembled.)
![IMG_7524.JPG](/proxy/?url=https://content.instructables.com/FVW/IZ9Y/JG2VZ3UN/FVWIZ9YJG2VZ3UN.jpg&filename=IMG_7524.JPG)
![IMG_7526.JPG](/proxy/?url=https://content.instructables.com/FWL/1UBY/JG2VZ3UU/FWL1UBYJG2VZ3UU.jpg&filename=IMG_7526.JPG)
![IMG_7527.JPG](/proxy/?url=https://content.instructables.com/FT7/WM6B/JG2VZ3VC/FT7WM6BJG2VZ3VC.jpg&filename=IMG_7527.JPG)
![IMG_7719.JPG](/proxy/?url=https://content.instructables.com/FT9/TFY6/JG2VZ3WE/FT9TFY6JG2VZ3WE.jpg&filename=IMG_7719.JPG)
![IMG_7721.JPG](/proxy/?url=https://content.instructables.com/FLU/HJ25/JG2VZ3WH/FLUHJ25JG2VZ3WH.jpg&filename=IMG_7721.JPG)
- At this point you should be able to push the battery connector into position and behold the marvelously working circuit. Doesn't make sense to go farther if you see puffs of smoke, or if some overheated part burns your skin. Watch the video to see what my fully assembled circuit board looks like.
-
Add four standoffs. Makes for easier board to platform attachment.
-
I had to carve pieces from my platform to make board fit on top of it.
-
Then I just glued it all together - the fan's propeller, the platform and my board on standoffs.
-
Where do you cram the power switch in such a space-constrained build? Drill a hole in the top PCB and plug it there.
-
Now, the icing on the metaphorical cake of this assembly would be the hall sensor. Install it and you're done with hardware part of this device.
Assembly: Another Device to Set the Message Via RF Channel.
![IMG_7760.JPG](/proxy/?url=https://content.instructables.com/F18/F2DC/JG2VZ785/F18F2DCJG2VZ785.jpg&filename=IMG_7760.JPG)
![IMG_7761.JPG](/proxy/?url=https://content.instructables.com/FGJ/2B52/JG2VZ786/FGJ2B52JG2VZ786.jpg&filename=IMG_7761.JPG)
![IMG_7762.JPG](/proxy/?url=https://content.instructables.com/FZX/ZU4Z/JG2VZ79A/FZXZU4ZJG2VZ79A.jpg&filename=IMG_7762.JPG)
![IMG_7763.JPG](/proxy/?url=https://content.instructables.com/FS6/N4DJ/JG2VZ7AE/FS6N4DJJG2VZ7AE.jpg&filename=IMG_7763.JPG)
![IMG_7765.JPG](/proxy/?url=https://content.instructables.com/FL5/BVD4/JG2VZ7BL/FL5BVD4JG2VZ7BL.jpg&filename=IMG_7765.JPG)
Bet you forgot about it already! This device will be a minimalist way to connect NRF24L01 to PC.
-
Board to chip connectors for radio transceiver or microcontroller seemed unnecessary for such a tiny device, hence the wires soldered directly to pins and terminals. Also, deadbug-style capacitors piled on regulator legs.
-
This thing is going to be dragged around. A lot. Think about the enclosure - you can print one tailored to the electronics, or just grab an empty one from old daylight lamp ballast like I did.
-
Soldering this takes maybe 15 minutes tops. Flexibility goes to hell, but think about time saved!?
-
Screw the board with USB to the enclosure for added ruggedness...
-
...and close the lid! You're done.
Some Dead Pixel Testing...
![WS2811 RGB POV display: testing the LEDs](/proxy/?url=https://content.instructables.com/F9F/IXAS/JG2VZ7TK/F9FIXASJG2VZ7TK.jpg&filename=WS2811 RGB POV display: testing the LEDs)
![WS2811 RGB POV display: checking for broken pixels](/proxy/?url=https://content.instructables.com/FHS/UHT3/JG2VZ845/FHSUHT3JG2VZ845.jpg&filename=WS2811 RGB POV display: checking for broken pixels)
First sketch that I uploaded was a simple stock example for NeoPixelBus library, just to check that the most important part of device, RGB LEDs that is, is working all right (vid 1).
Wow, that display of colors sure was beautiful, but did it really check the display for dead pixels? Judging by the video, all the pixels are in perfectly working order, now let's upload this another sketch and see again (vid 2).
FInal Sketches, PC Program, Etc...
![Untitled3.png](/proxy/?url=https://content.instructables.com/FIL/TQI3/JG2VZ8K2/FILTQI3JG2VZ8K2.png&filename=Untitled3.png)
![Untitled2.png](/proxy/?url=https://content.instructables.com/FKN/GSTZ/JG2VZ8K1/FKNGSTZJG2VZ8K1.png&filename=Untitled2.png)
This instructable is mirrored on my personal blog. What you'll find there:
- Schematics in PDF,
- source code for testing sketches, POV display sketch, score transmitter sketch,
- PC app.