Hi all,
I just tested my arduino board (uno) in pd, with a single pot. I wanted share my joy with you, because i managed to get it to work with Pd quite easily. I also wanted to say thank you very much to Hans, because Pduino is really cool, and i'm amazed by the time it took me to get it to work.
Now that it's working, i have a few questions :
correct?
values don't seem to move smoothly when i turn the pot rapidly (i tested it by controlling the frequency of an oscillator). It's better when i bypass the "display values without pegging the cpu" object, but it's not perfect. Apparently using a 10 ms line~ works fine too.
Cheers!
Pierre
Hi,
Pierre Massat wrote:
Now that it's working, i have a few questions :
- I'm assuming the more pins are open, the more CPU is consumed. Is that
correct?
Probably but at 16MHz you've got plenty cycles to spare ;).
- Is there a way i can change the "sample rate" of the analog inputs?
You can either try to change the bps of firmata (up to 1Mbps*) or/and roll your own arduino program that transmits only the information you need. You can then increase the throughput dramatically. It's pretty easy to do.
(* firmata.org says "Arduino is limited to the 115,000 bits/seconds of a serial port" but that's not true. A 3$ chip can run at 1Mbps (ok not reliably), but your expensive Intel can't ?).