Thursday, October 16, 2008

Lab 5: Serial Lab II

This week, we took the serial lab we did last week one step forward and made a serial communication between arduino and processing using a circuit that has two analogue and one digital input.

For my lab, I used a digital push-switch, a potentiameter and a force sensor. Here is the picture of the circuit:












I wrote the code in arduino to read and send the serial data for all three sensors and here is how it looked:
















After trying that, I wrote the code to be able to see the values more clearly for each sensor using the Punctuation Method and here is what I got:
















And finally, using the Handshaking method, the visualization image I got on processing is below. It was very fun to play with the ball in the screen!

No comments: