Author |
Message |
Kabzoer
Joined: Feb 07, 2011 Posts: 82 Location: Belgium
|
Posted: Mon Mar 12, 2012 1:31 pm Post subject:
Microcontroller for Synths |
|
|
Hello everyone!
This is my first post here, I'm quite new to this stuff.
I'm really enjoying making little synth with my arduino UNO, but the
CPU speed and amount of memory is a bit limiting.
Is there an alternative that is maybe more synth-oriented
and not that hard to get started with? Because I really like the open-source
approach and the amount of examples that come with Arduino.
Thanks in advance! _________________ http://soundcloud.com/contraspect |
|
Back to top
|
|
|
Dougster
Joined: Sep 20, 2005 Posts: 272 Location: Tucson, AZ, USA
|
Posted: Tue Mar 13, 2012 7:01 am Post subject:
|
|
|
You might consider the ARM Cortex M3, in particular the NXP LPC1769. There's a nice development board available from Embedded Artists:
http://www.embeddedartists.com/products/lpcxpresso/lpc1769_xpr.php
It's a little more involved than the Arduino, but it can do a lot of things.
FWIW, this board is what the latest MIDIbox projects are based on...
Regards,
Doug _________________ Once you start down the modular path, forever will it dominate your destiny!
Every DIY person should own a copy of Electronotes: http://electronotes.netfirms.com
Blue LEDs are evil. |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Tue Mar 13, 2012 9:00 am Post subject:
|
|
|
Or maybe http://www.raspberrypi.org/ _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
Kabzoer
Joined: Feb 07, 2011 Posts: 82 Location: Belgium
|
Posted: Tue Mar 13, 2012 9:30 am Post subject:
|
|
|
Wow, both very nice boards, the ARM Cortex M3 looks very professional,
but the Raspberry Pi looks easier...
I see raspberry Pi is especially designed for use with a pc,
you can plug a screen and keyboard in it, but I don't need that!
Can it drive an LCD display and some LED's?
Also, I maybe want to sell some units, so there should be an easy way to
get firmware updates (preferably without MIDI SysEx, like on the Shruti)
Thank you very much! _________________ http://soundcloud.com/contraspect |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Tue Mar 13, 2012 10:13 am Post subject:
|
|
|
Kabzoer wrote: | Wow, both very nice boards, the ARM Cortex M3 looks very professional,
but the Raspberry Pi looks easier... |
I've got that same embedded artists thingie laying around here, and yeah that needs some work, although it comes with some example projects to get you started. And it will give you full controll over everything .. also meaning you need to write more code likely, and figure out how to connect up hardware.
The Raspberry thing runs an OS, which may indeed be easier for some things but also may get in the way when you want to do real time stuff. But I didnt try it (although I may get me one once the rush hour is over a bit).
But hey, they both don't cost much _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
Kabzoer
Joined: Feb 07, 2011 Posts: 82 Location: Belgium
|
Posted: Wed Mar 14, 2012 7:02 am Post subject:
|
|
|
So the raspberry Pi has 256 MEGAbyte memory?
That's a lot compared to the ARM Cortex M3's 64kB...
But raspberry has no ROM so it neds an SD card? Am I right?
So, what are the cons fot the raspberry? Why doesn't everyone use it? _________________ http://soundcloud.com/contraspect |
|
Back to top
|
|
|
emeb
Joined: Dec 16, 2008 Posts: 35 Location: Arizona
|
Posted: Wed Mar 14, 2012 8:58 am Post subject:
|
|
|
Kabzoer wrote: | So, what are the cons fot the raspberry? Why doesn't everyone use it? |
Short list:
* you can't buy them yet.
* Documentation is limited.
* Processor can only boot from a crypto signed binary and they're not releasing the key.
* Not as much I/O or as flexible as other single-board computers in the same size / cost range.
It will be interesting to see how the community evolves around these though. There is a lot of potential, and many of the downsides listed above can/will change over time. |
|
Back to top
|
|
|
Dougster
Joined: Sep 20, 2005 Posts: 272 Location: Tucson, AZ, USA
|
Posted: Wed Mar 14, 2012 9:26 am Post subject:
|
|
|
To be more specific, the first 10,000 sold out in 24 hours...
Also, there was a problem with the ethernet connector, so it's probably good to wait to see if there are any other issues...
Regards,
Doug _________________ Once you start down the modular path, forever will it dominate your destiny!
Every DIY person should own a copy of Electronotes: http://electronotes.netfirms.com
Blue LEDs are evil. |
|
Back to top
|
|
|
Dougster
Joined: Sep 20, 2005 Posts: 272 Location: Tucson, AZ, USA
|
Posted: Wed Mar 14, 2012 9:55 am Post subject:
|
|
|
Just to throw a couple more ideas out there...
Gumstix
Beagleboard
Pandaboard
Blackfin
Regards,
Doug _________________ Once you start down the modular path, forever will it dominate your destiny!
Every DIY person should own a copy of Electronotes: http://electronotes.netfirms.com
Blue LEDs are evil. |
|
Back to top
|
|
|
Kabzoer
Joined: Feb 07, 2011 Posts: 82 Location: Belgium
|
Posted: Thu Mar 15, 2012 2:20 pm Post subject:
|
|
|
Those seem good, but they are a bit expensive aren't they?
I think the price should be less than €50, that way,
if you add extra components, casing, and design cost, one unit
would still be affordable (<€200)
I think I'm going for the ARM cortex! _________________ http://soundcloud.com/contraspect |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Thu Mar 15, 2012 3:02 pm Post subject:
|
|
|
Kabzoer wrote: | I think I'm going for the ARM cortex! |
Keep us posted _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
Kabzoer
Joined: Feb 07, 2011 Posts: 82 Location: Belgium
|
|
Back to top
|
|
|
Dougster
Joined: Sep 20, 2005 Posts: 272 Location: Tucson, AZ, USA
|
Posted: Wed Mar 21, 2012 9:26 am Post subject:
|
|
|
Well, my number came up and I was able to place an order for the RaspberryPi. Estimated ship date? 8/8/12. Yep, you read that correctly, that's a five month lead time. Probably obsolete before it ships...
LOL!!!
Regards,
Doug _________________ Once you start down the modular path, forever will it dominate your destiny!
Every DIY person should own a copy of Electronotes: http://electronotes.netfirms.com
Blue LEDs are evil. |
|
Back to top
|
|
|
JovianPyx
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Fri Apr 13, 2012 7:18 am Post subject:
|
|
|
I just received a message on the music-dsp email forum indicating that the RaspberryPi has no real DAC, it uses one bit PWM instead.
My opinion: I wouldn't expect high fidelity sound from this.
$25 (or whatever it turns out to be) may seem like a great price, but I think that one does get what one pays for.
The thread title was "best board/set to do music on with minimal upstart?". The Pi was suggested along with other development board variants. All of which seem to have significant downsides, either obfuscated development setup, or pay-for-it compilers, or phone quality (or less) hardware. My personal opinion is that for decent audio quality, one really has to break free from the $25 constraint.
As Jan mentioned earlier in the thread, there also needs to be concern over the fact that there is an operating system standing between you and the hardware. While this may make coding connections to the hardware easier by using a library of functions, it doesn't address the need of DSP programmers for real-time execution.
In my view, if you already know you can code and enjoy it from using a low end board and you are looking for something better, then spend the money to get a decent piece of hardware and spend the time to learn its environment well. The benefit in that is you don't have to keep buying more boards when you realize "this ain't cuttin' it". As for being apprehensive about the unknowns - there are many folks on this forum and others that are more than willing to help you sort those out. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
|
Dougster
Joined: Sep 20, 2005 Posts: 272 Location: Tucson, AZ, USA
|
Posted: Fri Apr 13, 2012 8:11 am Post subject:
|
|
|
JovianPyx wrote: | $25 (or whatever it turns out to be) may seem like a great price, but I think that one does get what one pays for. |
Indeed. The Raspberry Pi is really being sold as a small, cheap linux computer, not an audio development device. The $25 version is stripped down even further from the $35 version. It has only one USB port and no ethernet. It's a great way to get started with embedded linux though.
Quote: | The thread title was "best board/set to do music on with minimal upstart?". The Pi was suggested along with other development board variants. All of which seem to have significant downsides, either obfuscated development setup, or pay-for-it compilers, or phone quality (or less) hardware. My personal opinion is that for decent audio quality, one really has to break free from the $25 constraint. |
I think that, in general, there is an inverse relationship between power and ease of use. To get the real power, you'll have to invest the time to learn.
At some point, I think you have to make a design decision. Microcontrollers are great for doing things like processing inputs (encoders, potentiometers, etc) and for displaying output (led, lcd, etc), but they aren't optimized for generating sounds. If you really want to generate and manipulate sound, some kind of DSP chip is going to be a better solution, whether it is implemented as a piece of hardware like the Freescale Symphony or as a core on an FPGA.
Maybe one of the hybrid chips would be a better solution - something with a combination of MCU and DSP functions...
Regards,
Doug (Hardest part is deciding what the real goals are...) _________________ Once you start down the modular path, forever will it dominate your destiny!
Every DIY person should own a copy of Electronotes: http://electronotes.netfirms.com
Blue LEDs are evil. |
|
Back to top
|
|
|
JovianPyx
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Fri Apr 13, 2012 8:27 am Post subject:
|
|
|
Dougster wrote: | I think that, in general, there is an inverse relationship between power and ease of use. To get the real power, you'll have to invest the time to learn. |
I love the statement: "there is an inverse relationship between power and ease of use." Too true.
Dougster wrote: | Maybe one of the hybrid chips would be a better solution - something with a combination of MCU and DSP functions... |
hmm. Well, a dsPIC is just that, it's a full blown MCU and it has additional builtin DSP instructions that support at least a modicum of parallelism. The only serious complaint I have about it would be that the internal SRAM is a bit limited at 16Kbytes, but I expect this to change over time. In the meantime, I do have plans for a (more or less standalone) dsPIC project and I hope to use a dsPIC as a "front end" processor for gathering data from audio, pots, CVs and also to control an LCD and connect it to an FPGA which will do the hardcore DSP.
However, I think that the dsPIC by itself is at least a reasonable small scale DSP device, capable of a well featured monosynth or a small 4 voice synth.
Yes, there is some spool up time as there is with anything else. At least you can get them in DIP package and it is entirely possible to create your own board using stripboard (including being able to program it on that board). _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
|
macumbista
Joined: Sep 12, 2007 Posts: 398 Location: berlin
Audio files: 3
|
|
Back to top
|
|
|
alex_r
Joined: Jul 24, 2012 Posts: 1 Location: Italy
|
Posted: Tue Jul 24, 2012 4:07 pm Post subject:
|
|
|
Hi to all !
I started to develop a Soft Synth based on a STM32F4 discovery board.
It is a sample-based synth and due to the relatively simply tecnique used, the STM32F4 is capable to render up to 48 voice polyphony.
If it is of your interest, see a demo video of first release on http://www.youtube.com/watch?v=4JkhzH57Je4
So if you are oriented on a CortexM platform, I suggest you to look in the STM32F4 series.
I hope this can be usefull for you. |
|
Back to top
|
|
|
cappy2112
Joined: Dec 24, 2004 Posts: 2465 Location: San Jose, California
Audio files: 2
G2 patch files: 1
|
Posted: Sat Aug 04, 2012 12:36 am Post subject:
|
|
|
Kabzoer wrote: | So the raspberry Pi has 256 MEGAbyte memory?
That's a lot compared to the ARM Cortex M3's 64kB...
|
Yes, but you're comparing an SBC to a microcontroller. Not quite the same thing.
If you don't find something suitable for your project and can hold out until later this year, a 96Mhz Cortex M3 Arduino is supposed to be making its debut. Nothing about cost or features has been leaked yet, but I'd expect this to cost more than the Arduino 2560, and hopefully less than $100.
This will be the first Arm-based Arduino. _________________ Free Tibet. Release the Panchen Lama from prison. Let the Dalai Lama return to his home. |
|
Back to top
|
|
|
cappy2112
Joined: Dec 24, 2004 Posts: 2465 Location: San Jose, California
Audio files: 2
G2 patch files: 1
|
Posted: Sat Oct 06, 2012 8:11 pm Post subject:
|
|
|
Kabzoer wrote: | So the raspberry Pi has 256 MEGAbyte memory?
That's a lot compared to the ARM Cortex M3's 64kB...
But raspberry has no ROM so it neds an SD card? Am I right?
So, what are the cons fot the raspberry? Why doesn't everyone use it? |
[quote]
ut raspberry has no ROM so it neds an SD card? Am I right?
/[quote]
Yes. currently it boots a custom version of Debian. You do need an SD
card.
The major con is that the I/O lines run at 3.3v, so you'll need a level translator if you're connecting to 5v.
One thing I don't like about these is the layout & packaging, but you have to keep in mind these are development boards.
There was a huge shortage for a while, but they seem to have caught up with the demand somewhat. I had to wait over 3 months- for the initial batch.
However, I recently won a second unit at a technical presentation.
The later runs of the board are already at Rev2, but the changes are very minimal.
The latest linux distribution lets you *easily* overclock the boards in 100Mhz increments. You can go up to 1Ghz, but that is way out of spec. No telling how long the board would last running that fast.
A nice little board, cheap and small.
If you see my post in the Max/MSP/PD forum, someone recently got PD running on the Rpi. _________________ Free Tibet. Release the Panchen Lama from prison. Let the Dalai Lama return to his home. |
|
Back to top
|
|
|
cappy2112
Joined: Dec 24, 2004 Posts: 2465 Location: San Jose, California
Audio files: 2
G2 patch files: 1
|
Posted: Sat Oct 06, 2012 8:18 pm Post subject:
|
|
|
Kabzoer wrote: | So the raspberry Pi has 256 MEGAbyte memory?
That's a lot compared to the ARM Cortex M3's 64kB...
But raspberry has no ROM so it neds an SD card? Am I right?
So, what are the cons fot the raspberry? Why doesn't everyone use it? |
No rom/bios. Yes. currently it boots a custom version of Debian. You do need an SD card.
One con is that the I/O lines run at 3.3v, so you'll need a level translator if you're connecting to 5v.
One thing I don't like about these is the layout & packaging, but you have to keep in mind these are development boards.
There was a huge shortage for a while, but they seem to have caught up with the demand somewhat. I had to wait over 3 months- for the initial batch.
However, I recently won a second unit at a technical presentation.
The later runs of the board are already at Rev2, but the changes are very minimal.
The latest linux distribution lets you *easily* overclock the boards in 100Mhz increments. You can go up to 1Ghz, but that is way out of spec. No telling how long the board would last running that fast.
A nice little board, cheap and small.
See my post in the Max/MSP/PD forum, someone recently got PD running on the Rpi. _________________ Free Tibet. Release the Panchen Lama from prison. Let the Dalai Lama return to his home. |
|
Back to top
|
|
|
|