Discussion:
SC & microcontrollers
adam4
2014-08-05 13:10:44 UTC
Permalink
they are different devices - rpi is powerful enough to run sc on, arduino has
more analogue ins so you can add controls like sliders and joysticks more
easily

you can also use arduino or gertduino and a rpi together to make dvices,
installations etc that do not require a pc to run on



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702p7612737.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
RDF107
2014-08-04 19:53:19 UTC
Permalink
Hi guys,

what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.

Best,
Robz




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Jose Barragán Sabio
2014-10-12 22:29:33 UTC
Permalink
That would depend on what you are planning to do.
I've used a Teensy 3.1 for a couple of microtonal keyboards and I'm quite
happy with it: it's faster than an Arduino, better serial, it has twelve
built in electrodes for capacitive sensing (and you can multiplex them, but
make sure you use muxes with very low ON resistance) and you can program it
exactly like an Arduino.

But again, it's all on your needs.
Post by RDF107
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Michael Zacherl
2014-10-12 23:06:35 UTC
Permalink
Post by Jose Barragán Sabio
That would depend on what you are planning to do.
I've used a Teensy 3.1 for a couple of microtonal keyboards and I'm quite happy with it: it's faster than an Arduino, better serial, it has twelve built in electrodes for capacitive sensing (and you can multiplex them, but make sure you use muxes with very low ON resistance) and you can program it exactly like an Arduino.
interesting, I got an older Teensy 3.0 I plan to interface w/ SC. What platform are you using?
I think to remember that it's simpler to do on Linux than on OS X?
thanks, Michael.
Post by Jose Barragán Sabio
But again, it's all on your needs.
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
http://mz.klingt.org


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Jose Barragán Sabio
2014-10-13 00:46:41 UTC
Permalink
Sorry, I'm not sure I understand what you mean by platform (english is not
my first language), I thought the Teensy 3.1 is a platform itself. Or if
you mean the IDE, it's just the same Arduino IDE.

I did it on Linux, but I don't find any reason why it should be any more
difficult on OS X.
To read the serial I simply tweaked the code in this guide to my needs:
http://www.instructables.com/id/Arduino-to-Processing-Serial-Communication-withou/

