Serial input with P5js


First option  is manipulated with a potentiometer. In P5js I chose to work a nested loop and assigned to it a sliding layer on top of it to complete the pattern. This layer is controlled through the potentiometer that is also controlling simultaneously the map color from blue to pink-red. the color of the pattern changes as we go playing with the Pot.


screen-shot-2016-10-19-at-5-34-20-am screen-shot-2016-10-19-at-5-33-13-am

Second option  is manipulated with a potentiometer as well. In P5js I experimented with the random function that was harder to control because it is random it gives unexpected results, but eventually it worked out after MANY trials…




Labs for Input into P5js:

While it was fun to do a creative input in p5js. Labs with the graph gave weird horrible results. At first my potentiometer wasn’t responding well with the P5js, shaky number value, then too slow and not following, then weirdly when in lab they asked us to play with the delay in Arduino  from (1) to (100) my potentiometer stabilized completely and i was finally able to work on the creative output in P5js.

However though i checked the the code over and over the screen shot that was put in the lab for the graph didn’t match at all my results. It gave at first a weird looking pulse that wasn’t even matching with the potentiometer, but after playing with the delay, it followed the pot but kept weird regarding the visual of the graph. I don’t understand why…
below two videos showing two (of many trials) trying to fix it).

Video of Pot going nuts


Video of Pot going less nuts




One thought on “Serial input with P5js”

  1. I like the helpful info you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite sure I will learn lots of new stuff right here! Good luck for the next!|

Leave a Reply

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