Tuesday, December 8, 2009

Content Development #3 [Arduino to Pachube]

Hello! I tried out the tutorial from Pachube on how to connect your Arduino to Pachube and using Arduino to create Pachube input. It took me 4 hours to trial and error and finally get to stream my data in the internet! I play with Processing, Arduino, Pachube and EEML.

First i set up Arduino with a simple circuit, light sensor that can detect light value of the environment.
Lightness detecting device!


I got the Arduino analogue sensor working but can't
get the Processing to retrieve the value from the sensor.


From the tutorial, it states that first upload the StandardFirmata to Arduino. I tried and tried and is not working anyhow. So i read back the book that Cheese gave, and found a similar coding which is the SimpleAnalogFirmata. And it works! This is the trick!

Finally after a looong struggling, finally got Processing
to trace the value! Right is Arduino/Left is Processing.

Check if the localhost can detect the data:

The light value of my room.


EEML. Extensive Environment Markup Language.

After everything finally working, time to feed it to Pachube! They need the ip address of our computer connection to feed the data. Well i am using wireless so i try to get a host but is not working. Instead i put the url of my IP address plus the port forwarding.

Data feeding in! This is my feed.


The bottom part with the graph shows
the quantitative value/data.
The lightness of my room. haha


The data collection is not instance i think or my connection is very slow.


Next, is a more exciting project. Using a Pachube output to control Arduino. Yesssh virtual/internet controlling the physical object/Arduino.

Do visit my "Light Up in My Room" to check out the if my room is dark or bright. Okay this is lame.

Goodnight fun world. Back to SRI.

4 comments:

davidlowjw said...

Hi madmazelle~

Do you have any pachube invitation code left?

I got a arduino too, would love to hook up with some sensors to try Pachube out :D

Your FYP is so interesting, keep up the good work :)

Cheers~

Madmazelle said...

Hello david!

Sorry to say my Pachube account do not have any invitation codes..some how. haha Anyway you can email to beta@pachube.com to ask for invitation code or if you have a twitter account just ask them @pachube in twitter. Thats how i got mine. hehe

Haha thx man! Final presentation is on tomorrow!

btw if you get to experiment with your sensor, do let me know! Maybe we can share some knowledge :D thx!

davidlowjw said...

Hi madmazelle~

It's fine. I just sent the request for their email. Hopefully can get a pachube account to play around. hehe

How was your presentation? Must be very impressive to your lecturer :)

Cheers~
David

Madmazelle said...

Oh cool! They will reply very fast i guess. well my presentation, i not sure, i bad at presenting and i will get nervous but i think overall not bad i guess.

& thx for stopping by! Now sem break, next semester gonna execute it! more to come. :)