Jose.
Post by Jose Barragán Sabio
Post by Jose Barragán Sabio
That would depend on what you are planning to do.
I've used a Teensy 3.1 for a couple of microtonal keyboards and I'm
quite happy with it: it's faster than an Arduino, better serial, it has
twelve built in electrodes for capacitive sensing (and you can multiplex
them, but make sure you use muxes with very low ON resistance) and you can
program it exactly like an Arduino.
interesting, I got an older Teensy 3.0 I plan to interface w/ SC. What
platform are you using?
I think to remember that it's simpler to do on Linux than on OS X?
thanks, Michael.
Post by Jose Barragán Sabio
But again, it's all on your needs.
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702.html
Post by Jose Barragán Sabio
Sent from the SuperCollider Users New (Use this!!!!) mailing list
archive at Nabble.com.
Post by Jose Barragán Sabio
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
Post by Jose Barragán Sabio
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
http://mz.klingt.org
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Michael Zacherl
2014-10-13 01:20:45 UTC
Permalink
Sorry, I'm not sure I understand what you mean by platform (english is not my first language), I thought the Teensy 3.1 is a platform itself. Or if you mean the IDE, it's just the same Arduino IDE.
sorry for my imprecise question:
Teensy is also a platform (for controller projects), but I meant "are you using Linux, OS X or Windows for SC?"
I did it on Linux, but I don't find any reason why it should be any more difficult on OS X.
I thought I read something that SerialPort is not working that reliably on OS X (what I'm using).
Referring to https://www.pjrc.com/teensy/td_serial.html, at what speed are you running the serial?
http://www.instructables.com/id/Arduino-to-Processing-Serial-Communication-withou/
thanks! m.

--
http://mz.klingt.org


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Jose Barragán Sabio
2014-10-13 01:43:05 UTC
Permalink
Ah, honestly no idea about SerialPort, I simply use the Processing sketch
I linked to read from the Teensy, then send OSC messages from there to SC.
I found that to be the easiest way, also happens to be cross-platform.
Post by Scott Carver
I'm curious - what kind of performance do you see on the teensy? I
recently built SC for a beagle black, which seems at >the higher end of
processor speed for that class of devices, and scserver seemed incredibly
slow - I was seeing drop-outs >playing, like, 20 SinOsc's. That discouraged
me a little, so I didn't look into it too closely - it may have been a
fixable >problem. Should SC be performing better on a chip like that?

Oh, I meant using the Teensy to take some readings and then sending them to
a laptop with SC, I'd be very surprised to see a Teensy running SC with
more than 20 SinOsc's!
Post by Scott Carver
Post by Jose Barragán Sabio
Sorry, I'm not sure I understand what you mean by platform (english is
not my first language), I thought the Teensy 3.1 is a platform itself. Or
if you mean the IDE, it's just the same Arduino IDE.
Teensy is also a platform (for controller projects), but I meant "are you
using Linux, OS X or Windows for SC?"
Post by Jose Barragán Sabio
I did it on Linux, but I don't find any reason why it should be any more
difficult on OS X.
I thought I read something that SerialPort is not working that reliably on
OS X (what I'm using).
Referring to https://www.pjrc.com/teensy/td_serial.html, at what speed
are you running the serial?
http://www.instructables.com/id/Arduino-to-Processing-Serial-Communication-withou/
thanks! m.
--
http://mz.klingt.org
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Michael Zacherl
2014-10-13 07:05:43 UTC
Permalink
Ah, honestly no idea about SerialPort, I simply use the Processing sketch I linked to read from the Teensy, then send OSC messages from there to SC.
oh, I see - what about latency in communications, this way?
In terms of controller action (button press, slider move etc.) to sound?
I found that to be the easiest way, also happens to be cross-platform.
Indeed, in my case I'd put low latency over portability.
Thanks, m.

--
http://mz.klingt.org


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Andrea Valle
2014-10-13 08:07:30 UTC
Permalink
Post by Michael Zacherl
Ah, honestly no idea about SerialPort, I simply use the Processing sketch I linked to read from the Teensy, then send OSC messages from there to SC.
oh, I see - what about latency in communications, this way?
In terms of controller action (button press, slider move etc.) to sound?
I found that to be the easiest way, also happens to be cross-platform.
I lost the thread so pardon me in case of saying something useless.
Since a couple of project I’m controlling in RT Arduino via USB cable and SerialPort, following a modified example by Fredrik.
Works pretty well, no latency at all (I’m scheduling at max baud rate, for an ensemble of 30 electromechanical objects, e.g. this https://www.flickr.com/photos/vanderaalle/sets/72157646869014178/)

So, no latency. Point is that USB is always dangerous. You have voltage and powering mixed with data on the same line.
So (since 2009) I’m sometimes experimenting weird things…
I’m planning to test with ethernet shield in the future.


Best
-a-
Post by Michael Zacherl
Indeed, in my case I'd put low latency over portability.
Thanks, m.
--
http://mz.klingt.org
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Scott Carver
2014-10-13 01:27:05 UTC
Permalink
I'm curious - what kind of performance do you see on the teensy? I recently
built SC for a beagle black, which seems at the higher end of processor
speed for that class of devices, and scserver seemed incredibly slow - I
was seeing drop-outs playing, like, 20 SinOsc's. That discouraged me a
little, so I didn't look into it too closely - it may have been a fixable
problem. Should SC be performing better on a chip like that?

- Scott
Post by Jose Barragán Sabio
Sorry, I'm not sure I understand what you mean by platform (english is not
my first language), I thought the Teensy 3.1 is a platform itself. Or if
you mean the IDE, it's just the same Arduino IDE.
I did it on Linux, but I don't find any reason why it should be any more
difficult on OS X.
http://www.instructables.com/id/Arduino-to-Processing-Serial-Communication-withou/
Jose.
Post by Jose Barragán Sabio
Post by Jose Barragán Sabio
That would depend on what you are planning to do.
I've used a Teensy 3.1 for a couple of microtonal keyboards and I'm
quite happy with it: it's faster than an Arduino, better serial, it has
twelve built in electrodes for capacitive sensing (and you can multiplex
them, but make sure you use muxes with very low ON resistance) and you can
program it exactly like an Arduino.
interesting, I got an older Teensy 3.0 I plan to interface w/ SC. What
platform are you using?
I think to remember that it's simpler to do on Linux than on OS X?
thanks, Michael.
Post by Jose Barragán Sabio
But again, it's all on your needs.
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702.html
Post by Jose Barragán Sabio
Sent from the SuperCollider Users New (Use this!!!!) mailing list
archive at Nabble.com.
Post by Jose Barragán Sabio
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
Post by Jose Barragán Sabio
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
http://mz.klingt.org
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
nescivi
2014-10-13 10:37:48 UTC
Permalink
Hi,

I don't think there is any real difference between microcontrollers for
using it with SC - most of them you can program to use a serial
communication, which SC can read with SerialPort; some you can program
to be an HID device (like Create USB Interface, Teensy, some Arduino
versions), which can be read with LID (if you are on Linux), or in the
current master with HID.

Raspberry Pi is not a microcontroller, but rather a small linux computer
running an operating system and all. There are some people who have
gotten SuperCollider itself running on it too.

sincerely,
Marije

PS, and it is not all guys on this list either.
Post by RDF107
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Jose Barragán Sabio
2014-10-13 13:23:07 UTC
Permalink
Post by Michael Zacherl
oh, I see - what about latency in communications, this way?
In terms of controller action (button press, slider move etc.) to sound?
I'd say nothing really noticeable, only it slows down for a moment when the
screen saver comes in. But maybe it could be better.

The real latency when using capacitive sensing depends on the number of
electrodes you are reading from, your choice for a multiplexer, etc... in
which case you can always use several teensies to take the readings and
connect them via serial (Teensy has 3 serial ports) to the master teensy,
the one that'd be plugged to the USB.

A couple of posts of mine in the teensy forum (I'm ChronopiumSilvestris):
http://forum.pjrc.com/threads/26602-Isomorphic-keyboard
http://forum.pjrc.com/threads/26697-Connecting-several-teensies-via-serial

Third post coming soon, I'm about to finish a better model. Also, something
I didn't know at the time: apparently you can modify the touchRead()
function to make it faster by sacrificing some precision.

Scott: take a look into this
http://www.hardkernel.com/main/main.php

Jose.
Post by Michael Zacherl
Hi,
I don't think there is any real difference between microcontrollers for
using it with SC - most of them you can program to use a serial
communication, which SC can read with SerialPort; some you can program
to be an HID device (like Create USB Interface, Teensy, some Arduino
versions), which can be read with LID (if you are on Linux), or in the
current master with HID.
Raspberry Pi is not a microcontroller, but rather a small linux computer
running an operating system and all. There are some people who have
gotten SuperCollider itself running on it too.
sincerely,
Marije
PS, and it is not all guys on this list either.
Post by RDF107
Hi guys,
what is the best micro controller to use with SC and why?
I have used Arduino but I was wondering if more SC users are using the
Raspberry Pi.
Best,
Robz
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
RDF107
2014-10-19 10:07:02 UTC
Permalink
Hi guys,

Thanks for all of the awesome feedback. It seems the Raspberry Pi is the
best as I want to run sc on the device and have all my audio sitting on it
too, i.e. tiny computer. It seems like attaching an Arduino to it would be a
possibility depending on how many sensors and actuated I need for each
project.
I have never seen or used a Teeny, so going to look into that too.

@Marije, I know I am one of those girls :D




-----
he who has patience, has strong tea
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SC-microcontrollers-tp7612702p7614075.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Continue reading on narkive:
Loading...