Followed simple p5.js tutorial perfectly-won't work?

Hi, I'm trying to follow this easy tutorial to map sensor data online. I am stuck on "Program P5.js to list the available serial ports"

I was really excited to try it but after a couple hours of trying the first step nothing happens. I follow the steps leading to the serial inputs, but I cannot get the server to post the serial connections, let alone anything else. Can someone confirm if this tutoprial actually works? Using the p5.js Web editor http://alpha.editor.p5js.org/

Heres the tutorial https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-input-to-the-p5-js-ide/#Program_P5js_to_list_the_available_serial_ports

Answers

  • Hello,

    Make sure that:

    1. you have the p5.serialport.js library in your file directory structure
    2. make sure you have a reference to that file in your index.html
    3. If you've had the p5.serialcontrol app open while burning the code onto the arduino, reopen the p5.serialcontrol app to refresh the port control.

    If you've done these things, please post your code (p5 + arduino) for more precise feedback.

Sign In or Register to comment.