Twitter Torch - Twitter messages in a glass tube

Julian, the code is there for passing command and parameters to the Torch so adding another would be easy. Using the Spark’s built-in RTC and cloud sync, a clock would be easy.

Hey guys, I just got a neopixel LED strip and I have read above about some powering issues. I am a little new with electricity and have trouble understanding what was said. My LED Strip has 2 different input thingies: http://imgur.com/9h9thwW

And on Adafruit Neopixel, it says that you have to be very careful or you will burn out the LEDs. It says that you need to attach a capacitor between the + - of the Strip, a Resistor on the data line, etc. Did you all do that, or is it fine if I dont? ( https://learn.adafruit.com/adafruit-neopixel-uberguide/best-practices )

so Basically, I just took a Strip out of the box: what are the steps I need to take in order to safely start operating it. Do I just power my spark from my USB on computer, and plug in all the wires from the Strip into the Spark?

Thanks!

@hassaan22, the “thingie” with the green wire has a GND wire (white), a V+ wire (red) and a DATA wire (green). The capacitor is always a good idea but not absolutely necessary. The resistor is needed since the Arduino outputs 5V and the resistor limits the current to the neopixels. The Spark operates on 3.3V so the resistor is not necessary. The Neopixels operate on a 5V supply to V+.

The USB on a computer can generally supply 5V at 500ma which powers the Spark. The USB voltage also appears (minus a small drop) on the Vin pin. So assuming you are building the Torch, the wiring should look like this:

Spark     Neopixles String
--------------------------
GND       GND (white)
Vin       V+ (red)
A5        DATA (green)

Awesome! thank you! This really helps, and I appreciate it. :smile:

As far as the resistor goes, why does there need to be a resistor when using a 5V Arduino when the Neopixels operate on 5V?

@hansamann, the resistor is recommended as a current limit. That best-practice also says that if you power the Neopixel with 5V, the logic MUST be 5V but that is not the case. I suspect that the information is out of date.

Hey guys, I’m checking back in.

I Finally received all the parts last night and could finally start to build my very own Twitter Torch!

I tried to make my video as similar as i could to the original video :smiley: :wink: :blush:

Thank you all who helped me through this, as a noob, I could not have done it without you, especially: @peekay123 @Julian @Ruedi and @kennethlimcp ! you are all great, and I have learned so much!

Thoughts and Comments:

Placing the lights was indeed very tedious to do. I did not use the paper roll-up method, and instead just laid the glass tube sideways, and fortunately, my hand fit inside the tube, and was able to place the LED Strip into the tubing.

If I had more money to spend, I would have bought a wider tube, and two 4m LED Strips instead of one. This, in my opinion, would make the text more readable, while still maintaining a long lamp-like tube look.

I am still very new to coding, and still have almost no idea how to do stuff like GET, POST calls, so understanding this code is very difficult. School is starting in two weeks, but I plan on going through the code and try to understand all of the components (will be a great learning experience for me) I ultimately want to hack this into doing what I want it to do; Some ideas in mind: Use a Temperature sensor, and periodically display the temperature; Use a RTC module, and display the time; Grab BITCOIN prices, and display the current bitcoin price periodically.

I also have to buy another Spark Core now, because I only had one, and I plan on keeping this lamp, especially if I make the changes that I want on it to fit my likes better! Another order coming up!

Thank you Spark Community!

Edit: I will update you guys if I do get all the weather stuff on my lamp, and if I get the lamp to display the rain if it is raining outside. I’m currently thinking that if I can just flip the flame animation, it will look like rain. Any ideas on how to flip the animation? :smiley:

Well done Hassan, it feels good doesn’t it. To finally get it working. Yours looks very nice and polished.

I love the idea for the temperature readout. That could be combined with changing the colour of the LED’s to reflect the temperature of the room. Blue for cold etc.Or even get the temperature from a weather forecast. The forecast torch is born!!

For the time, you don’t need to buy a RTC module. The spark core can get the time from the cloud. Have a look at :-
http://docs.spark.io/firmware/#libraries-time

I am trying to get that function to display the time on my torch but my coding skills are limited. I have a lot of catching up to do.

There is another thread that is about making an alarm clock with "sunrise"led’s

Have a look.

Once again, good effort & enjoy your torch.

Julian

Thank you very much!

Oh, I didn’t know about the Time on Spark, this is awesome!

Your weather color idea is great! Once I figure out this code, I can change the color of the flame according to the temperature. So if it’s 60°, it could be blue, and orange when 90° and maybe even red at 105°. This is a super cool idea because I’ll also never be bored of my torch lamp because the flame will constantly be changing color! :slight_smile: I love it!

@hassaan22 . You are welcome. You could change the colour of the torch according to the temperature readings from a TMP36 or I understand (but don’t know how to do it) that you can pull weather reports from various feeds for your (or any other) part of the world and use thoes temperatures. I recon it would be possible to have blue FALLING pixels if the forecast was for rain. Umbarella Torch! Lol.

@peekay123, Sir, thank you for your, as requested, hints, for an alteration to the code to display sparktime on the torch. I have been trying various things all day and can not get it to work! Could I have a couple more hints please (when you get a moment)?

Many thanks.

Then you'd at least have to add lightning effects as well :wink:

My mouth is writing cheques my code can not cash!!

Snow?
Cloud?

Lots of fun!!

@ hassann22 - Your Twitter Torch look great and I like the the video very much :slight_smile: :-). I agree, with the Neopixels covered with transparent rubber, it is very easy to put it in the glass tube just by hand.

I have my torch up and running, and love being able to send messages and tweets to it. (IFTTT has made it even easier!) Has anyone figured out yet how to get the weather updates, colors based off of temps, etc working on it?

I’d love to have automatic clock, weather info, as well as the flipped “rain” animations going, but I’m so new to the programming I’m kinda in over my head as to where to start. Google hasn’t been much help.

Anyone know where to start?

See my new homepage :slight_smile: zuerich.technology