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:
Post a Comment