0
Offline
Newbie
Karma: 0
Posts: 28
|
 |
« on: January 13, 2013, 08:30:30 pm » |
hey guys i want to use this IC to switch a line level audio signal on/off, before it goes into a more powerful LM1876 amp :: http://semicon.njr.co.jp/eng/PDF/NJM2521_E.pdfcould anyone help me draw a simple schematic where the arduino digital pins do the switching? im worried about current draw, and don't really understand the test circuit demonstrated in the datasheet... thank you! ulfur
|
|
|
|
|
Logged
|
-------http://ulfurhansson.com/
|
|
|
|
Offline
Sr. Member
Karma: 9
Posts: 295
|
 |
« Reply #1 on: January 13, 2013, 10:06:58 pm » |
Connect pins 2 and 4 to your arduino pins. Page 2, look at the truth table (input control signal-output signal).
Pin 1, 3, and 5 are your analog inputs, use 10uf capacitor for signal coupling.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
|
 |
« Reply #2 on: January 14, 2013, 01:09:26 pm » |
thanks for the reply! i would be using pin 4 only for a stereo signal, right? mono signal and i would use pin one and pin 8 for ground? like so:  (PCB is mirrored for printing)
|
|
|
|
|
Logged
|
-------http://ulfurhansson.com/
|
|
|
|
Offline
Sr. Member
Karma: 9
Posts: 295
|
 |
« Reply #3 on: January 14, 2013, 01:24:44 pm » |
This type of chip is usually used for "input selection"... AM/FM/TAPE/PHONO, that kind of thing.
Maybe I'm missing something but why do you need to switch the signal lines on/off going to your amp? If you only have one source, why don't you just connect your signal lines directly and put an on/off power switch to your amp.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
|
 |
« Reply #4 on: January 14, 2013, 01:55:11 pm » |
because this PCB is a part of a musical instrument, where each channel is one note, controlled by a keyboard. there will be 12 stereo amp chips, giving me 24 notes to play with. thats why i need to be able to turn the channels on/off very rapidly, through a digital interface (the arduino)! updated pcb with ground fill :: 
|
|
|
|
« Last Edit: January 14, 2013, 02:40:30 pm by dataplex »
|
Logged
|
-------http://ulfurhansson.com/
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #5 on: January 14, 2013, 06:16:17 pm » |
It is fairly simple to understand the chip: it has 2 "logic" inputs to determine which one of the 3 "analog" inputs will be connected to the output.
It even has a truth table there for you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 180
|
 |
« Reply #6 on: January 14, 2013, 10:50:40 pm » |
Has anyone actually played with this chip? Seems like there would be a pop/click each time it turns on or off if there's signal present.
Also, no issues with it switching negative signal?
|
|
|
|
|
Logged
|
|
|
|
|
Anchorage, AK
Offline
Sr. Member
Karma: 10
Posts: 494
|
 |
« Reply #7 on: January 15, 2013, 04:08:57 pm » |
I haven't looked at the data sheet, but most logic-controlled audio switches use a single supply, hence the need for decoupling caps, so yes there could be some noise associated with the DC offset switching. It depends, and there's often text in the app notes detailing how to deal with this.
Most of these ICs use zero-crossing detection to avoid pops from the audio signal itself. But again, this is a quick reply and I haven't read the data sheet to verify.
That said, I can't help but feel there has to be a better approach than this. OP: Would you be willing to detail more on the implementation of your instrument?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 180
|
 |
« Reply #8 on: January 15, 2013, 10:58:56 pm » |
I saw nothing in the datasheet saying more, which is why I asked for real world feedback.
I see rail to rail audio switches, but the form factor is so hard these days. *Tiny* chips.
|
|
|
|
|
Logged
|
|
|
|
|
Anchorage, AK
Offline
Sr. Member
Karma: 10
Posts: 494
|
 |
« Reply #9 on: January 15, 2013, 11:28:18 pm » |
Yep. Go SMD or go home. I've noticed that. I've already put together a $200 order of stock parts from Digikey to get started.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 180
|
 |
« Reply #10 on: January 16, 2013, 01:45:45 am » |
I work in SMT every day..
These are *tiny* UCSP packages - 9 pins in a 3mm x 3mm package.
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 34
Posts: 2401
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #11 on: January 16, 2013, 10:44:39 am » |
A CD4016//66 is a 4 section N.O analog switch capable of switching any analog voltage. 0 to 5 or +/- 12 V audio to low RF (even low power DC) signals and is 5 V logic level control. I have used them for MML (Mickey Mouse Logic) low audio and even to switch crystals in an old transceiver I owned once. It's really a nice chip for those 'unusual' places where nothing will quite fit. There are also 2, 4 and 8 position switches but for a mulltivoiced keyboard the quad spst N.O. are ideal.
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 180
|
 |
« Reply #12 on: January 16, 2013, 11:19:54 am » |
4066 will click when switching audio. Ok for a quick switchover, but not good for something like a musical instrument.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
|
 |
« Reply #13 on: January 17, 2013, 05:53:52 pm » |
to clarify what kind of instrument this is: the switch is a part of a musical instrument, where each channel is one note, controlled by a keyboard. there will be 12 stereo LM1876 amp chips, giving me 24 notes to play with. the outputs of the amp chips dont go to speakers, but rather they go to 24 coils that drive steel strings through magnetic actuation. (its a harp) the solenoids drive the 24 harp strings by a feedback loop (the input is a piezo pickup, on the bridge - through a preamp) i have made a similar instrument before, seen here :: ulfurhansson.com. thats why i need to be able to turn the channels on/off very rapidly, through a digital interface (the arduino)! so, clicks and pops are fine - they actually could help the strings to start vibrating. i got the chips from fedex today - for some reason this setup is NOT WORKING  any thoughts on what i might be doing wrong? here is the datasheet : http://semicon.njr.co.jp/eng/PDF/NJM2521_E.pdf
|
|
|
|
« Last Edit: January 17, 2013, 05:59:30 pm by dataplex »
|
Logged
|
-------http://ulfurhansson.com/
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 180
|
 |
« Reply #14 on: January 17, 2013, 10:23:25 pm » |
Is that a speaker hooked to 7 and 8 or a solenoid? Either way is troublesome because of the level of signal..
Is sw1 seeing 5v and sw2 low?
|
|
|
|
« Last Edit: January 17, 2013, 10:30:20 pm by db2db »
|
Logged
|
|
|
|
|
|