Tuesday, March 24, 2009

iPhone Integration

I've finally enabled the javascript code to work for retrieving the Pachube feeds. Now my iPhone app is able to listen to the input from the Arduino, which currently still has 3 photovoltaics. Using the .json feed instead of the .xml (which i tried arduously to get to work with no success), i am able to implement the data with XMLHttpRequest.

source code

Labels: , , ,


Monday, February 16, 2009

Arduino to Processing (with Firmata)

Using the firmata library in the Arduino environment, I was able to control the microcontroller from within Processing with some minor alterations to the original code.

Source code

Labels: ,


Saturday, February 7, 2009

Arduino 02

Initial setup with 4 inputs: 1 toggle, 1 push button, 2 photovoltaics.

The first run generated ASCII values (all of which are very difficult to see in the video) in the 700s, separated by commas, followed by two 0/1 outputs from the switches.

The second converts to binary.

*The ASCII values should be in the 200-300 range, but given that this setup is sensing light, the values change based on the environment, however I believe there are some wiring issues as well. So when converted to binary, the characters are not typical alphabetical letters.


Arduino 02 ASCII from brandt on Vimeo.


Arduino 02 Binary from brandt on Vimeo.



ASCII source code

binary source code

Labels:


This page is powered by Blogger. Isn't yours?