Author Topic: Best methods for getting an electric guitar signal into an Arduino or RPi  (Read 3194 times)

0 Members and 1 Guest are viewing this topic.

Offline jayfehrTopic starter

  • Contributor
  • Posts: 13
Hi, I'm wondering what the best approach is to getting the line-in signal from an electric guitar into a microcomputer or microcontroller for effects processing? The Pi has i2s, as does the Adafruit M0 feather so I'm thinking that is the best way to get the signal in, but what additional hardware will I need? Which i2s chip? Will I need a voltage divider or an op-amp? What are some gotcha's? I'm really just hoping for a starting point.

Thanks in advance.
 

Offline ade

  • Supporter
  • ****
  • Posts: 231
  • Country: ca
i2s is digital so you need to build an ADC i2s circuit, for example using TI's PCM1802 chip or similar.  That might be a project on itself.

And unfortunately you'll find that i2s for audio input is not very well supported on PIs, etc. and may require some kernel hacking to get it to work reliably.

So depending on your expectations, you might be better off just buying a $5 USB sound card and use that for input.

E.g.,:

 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Is the line in signal a direct output of guitar pickup ? Or is the
line in signal a processed signal from a guitar amp ?

In either case what are signal levels with respect to ground ?

Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline netdudeuk

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Seen the latest Ben Heck video with Felix doing a guitar mod ?
 

Offline kolonelkadat

  • Regular Contributor
  • *
  • Posts: 202
  • Country: us
  • Obviously, windows are central to Windows.
    • Force Project X
the peak output voltage of the guitar should be somewhere in the like 200mv-1v range, so if you went with an arduino, you'd probably want to feed the signal into an opamp before running it into the adc. im not sure the 12bit adc on the feather you mentioned will give the greatest sound, but it might make for some decent chiptunes.

the raspberry pi is literally just a crappy computer, you get audio into it the same way you would on any other computer. a sound card.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf