Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 07:14:46 19:14


Login with username, password and session length


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

Posts: 24

Thank You
-Given: 13
-Receive: 5


« on: September 18, 2014, 07:53:08 07: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
*
 Warned
Offline Offline

Posts: 25

Thank You
-Given: 29
-Receive: 23


« Reply #1 on: September 18, 2014, 03:25:11 15: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
V.I.P
Junior Member
*****
Offline Offline

Posts: 71

Thank You
-Given: 44
-Receive: 53


« Reply #2 on: September 18, 2014, 04:58:31 16: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
V.I.P
Senior Member
*****
Offline Offline

Posts: 397

Thank You
-Given: 108
-Receive: 182


« Reply #3 on: September 18, 2014, 09:59:42 21:59 »

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

Posts: 41

Thank You
-Given: 151
-Receive: 12


« Reply #4 on: September 18, 2014, 10:58:53 22:58 »

Hi,
Take a look at OWL Programmable Effects Pedal project. Its open source.
Regards,
Logged
an007_rld
Newbie
*
Offline Offline

Posts: 21

Thank You
-Given: 18
-Receive: 14


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

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

Posts: 24

Thank You
-Given: 13
-Receive: 5


« Reply #6 on: September 19, 2014, 05:45:15 05: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
Newbie
*
Offline Offline

Posts: 21

Thank You
-Given: 18
-Receive: 14


« Reply #7 on: September 19, 2014, 01:40:49 13: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: 102

Thank You
-Given: 47
-Receive: 33


« Reply #8 on: September 19, 2014, 05:14:13 17: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
sparker
V.I.P
Inactive
*****
Offline Offline

Posts: 5

Thank You
-Given: 153
-Receive: 1


« Reply #9 on: September 19, 2014, 05:48:00 17:48 »

Google Spin FV-1 - hope this helps.
Logged
tacromx
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 41
-Receive: 13


« Reply #10 on: November 11, 2014, 11:05:31 11:05 »

This is my design of the FV1.

tap tempo, 16 program memory, i2c lcd interface, built as a Arduino shield
Logged
PICker
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 28
-Receive: 35


« Reply #11 on: November 19, 2014, 08:51:18 20: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: 102

Thank You
-Given: 47
-Receive: 33


« Reply #12 on: December 08, 2014, 09:39:05 21: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: 130

Thank You
-Given: 35
-Receive: 25


« Reply #13 on: January 08, 2015, 02:46:46 02: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
tacromx
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 41
-Receive: 13


« Reply #14 on: January 11, 2015, 01:38:36 13:38 »

There's also the Teensy, looks interesting...

https://www.pjrc.com/teensy/td_libs_Audio.html
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