Thursday, February 4, 2010

Tutorial 2 Process


While working on tutorial 2, we came across some issues. After creating a Pachube account (Part 1) and setting up the circuit (Part 2), we were able to upload Standard Firmata to our Arduino and install Processing 1.0.9 onto our computer(Part 3). Then we followed the link to http://www.arduino.cc/playground/Interfacing/Processing to download the Processing Library (Part 3, step 3). On that page, it gives instructions on how to install the Processing Library, but we weren't able to understand what to do once we got to Step 3 "Configure Processing for serial: http://processing.org/reference/libraries/serial/ ." We couldn't figure out what to do once we click on this link. Any suggestions to help us move forward in the project would be greatly appreciated!

Comments:
You actually don't have to do anything else, that "configure processing" page is a bit confusing, it's just info on how to control the serial port in detail. Once you have the firmata library installed in processing, and the firmata library uploaded to your arduino board, you should be good to go. but make sure you have at least v17 of Arduino on your computer! the most recent version (currently 18) is recommended but i think david is worried it might be incompatible with something?

to see if it's all working:

1. make sure Arduino is closed on your computer

2. open Processing, and then open one of the examples in the Arduino library you just installed [probably ~/documents/Processing/libraries/Arduino/examples]. i recommend trying the arduino_pwm example first.

3. if trying the pwm example, put an LED in the arduino on pin 9 and pin 11. (these are pins that allow PWM, which is way to fake analog output on digital pins by something called Pulse Width Modulation.) don't forget to attach both LEDs cathode (short) legs to ground. if you only have one LED, that's fine, you'll still see something happen on either pin.

4. plug in your Arduino

5. run the Processing program

6. move the mouse in the window, you should see LED brightness changing

post what you did, and if you have more problems, detail them as specifically as you can.
 
it's always a good idea to get a simple example working first, and then move on to more elaborate examples, such as pachube.
 

Post a Comment





<< Home

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