Coursework, notes, and progress while attending NYU's Interactive Telecommunications Program (ITP)

Serial: p5 vs node

This week we experimented with passing serial from sensors through different programs, and using serial to control things on the web or in real life!

Troubleshooting

I initially couldn’t get p5 to list the available ports and couldn’t figure out why since I copied the code from the lab. I went back to the code from the synthesis examples to check, and these didn’t recognize my usb port either. I also tried switching to another usb port. Finally I figured out it was because the serial control program had been updated. Everything worked fine with p5 after I downloaded the new version!

It was a good opportunity to experiment with node, though I eventually got stuck when I went to interact with a webpage in the browser. I just used p5, but it would be nice to figure it out.

hating the p5 web editor

hating the p5 web editor

screen-shot-2016-10-16-at-8-16-56-pm

Using node

Serial events p5 versus node:

screen-shot-2016-10-16-at-8-21-13-pm

screen-shot-2016-10-16-at-8-22-10-pm

 

Post a Comment

Your email is kept private. Required fields are marked *