PComp: Week 6 – Serial and P5

This week we combined our Arduino and P5.  The labs gave me a lot of difficulty at first.  I had multiple issues from P5 freezing or quitting unexpectingly to the graphing lab not working because I didn’t plug in the wires but the most frustrating thing about this lab is that it will work and then suddenly not work.  By that, I mean that I was able to get the graphing lab to work (see video below) then I would simply close the window to rerun the program and it would not work.  Is this due to the delay in the arduino? Does it need to be longer?

Graphing with P5 and Arduino from Lindsey Frances on Vimeo.

 

I tried to be a little more ambitious and connect my ICM assignment this week with this assignment.  The original P5 looks like the below video.  I tried to change the first slider which changes the x value of the bezier and creates a different type of “wing.”

Butterflies from Lindsey Frances on Vimeo.

Here is my code and my video of the application in use is:

Butterflies with Potentiometer from Lindsey Frances on Vimeo.

I ran out of time to do this but I wanted to add a second potentiometer to control the y-values.  Would I be able to do this by using the same Arduino code and just adding a second variable or would I have to do something in addition?

Leave a Reply

Your email address will not be published. Required fields are marked *