p5.serialcontrol icon indicating copy to clipboard operation
p5.serialcontrol copied to clipboard

No option to change baudrate in GUI

Open Moosdijk opened this issue 5 years ago • 3 comments
trafficstars

Hi all,

It seems the GUI only works with a baudrate of 9600. Can a selector be added to change the baudrate?

Thanks!

Edit: I found out how to change the baudrate, which is hardcoded. Granted I'm on a mac, here's what you do:

-Go to your applications folder and look for p5.serialcontrol.app -Right click, show package contents -Navigate to /Contents/Resources/app/node_modules/@serialport/stream -Open stream.js with a text exitor of your choice -Change the baudrate from 9600 to one of your choice (I chose 115200). -Save and close -Open p5.serialcontrol as usual -Of course, your arduino or similar should also communicate at the baudrate that you set.

Moosdijk avatar May 08 '20 10:05 Moosdijk

Adding this to the GUI would be great!

vanevery avatar Dec 01 '20 02:12 vanevery

webSerial is becoming more and more promising, would an overhaul be an option?

Moosdijk avatar Dec 01 '20 11:12 Moosdijk

I think the Web Serial API is a great way to go! I am not sure that we'll need a lot of what p5-serial does once it is widely available in the browsers.

vanevery avatar Apr 21 '21 16:04 vanevery