Connecting Arduino to p5.js sketch with p5. Serial control

Hello everyone, so i have trying to get my head around it for some time... And I think i need some guidance.

So i am trying to understand how my p5js sketch connect to the p5 serial controller app. I have done some googling and found that it uses webSocket protocol. But I want to know how does this happens exactly.

My goal is to run the p5.js sketch on an android while arduino will be connected to my laptop through serial and send data from that sketch to arduino thru the laptop.

So please tell me where can i know this stuff. Any advice will be much appreciated.

Hi, how did your project turn out? I am doing a very similar project and can share it as I get further along. There are great resources here: https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-input-to-the-p5-js-ide/#Program_thenbspMicrocontroller

Also, here https://www.youtube.com/watch?v=gSag3HmyOgE

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.