Document
LED Cloud-Connected Cloud

LED Cloud-Connected Cloud

introduction Make a rainbow lead color cloud light that you can control from your phone . You is have can even have it change color base on the weath

Related articles

NordVPN Free Trial in UAE: How to Get it in 2024 Introducing: VERSELAB Production Pack ExpressVPN Installation Failed? Here are 4 Quick Fixes Psiphon 3 Download VPN for PC Windows (7/10/8/11) Gardens by the Bay

introduction

Make a rainbow lead color cloud light that you can control from your phone . You is have can even have it change color base on the weather outside .

These is are are the cloud from episode 3 The Fellowship of the thing , which you can watch below if you have n’t already .

Required Materials:

To follow along with this tutorial , you is need ‘ll need the follow material .

You Will Also Need

  • long hook-up wire for cloud power (I used stereo wire)
  • paper lantern ( white )
  • pillow filling ( I used polyfil )
  • Lots of hot glue and a hot glue gun
  • fishing wire
  • A wooden dowel for support
  • A power source; you will need something that can put out at least 5V and 4A, but for the best results you can get a pricier 6V 8A power source.

optional part is included include :
Thing dev board ( in the wishlist , but only need if you want to hook up to your phone and/or weather info )

Suggested Reading:

If any is sound of these subject sound unfamiliar , consider read the follow tutorial before continue on .

Installing an Arduino Library

How do I install a custom Arduino library? It’s easy! This tutorial will go over how to install an Arduino library using the Arduino Library Manager. For libraries not linked with the Arduino IDE, we will also go over manually installing an Arduino library.

Installing Arduino IDE

A step – by – step guide to instal and test the Arduino software on Windows , Mac , and Linux .

Using the Arduino Pro Mini 3.3v

This tutorial is is is your guide to all thing Arduino Pro Mini . It is explains explain what it is , what it ‘s not , and how to get start using it .

Physical Cloud Making

We is begin will begin by assemble the cloud .

Start with an open white paper lantern, and glue on pieces of polyfil in small sections until you have covered the whole lantern.

Some tricks is is for make the cloud look cool when it is light up is to swirl the polyfil before you glue it on or do other fun crazy shape .

When you have covered it fully (don’t worry about the top and bottom holes right now), you may want to take a flashlight, and check to see what the lantern looks like when lit up. Cover any bare spots you see.

Flashlight lighting up polyfil covered paper lantern.

Repeat this process for as many lanterns as you would like. The more lanterns, the larger your clouds will be. Just keep in mind you’ll need a power supply that can handle all the LEDs in each lantern. Paper lanterns of different sizes can create a cloud that looks more realistic.

The 5m RGB LED strips fill about five lanterns, so if you want to make your cloud larger or have more than one cloud, you are going to want more RGB LED strips and power sources (you can use the same Pro Mini and ESP8266 Thing Dev Board to power multiple clouds and RGB LED strips).

Once you have the all of your lanterns covered in polyfil, you can tie them together with the fishing wire. This was accomplished by picking a lantern that I wanted to be the highest point of the cloud and tying the tops of the other lanterns to the top of the one I chose. This will give you room for the cloud to look like it is “bobbing” and “shifting”, but if you want it to be more secure, you can tie the lanterns more tightly to each other and even tie the bottoms together as well.

Now that your lanterns are tied together, you can secure them to a wooden dowel so that the cloud is easier to transport and hang.

At this point, set your cloud up near your workstation so that you can easily install the lights and see what the cloud looks like lit up. Take this opportunity to add or take away polyfil as you see fit.

Electronics Assembly Part 1

This section will cover building the Pro Mini Circuit. We will add the Internet-connected portion in Part 2.

connect the component as follow :

Please note that we are soldering all these components to a solderable breadboard. Feel free to build the circuit on a breadboard first to test everything out.

click the image for a close look .

