basic tutorial how to communicatie between Arduino and Puredata with serial port
http://nf-interactive.blogspot.com/2011/02/arduino-data-to-pure-data.html
Arduino | Pure Data serial tutorial
basic tutorial how to communicatie between Arduino and Puredata with serial port
http://nf-interactive.blogspot.com/2011/02/arduino-data-to-pure-data.html
Thanks! i will be uploading a improved version soon. this will be able to send multiple serial data to PureData
Great, I'm in the process of deciding whether to use Pd or Processing for a small Arduino project - this tutorial will come in handy, thanks
@danijel said:
Great, I'm in the process of deciding whether to use Pd or Processing for a small Arduino project - this tutorial will come in handy, thanks
I used processing also, it's as easy as PD to connect but the features are very difficult. the graphical interface from PD is very nice!
@nf-interactive said:
I used processing also, it's as easy as PD to connect but the features are very difficult. the graphical interface from PD is very nice!
Thanks for the heads-up - I'm already familiar with PD, and I hate Java, so I'm probably following the same route
Anonymous commenting is enabled on the blog i would very much care about your reactions. thanks!
Noob question here, does the data flows both way ? like can I send data to arduino via the comport object to control a led ?
I wrote a little patch that reads from serial port values sent by Arduino (the value of a photoresistor) and send back to Arduino a text to be shown on an LCD connected to it, but it seems that [comport] outlet reads also what I'm writing.
Do you know if it is possible to read only what is received by the serial port?
Thank you.
Hi killkrt:
Maybe you can tell arduino "not to listen" while you send the data. I don't know if that data would stay in a buffer waiting to be read, anyway. I do that to avoid loops when I refresh two-way controls (the ones that you may operate on both on screen and on midi controllers).
Sumidero
Debian Stretch on Lenovo T450i, Lexicon Omega.
Pd-vanilla 0.49.0-3~bpo9+1 (installed from repo)
It seems strange to me, since normally Arduino doesn't listen what it is writing from the serial port, did it?
Is it possible that [comport] by default put on the outlet the argument of the print message?
Thank you.
killkrt, want to post you patch and sketch? Maybe you should call a while function like this: while (Serial.available > 0) {} and you put what ever you want to be done with data sent from Pd inside the curly braces...
Maybe you've already done it, just a thought I got.
pblanchette, I've attached a Pd patch that turns an LED on and off. There's a [pddplink] with the URL of the Arduino sketch and circuit needed for this.
Cheers
Oh my... I was cleaning my code in order to make more readable and sent to you when I noticed that I put a "Serial.println("Data received")" for debugging!!! :-/
Ehm... Sorry!!!
Oops! Looks like something went wrong!