[ICM][Pcomp] Backpack (P5.js + Arduino)

Arduino & p5. js

I worked with Chloe and we tested with Analog and DigitalSerialRead.ide to communicate with p5.js

Arduino and P5js Test from Hayeon Hwang on Vimeo.

 


I always run to school with my backpack. So I  wanted to make an application like a game about my everyday life… So I would like to attach the sensor to my bag. Then If I can run in place, I wanted to see the moving background according to the jump action.

This is the very first sketch, I planned to add more building and illustrate more object that can move. But I could not finish them all.

%e1%84%89%e1%85%b3%e1%84%8f%e1%85%b3%e1%84%85%e1%85%b5%e1%86%ab%e1%84%89%e1%85%a3%e1%86%ba-2016-10-13-1-41-30-pm

I used a Digital Vibration Sensor by DFRobot, I cannot get a regular count from the Arduino program. I had to use ‘attachInterrupt’ to get the value. I could not understand fully why I had to use this function… (I also try to get digital value , 0 or 1.)

<Arduino>

Vibration Sensor input- pin 3

Anyway, I could get the value from Arduino, and made this sketch!

<p5.js>


https://alpha.editor.p5js.org/projects/rJ3QQNT0

ICM p5+arduino from Hayeon Hwang on Vimeo.

Leave a Reply

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