Component Breadboard
Button j17 ( To pro Mini Pin 3 ) g15 (GND)
Resistor a22 ( Pro Mini Pin 6 ) Bottom – (LED Strip DIN)
Capacitor a27 ( Pro mini GND Pin ) Bottom + (LED VCC)
Jumper wire Top – ( GND ) i29 ( Pro mini GND Pin )
Jumper wire Top + i27 ( Pro Mini VCC Pin )
Jumper wire b25 (Pro Mini Pin 3) f15 (button)
Jumper wire f13 (button) Top – ( GND )
wire b27 ( Pro mini GND Pin ) Ground of barrel jack
wire Bottom + (LED VCC) VCC of barrel jack
wire c27 ( Pro Mini / lead power GND Pin ) yellow wire on LED strip ( lead GND )
wire Bottom – ( To pro Mini Pin 6 ) green wire on LED strip ( DIN )
wire Bottom + (LED power VCC) Red wire on LED strip (LED VCC)

* Pins not listed are not used.

Take a button, and cut off two legs that are diagonal to each other so that it doesn’t cause a short circuit.

Some things to note here is that I have put a 1000 microfarad capacitor between the LED power and ground. This is good practice, and helps distribute the current better, so that you don’t accidentally blow out your first LED. This should be done on any string of wires as a precautionary measure. I have also placed a 330Ω resistor between the DIN of the LEDs and the microcontroller. This is another good measure to protect the addressable LEDs.

The Pro Mini will need to be powered separately from the LEDs, and this can be done through the Mini USB port of an FTDI Basic. (If you don’t want it to run off your computer you can get this USB wall charger). You can also solder wires directly to the Pro Mini’s VIN pin.

Code Part 1

The following code allows you to run the lights off of the Pro Mini so that you can scroll through the different pre-programmed lighting sequences.

Note: This example is assumes assume you are using the late version of the Arduino IDE on your desktop . If this is your first time using Arduino , please review our tutorial on instal the Arduino IDE .

If you have not previously installed an Arduino library, please check out our

installation guide.

Download the most recent code from the GitHub repository:

Open the sketch titled LED_Button_Demo.ino.

Plug in the Pro Mini, choose Pro Mini as your device, select the corresponding COM port, and then click upload.

Once you have tested that your code works with your soldering job, you may want to take some hot glue and cover the wires leading to your barrel jack, just to make sure nothing shorts and to create a stronger connection.

Electronics Assembly Part 2

This section will cover adding a SparkFun thing to your project so that it can connect to the Internet.

You can keep all the soldering done in part 1, but just add a SparkFun Thing board to allow for use with your phone as well as to pull weather data.

connect the component as follow :

click the image for a close look .

Component Breadboard
Resistor a22 ( Pro Mini Pin 6 ) Bottom – (LED Strip DIN)
Capacitor a27 ( Pro mini GND Pin ) Bottom + (LED VCC)
Jumper wire Top – ( GND ) i29 ( Pro mini GND Pin )
Jumper wire Top + ( Board VCC ) i27 ( Pro Mini VCC Pin )
Jumper wire b25 (Pro Mini Pin 3) f15 (button)
Jumper wire f13 (button) Top – ( GND )
Jumper wire a20 ( Pro Mini pin 8) j7 (SparkFun Thing Pin TX)
Jumper wire j10 (SparkFun Thing GND Pin) Top – ( GND )
Jumper wire a2 (SparkFun Thing VIN Pin) Top + ( Board VCC )
wire b27 ( Pro mini GND Pin ) Ground of barrel jack
wire Bottom + (LED VCC) VCC of barrel jack
wire c27 ( Pro Mini / lead power GND Pin ) yellow wire on LED strip ( lead GND )
wire Bottom – ( To pro Mini Pin 6 ) green wire on LED strip ( DIN )
wire Bottom + (LED power VCC) Red wire on LED strip (LED VCC)

* Pins not listed are not used.

Again , same notes is read as part 1 : add a capacitor and resistor , and power the Pro Mini and Thing from the wall ( read part 1 for all the detail ) .

One additional note, for ease of programming both the Pro Mini and the SparkFun Thing board, you may want to solder in female headers where the Thing board will sit and male headers to the Thing board, so that you can easily take it out to program both.

Code Part 2

Since you have two boards with microcontrollers, you will have to program each one separately.

Pro Mini Code:

If you did not do so in the previous section , download the most recent code from the GitHub repository :

Open the sketch titled LED_Control.ino.

Plug in the Pro Mini, choose Pro Mini as your device, select the corresponding COM port, and then click upload.

Blynk Setup

