Shop OBEX P1 Docs P2 Docs Learn Events
Audio Design *Input from PhiPi needed* — Parallax Forums

Audio Design *Input from PhiPi needed*

average joeaverage joe Posts: 795
edited 2013-03-14 08:28 in General Discussion
I know this isn't directly related to a parallax product, BUT... I don't know who else to ask. I have designed a preamp for my guitar *part of the LARGER project that DOES involve parallax products. I am working on the final revision and was wondering if what I can do to improve s/n ect. If you want more information on the whole project, let me know. Any thoughts, comments, suggestions are appreciated!
728 x 716 - 12K
«1

Comments

  • davejamesdavejames Posts: 4,047
    edited 2009-07-25 00:07
    Average,

    The diagram is kinda incomplete, so a bit hard to read and make some judgements. I'm guessing it's a multiple output buffer w/tone control? The two bottom 74's are set up for unity gain - did you want that? And what are those "terminal strips" about?

    Need more info, man.

    Fellow guitar-electronics tinkerer,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-07-26 16:37
    Hi Dave.

    I know this is very incomplete, so I will try to explain. This is a schematic for an output buffer, built into my guitar. It will send signals from both pickups, and from the pickup switch to the brain over 50' of 6 - 24awg. The brain *a bs2 and 4066s select bridge/neck/both for 2 effects processors. The terminal strips are as follows...

    3pin- Pickup in, Neck-Gnd-Bridge
    4pin- Pickup Sw, pwr-gnd-m-n switches
    6pin- connection to 1' extention cord from guitar to brain..

    I am re-designing the brain, if I get schematics done soon I will post those to this thread. I also have a "bypass" unit with a 4066 and 1/4 inch out that runs off a 9v.
    Current changes to the schematic will be ...
    #1 Supply going from +5 to +12 *or maybe* +15v
    #2 Bias resistors changing from 1k to 47k
    #3 Trim pots changing from 2.2k to 1m

    Hope this helps.
  • davejamesdavejames Posts: 4,047
    edited 2009-07-27 05:00
    OK, so the pickups come in on the 3-pin, through a level pot, into buffers and out the 6-pin. Then "something" comes back in on the 4-pin and it gets mixed in with the original pickup signal. Is that correct?

    Why is there a 1uF and a 100uF in parallel on the input of the top '74?

    Why are there two filters on the input to the top '74?

    And to answer your original question on how to improve S/N...in general, use metal film resistors and the lowest value of resistors.· Large value caps are great for wide audio bandwidth, but this is a guitar with not much harmonic content above 10KHz, so keep that in mind.· Limiting the bandwith can do a lot for reducing noise.· The type of cap can matter; I use polypropelyne for signal coupling·in the amps I've built but they can be physically large with high values of capacitance.· Wiring can play a part also.· With any kind of gain in the circuit, input/output cross coupling can occur if the in/out wires are too close.· Ground is always important - single point "star ground" is the best.

    Later,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)


    Post Edited (davejames) : 7/27/2009 5:11:55 AM GMT
  • average joeaverage joe Posts: 795
    edited 2009-07-27 14:29
    The 4 pin is just the pickup selector switch. It's wired for a simple pull up. The 6 pin is the output from my guitar. Signals from both pickups are sent along with the selector switch output down a 50' cord to my control unit. The 2 caps are the power supply filtering. Then a simple voltage divider to give 1/2 v is sent to an op-amp buffer, to bias the input signals from the pickup. I'm revising the schematic and will post soon. Thanks for the input on component selection. Any suggestions for input caps value? Thanks
    Joe
  • davejamesdavejames Posts: 4,047
    edited 2009-07-27 17:07
    ...errr, I'll reserve any more comments until I see the updated schematic.

    (smiles)

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-07-28 15:00
    Ok, I have a new schematic. I have included the switch (4 pin connector) AND the bypass unit. Very simple. I will work on schematic for my current prototype "BRAIN" and will hopefully post that in a few days. I'm still working on revisions to the *brain* so the new design might take me a couple days to post.

    Thanks again Dj
    Joe
    1248 x 664 - 17K
  • davejamesdavejames Posts: 4,047
    edited 2009-07-28 16:28
    ...ah, ok - I see what you're doing now.

    A question and a few comments (probably nit-picky stuff):

    Q - why the "remote switching" of the pickups?
    C - the 10uF output coupling caps could be reduced to 2uF (probably 1uF) if size is an issue. The 10uF doesn't buy much as guitar doesn't go very far below 110Hz.
    C - the 1uF/100uF combo on the top '74 could be replaced with a .1uF ceramic/10uF tantalum for reasonable filtering
    C - I see the value of the bias resistors has changed to 470K, good

    I'll be interested to see the rest of the project!

    Later,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-07-29 02:13
    The remote switching of the pickups is because I'm using 2 processors. One for my clean channel, and one for distortion. Often times I use both processors at the same time and want to be able to send just the bridge pickup to distortion and neck pickup to clean. I will make a note to myself about the output caps. I DO tune down to drop C most of the time and use a very bottom heavy distortion. The reason I'm using a 100uf on the 74 is I have a 50' run of wire between my guitar and brain. I will be adding the .1uf ceramic and replacing the 1uf electrolytic with 10uf tantalum. I also realize that with the current design the brain is not biased to 1/2v *I added the output bypassing caps to the on board preamp, and have made no changes to the brain yet. I WAS going to change schematic for 15v dual supply *guitar pre will be running single supply still.* But instead, I've decided to re-design the brain using ad5206 *6ch digital pot* instead of 4066s. The problem here being that the 5206 is 5v. Still pondering the best way to make this work. Here's a schematic for the brain, the bypass module is for testing purposes only. I have ommited the BS2 from schematic, nothing complicated here. The 12pin feeds 5v to bs2, the other 9 wires are pin to pin connection. I will be making ANOTHER schematic for the bs2 board in the next couple days.

    Thanks again DJ
    Joe

    Post Edited (average joe) : 7/29/2009 2:26:10 AM GMT
    771 x 577 - 13K
  • davejamesdavejames Posts: 4,047
    edited 2009-07-29 03:04
    ...on the run - will take a closer look tomorrow...

    I forgot you mentioned 50 feet of cable that the supply would be traversing. The '74s won't take much current to run, and the voltage divider for biasing the other '74s will only draw 10 - 15 mA (depending on the supply voltage)...so my thought of 10uF should be ok, but you might note a need to evaluate the value when the guitar-side is powered up.

    You're welcome Joe!

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • davejamesdavejames Posts: 4,047
    edited 2009-08-01 14:23
    ...sorry for the delay in response...

    In looking at the brain schematic...I see two '74s (IC4A/B) being driven by the same input, their respective outputs connect to two analog switches (IC1A/1B), and the output of the switches are summed back to a single buffer (IC5A). I can see that each analog switch is under BS2 control, but why the double buffering/summing? Also, the two output buffers (IC5A/5B) are routed to the OUT connector (I get that), but they are also connected to another set of analog switches in which the outputs are hard-wired together. What's that about?

    I'll be very interested to see the final product!

    Off for a family outing,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-08-12 15:56
    The extra analog sw per out was something I picked up when I FIRST started this all a couple years ago.... The idea was simple. I in, 2 out. Built into a pedal, powered from a lowly 9v battery. I could post a schematic, but it comes down to grounding the input of the effects processor when it's not selected. Anyway I just cooked this up. I'm applying the KISS method. I'm still dealing with power supply issues. I'm using an old kawai k3m as the project box and replaced the 15v regulators with 12v. Blew both fuses for some reason. Fuse Rating is 250v 800ma. I'm headed to the shack to see what I can find. I have a pdf of the power supply if your interested.

    The "next" step is going to be interesting. I want to free up a wire so I can use the volume knob for RCtime. My thought is only using one wire for the pickup selector. For an on-[noparse][[/noparse]on]-on sw use gnd-[noparse][[/noparse]6v]-12v and sort the mess out later. I'm still trying to get the basics of selecting a pickup outside of the guitar. It doesn't help that I've had no formal education in electronics. It is very interesting , minus the steep learning curve, and I'm starting to get it *I think*
    993 x 479 - 18K
    2304 x 1728 - 728K
    2304 x 1728 - 879K
  • davejamesdavejames Posts: 4,047
    edited 2009-08-12 18:05
    "*I think*" LOL! I completely undestand THAT comment. I'm in the same boat in learning about serial communication between the Stamp and VB2005. Fortunately I've have a very patient teacher (thanks Jeff!).

    Yes - I'd like to see the schematic of the P/S. Unless the regulators you used as replacements had a different pin out, I don't see why the fuses would blow. One thing with negative voltage regulators like the venerable 79xx series is that the tab is NOT ground as it is with the positive voltage versions (78xx).

    The center pic is kinda fuzzy - what is it?

    Later,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-08-12 20:33
    An understanding teacher really helps. The center pic and the pic on the right are how this all started. I finally did the schematic... It worked perfectly! And 9vs lasted forever and sounded good till the battery hit 4v or so. I'm actually thinking about playing with underpowered 4066s. At about 4v or so they start to distort unlike any diode clipper I've heard. A lowly 4066 and a 4011 ducktaped together and stuffed is a box. I wish I had better pics. Since then I've played with several ideas I've had. I've got a couple 6x10k digital pots that I want to use, but they're rated 5v max. That only gives 2v pp swing, and gets messy *for a novice like me*

    Anyway, after I got the power supply working I experimited a bit. I have no signal output. I'm thinking I might need to swap the summing resistors with the bypass caps. Any thoughts? Things I should look out for? *It's times like these I wish I had a scope*



    *EDIT* Fixed schematic!

    Post Edited (average joe) : 8/14/2009 5:31:05 PM GMT
    549 x 445 - 10K
  • davejamesdavejames Posts: 4,047
    edited 2009-08-14 05:07
    Joe - any chance of an integrated schematic? I'd like to see how all this connects together.

    I can't hazard a guess as to why you have no output with the p/s attached versus the 9V battery other than the obvious cynical question of "is it hooked up correctly?" (smiles)

    It would appear that the guitar signal is routed through the AND gates? (IC1D-12 connects to IC2A-1,2 and LED1) I don't understand this unless you *want* distortion.

    Later,

    DJ

    BTW - what are you using to draw the schematic?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2009-08-14 17:25
    Well look at that. I must have been half asleep when I drew that one. This is the schematic for the pictures of the of the box. Sw1 selects A OR B; Sw2 selects A AND B. I used A for my clean channel, and b for my distortion. If you look closely, the guitar signal is only routed through the 4066. This is how the whole project started. It doesn't connect with what I'm working on, just thought I'd show my progression.

    I played with different ideas of how to improve this simple setup for a while. The one thing I wanted to be able to do was use the bridge pickup for my distortion, while using the neck *or both* for the clean channel. This meant selecting pickups outside the guitar. I have several ideas on how to use the volume knob, pickup selector as a user interface.

    I'm using eagle 5.3.0 to draw the schematics.
  • davejamesdavejames Posts: 4,047
    edited 2009-08-14 23:03
    Eagle - ok, thanks.

    Sooo, are you running multiple amps or multiple channels on a mixer?

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • average joeaverage joe Posts: 795
    edited 2012-01-13 00:58
    Although this thread died a while ago, I'm resurrecting it due to new design idea. I had this "working" at one point, but don't have the schematic I used. This design is for using 2 processors, and to allow me to have separate pickup selections for each processor. The place my previous working design suffered was RF interference due to the long cable run. I plan on addressing this by using cat5 and a balanced signal. Anyway here's the current design I have been kicking around.

    guitar_buffer.jpg
    1024 x 548 - 79K
  • davejamesdavejames Posts: 4,047
    edited 2012-01-13 08:04
    Average! Good to see you back - I'd wondered how the project was going.

    How 'long' was the cable run? Using twisted/pair & balanced is a solid way to go...but a bit overkill?

    Dave
  • average joeaverage joe Posts: 795
    edited 2012-01-13 10:57
    Thanks DJ, it's good to be back. The project has been on the back burner. I had it working fairly well except for the RF issues. 50' of cable might not seem like a lot, but it was obviously enough to allow interference to be induced. Now the interference wasn't horrible, but it was there. In my test environment things worked quite well. As soon as I got the cable within 25 yards of a cell phone, or other RF source things went horribly wrong. My 2nd guitar player's wireless rendered my guitar unplayable. I was able to narrow it down to the cord by plugging in with my 3' pigtail. When I did this, all interference disappeared. I agree that balanced signal and twisted pair might be a bit overkill, but a good designer will design with worst case in mind. *or so I'm told.* I was able to REDUCE interference with a low pass RC network, but said interference was still there, especially when using lots of gain.

    I have decided to revisit this project because I feel that I will be able to improve it knowing what I know now. As you can see, I decided to use a mpf102 FET as my first stage, followed by '74s for the rest of the circuit. My design referenced the "600 ohm line driver" and "preamp to handle anything" posted here http://www.diystompboxes.com/smfforum/index.php?topic=82609.0;prev_next=prev I am currently building the in guitar part for testing. My previously posted schematic had some errors, so I am posting the updated guitar buffer.

    Now here's my first question. On the updated schematic, I am not sure if I need R28 and R30 or what the ideal value will be. Also, I am not sure if it makes a difference if I place R31, R37 before or after C19, C20. Also note that Q1, Q2 are MPF102, not J201.

    onboard.png


    Also, I will be using a Propeller to control said project with. I'm implementing features discussed in [url] http://forums.parallax.com/showthread.php?136315-Prop-Sigma-ADC [/url] I need to get the input stages finished before I do any more work on the Envelope Generator. Anyway, what are your thoughts?

    More to come, I will keep you updated as I progress.
    921 x 558 - 23K
  • davejamesdavejames Posts: 4,047
    edited 2012-01-13 11:41
    ...gulp! Talk about drinkin from a fire hose!!

    Lemme think about this a bit.
  • average joeaverage joe Posts: 795
    edited 2012-01-16 07:56
    I totally get you there! I've had that moment a few times over this design. I built the board for the guitar but grabbed the wrong input resistors. I'm fixing that NOW, and will have a power on test later today *fingers crossed* Between homework and my son, I've been stupid busy. Ahh the joys of newborns. The unified schematic was drawn up quick, so please excuse the crappy schematic.
  • davejamesdavejames Posts: 4,047
    edited 2012-01-16 08:38
    Ahh the joys of newborns.

    Hey! Congratulations!
  • average joeaverage joe Posts: 795
    edited 2012-01-30 21:37
    Thanks! My little man sure keeps me busy.
    After a bit of thinking, I revised my schematic yet again. This time I am using a AD5206 6 - 10k digipot as a volume control right before the switching. These are R28, R30, R57, R58. This works quite well despite the fact there is no gain. My invert circuit didn't work as expected, so it's being removed from the schematic. I might revisit the idea later. I need to finish wiring up logic control and do some further testing. So far I am very happy with the sound. My guitar sounds very clean and warm. The low end response sounds a bit flabby in my opinion, so I will be changing input caps on the in guitar board to metal-film and the rest of the audio caps to polyester. I do hear a bit of "chatter" when adjusting settings on the digipot. I believe this is coming from the bs2 I am using strictly for testing. I plan on controlling the final product with a propeller chip. User Interface is still under design. Still a ton of work left to do, but some progress at least.
    pre_done.jpg
    1024 x 329 - 61K
  • average joeaverage joe Posts: 795
    edited 2012-02-02 04:44
    After further testing, I must say I am stoked about the results. One channel tests good, the other one has an issue and I have not determined the cause. My thought is bad wiring or possibly a bad TL074. I will pin this down in the next couple days. This may be due to another wiring mistake, but I haven't really investigated yet. I was blowing fuses when I first started so something may have fried. Diagnosing this would be easier with a scope, but I don't have access to one at this time. One surprising result was the invert stage worked opposite of what I expected. My schematic still needs revision because it's not pin for pin accurate. I will fix that as I try to figure out what is wrong with the channel.

    The channel that actually works sounds really good. The neck pickup sounds warm and full and the bridge sounds nice and plucky. Both pickups without the invert stage provides a funky out of phase tone. I REALLY like this sound. With heavy distortion it has a very nice bite, clean it sounds very thin. Noise is minimal. Still some when bs2 is communicating with the pc. I tried recording some samples, but I will have to do that later when I can actually play the guitar. I can't wait to get both channels working and test with both of my processors.
    The board looks a bit sloppy, I guess I should have spent more time getting the wiring to look clean.
    IMAG0588.jpg
    IMAG0586.jpg
    IMAG0580.jpg
    IMAG0577.jpg
    IMAG0576.jpg
    IMAG0574.jpg
    IMAG0568.jpg
    Pre_Board.jpg
    1024 x 1712 - 151K
    1024 x 612 - 100K
    1024 x 612 - 85K
    1024 x 612 - 63K
    1024 x 612 - 68K
    1024 x 1712 - 137K
    1024 x 1712 - 181K
    1024 x 309 - 55K
  • davejamesdavejames Posts: 4,047
    edited 2012-02-02 07:42
    Hi Joe,

    I've been looking at the schematic and will have some questions/comments later today.

    Glad to hear it's working to your tonal-satisfaction!


    BTW - thanks for "like-ing" my recent efforts.
  • average joeaverage joe Posts: 795
    edited 2012-02-07 16:46
    Dave, You're very welcome! I will be excited to check out the finished product.

    I finally got a chance to tinker on my project again and discovered why the second channel had issues. I used 1k pull down resistors on 2 of the 4066's instead of 10k. I replaced the resistors and everything worked great. I am revising the final summer stage because it introduces switching noise. The solution is to add ac coupling caps after the 4066 and change the tl074 reference to ground instead of the 2.5v ref. I believe I will also need a resistor from the junction of the 4066 and cap to 2.5v ref. Not sure of the value here yet, in previous designs I used 1M, but I'm trying to keep resistor values low to reduce thermal noise. I THINK 100k should work, but I will have to play around with this a bit.

    I still need to wire up some transistors to a 374. I am thinking about using SPI to control the switcher since I am already using serial for the AD5206. I wish I had some 595's laying around right about now.
    The user interface will take quite some time to develop. I will be using a 3.2" touchscreen and possibly 8 rotary encoders. Hopefully the screen will be here in the next few days.
    Audio clips still need to recorded which requires me hooking up both processors. That's all I have for now. I hope you're having success with the Director.
  • davejamesdavejames Posts: 4,047
    edited 2012-02-07 17:07
    Hello Joe,

    I'm still collecting my questions from the last communication...

    I'll be very interested to see/hear the "final" (is it ever?) project.

    How's the switching noise when you cut in/out the 4066s? That's the one thing I'm contorting over now. In some way, some how, whenever the BS2 asserts a "mute" condition, I get this 100 - 200mV transient in the output...which of course translates to a real nice "TICK!" with every switch press.

    Anyway, I'll be back to debug later this evening. I've already yanked the audio buffer board and mux board, so that doesn't leave much else to trouble shoot. We'll see...

    Later man.
  • average joeaverage joe Posts: 795
    edited 2012-02-07 20:31
    davejames wrote: »
    Hello Joe,

    How's the switching noise when you cut in/out the 4066s? That's the one thing I'm contorting over now. In some way, some how, whenever the BS2 asserts a "mute" condition, I get this 100 - 200mV transient in the output...which of course translates to a real nice "TICK!" with every switch press..

    I have a fairly bad switching transient right now, don't have a scope so I can't really SAY BUT. The way the schematic is drawn is insufficient. This results in large transients when switching. Clean it is a slight tick, with ample distortion it is a loud pop. The problem is, the summing input varies from about 0v with no switch on, 2.5v with one and 5v, with both. The output from the 4066 needs to be AC coupled and a return path for the switching current needs to be bypassed.
    new out.png


    I think this should work, I will test it when I get a chance. R1,R2, R3 should bias the junction. I would like to lower the values to limit thermal noise. I'm ordering metal film resistors for important points such as this. All my 4066 designs suffered switching noise. A design similar to the the one above WITHOUT the bias resistor gave best results. Hopefully the bias resistor will fix this. I'm trying to talk my wife into letting me buy a scope with some of our tax return. The idea is being met with some resistance so we'll see. LOL. I'd be interested to see how you designed your switching. Dual supply seems to work the best but it adds some major challenges as well. Voltage translation is the big issue with dual 7.5v rails. Keeping the control signal biased around a -4v and +4v swing is a bit tough without using a lot of current during. There are better analog chips, and other designs. I expect to see some transient when switching, but it would be ideal to keep it to under a few mV.I haven't used relay based switchers, but I would imagine they suffer transients as well. When I think about contact bounce and EMI generated, I question what they really do to a signal with significant gain.
    539 x 370 - 7K
  • average joeaverage joe Posts: 795
    edited 2012-02-08 01:03
    After another round of testing, I am fairly happy with the results. With biasing resistors R1, R2, R3 set to 100k, only a slight click can be heard. Even with significant gain transients are slight. I am directly switching the control lines with a mechanical switch and pulldown resistors. Before I switched from passive pickup selection *a normal wired guitar* I experienced noise when switching pickups. I did notice a small amount of noise when using lots of gain. All things said, switching noise and background noise *thermal noise* is well within acceptable range. Hopefully some slight modifications to the onboard buffer will help. Changing the input resistors *3.4Meg* to metal film and input caps to metal film should help. The only thing left now is waiting for my `595 to show up and wire some transistors to shift control signals to 0-15v. I need to swap carrier boards for my BS2 to see if that is the cause of communication noise.
  • average joeaverage joe Posts: 795
    edited 2012-02-23 09:28
    Dave, here's figure 1.
    Fig 1.png
    ]
    And figure 2... *edit* sorry I forgot to change the input resistor to a cap.
    fig2.png
    611 x 245 - 4K
    554 x 262 - 4K
Sign In or Register to comment.