Phys Comp – Week 6: Serial Communication, Part 2

Working with an accelerometer for serial communication
Working with an accelerometer for serial communication


For our second lab exercise with Serial Communication (which I’m doing early because it seems fun), I got to use an accelerometer for the first time. (Borrowed temporarily from another student.)

In the first half of the lab, I was able to get the ball to move around, and added the smooth(); command to Processing to make the edges of the ellipse to smooth out.

In the second half, I had trouble. I actually couldn’t get the call and response connection to work. I’m not sure what happened. I got the hello as we’d programmed from the Arduino, but as soon as I picked up the breadboard and got input from the accelerometer, the serial monitor seemed like it wasn’t sure if it should be outputting bytes or ASCII and put out both numbers and letters that sometimes made sense as words(?).

I’m not sure what the issue was, but hopefully we’ll go over this in class. I’ll raise my hand and ask, for sure.

Leave a Reply

Your email address will not be published.