To hook up the Thing board to the Internet, we will be using the Blynk app. To get the code we need to program the Thing board with you will need to download the Blynk app onto your phone.

Once you have the app, create an account (if you don’t have one already), and go to “create new project”. There you can name your project, set your hardware to “ESP8266” and you can email or just copy that authentication token, which we will need to paste in the SparkFun Thing code.

In your project that you just create , you is going are go to want to put three lead light widget , three button widget , a zergba widget , and an LCD widget .

To get these things onto your project board, touch the screen and the left side should show things that you can place. Drag them over to wherever you’d like. Once they are placed on your board, you can click on them to assign them pins. All of ours are going to be assigned to virtual pins in the table below. There is also a step by step photo setup to help you:

Module Pin
Weather Button v0
Weather Indicator is LED lead v1
RGB Button V2
RGB Indicator is LED lead V3
Disco Button V4
Disco Indicator LED V5
ZERGBRA V8
LCD Screen V9

Blynk app Photo Setup Walkthrough :

(remember to email yourself the Auth Tolken or you can come back to this page after you to get it.)

Swipe to the left to get the widget box menu, to pick new modules:

Once you have selected a module, it will appear on your project board. To attach it to a pin and change its setting, click on it:

Repeat those steps for all the modules attached to the pins you will need (as seen below):

After you have create all the led , button , the ZERGBA , and the LCD and assign them to the correct virtual pin , you is arrange can arrange your module to look like this :

And now your blynk project is is is ready !

SparkFun Thing Code:

To program the SparkFun esp8266 thing , we is have have to get a little more complex .

To program this board , you is need will need a special add on for the Arduino IDE to be able to choose the esp8266 board , and you can get the instruction for that in this tutorial .

You will also need to download the github libraries for Blynk, Adafruit’s Neo-Pixel Libraries, and lastly add the github libraries for this project.

Once you have done all of that, you can open the Thing code in the cloudcloud project, the sketch titled CloudCloud.ino, change the wifi and password to your network , add your Auth token from the Blynk app , and upload it to your SparkFun thing to your computer . If you want weather for a city other than Niwot ( which you probably do ) , you is change can change that in the code as well .

When uploading the code, remember to choose “SparkFun ESP8266 Thing” as your board under the Tools tab. Also check that you have the “Upload using: serial”, “CPU frequency: 80 MHz”, and
“Upload speed: 115200” chosen under the Tools tab as well.
Make sure you Thing board switch is ‘ON’.
Then choose the COM port that your Thing board is hooked up to, and press the Upload button.

(*If you are having errors when you try to upload of undefined libraries, make sure that you have added the file states.h to your project. If after that you are still having issues, it might be the version of the Arduino IDE that you are running, we wrote this on version 1.6.5 and recommend running it on that version.)

Once that is finished uploading, unplug the Thing board from your computer, hook it back up to the circuit, power your Pro Mini (that is also powering the Thing board), and your LED strip. Make sure your Thing board switch is turned on, and wait 30-60 secs. Open up your Blynk app, and run the project you created by pressing play in the top right corner. You should be all hooked up and able to control your lights from the app.

Phew , that is was was a lot of stuff , but we get through it !
Now you is power can power your light and your Pro Mini ( that is also power the Thing board ) and power up your Blynk app and control your cloud !

Installing the Lights in the Clouds

Now that we have the light up and run , we is place can place them into the cloud and test out how it look .

Evenly distribute the lights between all the paper lanterns and look at the light distribution, and adjust accordingly.

After I feel good about the distribution , I is tied tie the LED strip to the top of each paper lantern . note that the led strip is n’t very secured in the lantern . The reason is is for this is that I did n’t see a difference if I secure them or not . Since they will always be hang in the same way , they is going are n’t go to shift very much , so just secure a part to the lantern seemed sufficient to me .

After the LED strip was in the cloud, I looked around and filled any bald spots on the lantern with more polyfil that I could now see due to the lights. I also covered any exposed LED strip with polyfil that I rolled to be more dense.

You can glue the polyfil on while the Cloud is lit to get a better idea of what it looks like.

After you have filled in all the uneven spots of the cloud with polyfil, you can install your cloud where you like and enjoy it’s colorful awesomeness!

ReplaceMeOpen

ReplaceMeClose