The Godfather talking
You may crack software. How about me?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 09:11:56 09:11


Login with username, password and session length


Pages: [1]
Print
Author Topic: Question :idea to do Digital Guitar effect from microcontroller?  (Read 4138 times)
0 Members and 1 Guest are viewing this topic.
witsanukai
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 13
-Receive: 9


« on: September 18, 2014, 06:53:08 06:53 »

Any body ever DIY Digital Guitar effect from microcontroller?
I have an idea by using STM32F401 (Nuecleo) but i am not so sure, is it fast enough.
Any advice on resource or idea. Smiley
Logged
str67
Newbie
*
Offline Offline

Posts: 26

Thank You
-Given: 29
-Receive: 23


« Reply #1 on: September 18, 2014, 02:25:11 14:25 »

Hi,

if you have a digital (I2S in -> I2S out) interface to the STM32F401, you should be fine.
~100 MIPS@32 bit including DSP instructions for the ARM processor should be sufficient, at least for Mono processing
For the A/D -> D/A chain I see more problems. The performance of the A/D converter on the uP (12bit/2.4 MHz) sounds promising on first sight, but as this is a general purpose A/D you will usually end up with distortions and sampling effects. To get rid of these, you would have to spend some work on your DSP side which you possibly do not intend to.
A D/A is (as far as I see) not available in the STM32F401, but anyway you would not be very happy using it, if there was one.

My proposal would be using a simple CODEC-Chip (just as an example: TI's TLC320AD77C, but there are a lot of others from several companies available) to do the A/D and D/A conversion properly and use the STM32F401 as your DSP in the system...

Just my litte thoughts...
str
Logged
Checksum8
Active Member
***
Offline Offline

Posts: 126

Thank You
-Given: 123
-Receive: 100


« Reply #2 on: September 18, 2014, 03:58:31 15:58 »

I agree with str67, go with a codec chip

Have a look at this codec shield using a Wolfson WM8731. It is all
open source with lots of code examples and schematics. He has examples
of echo, tremelo, flanger etc. You could port it over to your micro of choice.
Also look at his MICrODEC project

http://www.openmusiclabs.com/projects/codec-shield/

http://www.openmusiclabs.com/projects/microdec/
Logged
CocaCola
Senior Member
****
Offline Offline

Posts: 482

Thank You
-Given: 169
-Receive: 232



« Reply #3 on: September 18, 2014, 08:59:42 20:59 »

Personally I would go with the original sound of analog circuits for most traditional effects...
Logged
maiasj
Junior Member
**
Offline Offline

Posts: 48

Thank You
-Given: 225
-Receive: 12


« Reply #4 on: September 18, 2014, 09:58:53 21:58 »

Hi,
Take a look at OWL Programmable Effects Pedal project. It´s open source.
Regards,
Logged
an007_rld
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 33
-Receive: 52


« Reply #5 on: September 19, 2014, 01:39:26 01:39 »

This is a good start: http://www.electrosmash.com/pedalshield
-an
Logged
witsanukai
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 13
-Receive: 9


« Reply #6 on: September 19, 2014, 04:45:15 04:45 »

Very interesting concept for Codec, but codec IC may hard to buy here (in Thailand Smiley )
For DAC, i still thinking to use PWM techniuqe with lowpass filter to regenerted sond, will try this weekend and update again.
Cheer. Smiley
Logged
an007_rld
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 33
-Receive: 52


« Reply #7 on: September 19, 2014, 12:40:49 12:40 »

A very nice solution based on all winner A20 it is about to come (it's a linux commuter in a pedal).

Check here: http://www.cnx-software.com/2014/09/19/linux-based-mod-duo-multi-effects-pedal-is-powered-by-an-allwinner-a20-som-crowdfunding/
The kickstarter campaign is here: https://www.kickstarter.com/projects/modduo/mod-duo-the-limitless-multi-effects-pedal

Good stuff for musicians.
-an
Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #8 on: September 19, 2014, 04:14:13 16:14 »

<...> but codec IC may hard to buy here (in Thailand :) ) <...>
Such difficulty looks strange, but if it's true I have couple of fun thoughts. You can try
1) codec chip from old PC motherboad from trash,
2) small cheap USB Audio Adapter, that should be in your local shops.

Maybe you can buy suitable STM32 kit with audio interface like this STM32F401C-DISCO http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF259098.

For DAC, i still thinking to use PWM techniuqe with lowpass filter to regenerted sond, will try this weekend and update again.
Sound quality that is enough for "Uaaa-Uaaa" inside plastic doll will disappoint you.

My advice - use the way CocaCola suggested. At least for the beginning.
But if you have strong attraction to digital approach and want to make your own effects then I'd better start with PC application that captures sound from sound card, processes it and playbacks through the same sound card.

I am very interested in your report about reached quality by PWM+LPF solution.
Here is one demonstration "Arduino playing Audio with PWM DAC" http://www.youtube.com/watch?v=XLm-QY0Bmno
Logged

Give a right name to a right game and play it right
PICker
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 207
-Receive: 109


« Reply #9 on: November 19, 2014, 07:51:18 19:51 »

I think you can play with the 16f1789 equipped with 12 bit ADCs, 8/5 bit DACs and 3 OPAmps:
http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F1789
Cheers,
Pier Andrea.
Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #10 on: December 08, 2014, 08:39:05 20:39 »

I think you can play with the 16f1789 equipped with 12 bit ADCs, 8/5 bit DACs and 3 OPAmps:

For guitar effects?! Weak microcontroller even without multiplier, with ADC/DACs not suitable for audio?
Being on sceptic side I'd say an advice to play with different plectrums would be more useful ;)
I will appreciate if you can share reasons of your optimism.
Logged

Give a right name to a right game and play it right
Vineyards
Active Member
***
Offline Offline

Posts: 168

Thank You
-Given: 62
-Receive: 37


« Reply #11 on: January 08, 2015, 01:46:46 01:46 »

I think you can play with the 16f1789 equipped with 12 bit ADCs, 8/5 bit DACs and 3 OPAmps:
http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F1789
Cheers,
Pier Andrea.

Do you believe you can get a decent guitar sound from such a slow microprocessor? You need a digital signal processor (DSP). On top of that you need audio grade opamps. Imagine plugging your guitar into a ZX Spectrum (which at least has more RAM), what would you get as an output? Blip, blop, dit, dit, dit.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC