Saturday, July 13, 2013

Polysix - Bypassing the Post-Effects VCF

In a previous post, I discussed how the Korg Polysix has an amplitude-driven VCF that is located just after the synth's effects section.  I discussed how it fails to open all the way, which attenuates the sizzling high-frequencies produced by the synth and makes it sound muffled.  The VCF is also slow to respond to changes in amplitude, which softens the synth's attack.  At the end of that post, I mentioned a mod to defeat this VCF, which restores its sizzling response and fast attack.  This post adds more detail on the removal of this VCF.  To start with the good stuff, here's a very simple soundcloud demo:







Overall Circuit:  To get started, let's look at the schematic for this part of the Polysix.  All of the elements that I'm going to discuss are on the KLM-368 "Effects" PCB.  Below is an excerpt of this schematic with the different blocks labeled.  The most relevant blocks are the VCF circuit itself (based on an LM13600) marked in yellow.  What drives the cutoff frequency of the VCF is an envelope detector circuit marked in blue.  These two circuits work together to determine how much high frequency sound gets through the synth.


A picture of this part of the synth is shown in the photograph below.  The LM13600 at the heart of the VCF (ie, U15) is shown in the socket at the center of the photo.  This will be the area for our modifications.

Picture of the Unmodified Circuit Around the Post-Effects VCF.
Defeating the VCF:  The first modification is the mod that I discussed very briefly at the end of my post linked above.  I said that you could defeat the VCF by forcing it to be fully open all the time.  You can do this by applying +15V to Q14.  Q14 controls the current flowing through the filter, which controls the filter's cutoff.  By applying +15V, you force the filter open as far as it will go.  As shown in the schematic below, I do this mod non-destructively by using a clip lead to grab +15V from R125 and apply it to Q14 by clipping to R89.  If you do this, make sure you get the correct side of R125 and R89.  As shown in the picture below the schematic, you need to clip onto the bottom of R125 and of R89.

By Jumping from R125 to R89, +15V is Applied to Q14, which Forces the VCF Open.
Using a Clip-Lead to Defeat the Post-Effects VCF by Forcing it Open.
The Sound of Defeating the VCF:  After adding this one clip lead, how does it sound compared to the stock Polysix?  Well, in that soundcloud demo at the top, you clearly hear that muffled sound of the stock Polysix is removed and that the sizzling high-frequencies come through.  To my ears, it's fantastic.  If you like the more mellow sound of the stock Polysix, simply remove the clip lead.  No harm was done!

Permanently Removing the VCF:  On the Polysix Yahoo Groups, there was a post by Tony of Oakley Sound who suggested that the best course would be to simply remove the VCF entirely.  This would remove any noise contribution of the VCF and of its associated envelope follower.  This is a fantastic idea.  In his post, he discussed how to do the mod.  Because it involved soldering and de-soldering components, it can make people nervous.  So, instead, I propose a non-destructive version of his mod.  

Non-Destructive Removal of the VCF:  As you can see in the photogrpahs so far, U15 (the LM13600) is socketed.  This means that you can simply pop it out of the circuit without hurting anything (though do turn off the synth first).  Removing U15 removes the VCF from the synth.  Easy, eh?

Pop U15 (an LM13600) from its Socket, and You've Removed the VCF!
Reconnecting the Signal Path:  Unfortunately, removing U15 also breaks the audio signal path, which means that you'll get no sound.  That's not so nice.  To fix this problem, Tony says you'll need to find J28 and J29, which are jumpers (ie, zero ohm resistors) that are not on the paper schematic.  Once I found out where they were, I added them to my schematics, including the excerpts shown here.  As you can see, they bring the dry audio signal (J28) and the effected audio signal (J29) to the VCF (U15).  So, to reconnect the audio path, you can use a clip lead to connect J28 and J29 and then use a second clip lead to jump from either J28 or J29 (remember, they're now connected) all the way over to R168.  As you can see in the schematic below, this jump to R168 brings the dry and effected audio down to the final VCA, which is also the overall output point from this PCB.  As you can see in my picture below the schematic, be sure to connect to the left side of R168 (though it doesn't matter which side of J28 and J29 you clip to).
.
To Non-Destructively Remove the VCF, Pop out U15 from its Socket, Clip J28 to J29, and Clip J28 to R168.
The Empty Socket was U15.  The Clip Lead Jumps J28 to R168.  I still need to Jump J28 to J29.
The Sound of the Removed VCF:  After removing the VCF in this way, how does this sound?  Well, in the simple demo at the top, it sounds much like my first mod -- it greatly increases high-frequency sizzling sound of the synth.  At first listen, removing the VCF doesn't really sound different from simply defeating the VCF.  But, I have yet to play the synth at any length now that I've removed the VCF, so perhaps this mod will show its differences under other types of playing.  I do like the idea of completely removing the VCF from the circuit.  So I think that I'll keep this version of the mod, for now.

Improved Attack Time:  Besides increasing the high-frequency sizzle of the synth, defeating/removing this post-effects VCF also improves the synth's attack time.  Sometimes the Polysix is criticized as having slow envelopes because the start of the notes can sound a bit soft.  Since the per-voice envelopes are very snappy (~1 ms attack time), a little investigation shows that the problem is the slow response of the post-effects VCF.  The graphs below show the start of a high-pitched note output by the Polysix when in its stock configuration (top graph), with the VCF defeated via +15V at Q14 (middle graph) and with the VCF removed via removal of U15 (bottom graph).  Along the bottom is the time in seconds.

Attack of a High-Pitched Note.  (Top) Stock Polysix.  (Middle) Defeated Post-Effects VCF.  (Bottom) Removed Post-Effects VCF. 
As you can see in the top graph, the stock Polysix can take about 10 ms for the sawtooth amplitude to reach maximum (though it does get within 3 dB within of 3 ms).  By contrast, defeating VCF (middle graph) or removing the VCF (bottom graph) allows the sawtooth to reach its maximum in less than 1 ms.  The snappy sound is back!  Furthermore, look at how sharp-edged the sawtooth is in the bottom two graphs versus how rounded it is in the top graph.  This is a visual illustration of how the VCF is muffling the very high frequencies of the Polysix.

Effect on Noise:  The assumed purpose of the post-effects VCF is to attenuate the noise generated by the Polysix effects circuits.  They are hissy.  By defeating the post-effects VCF, we are allowing all that noise to pass.  By removing the VCF, we might all the noise to pass, but we might eliminate the noise of the VCF itself.  To see if this was the case, I did some measurements of the noise produced by my Polysix.  The noise spectra are plotted below.  (Notice the logarithmic spacing on the frequency axis.  Sorry, but it's the only decent way to show such a wide range of frequencies.)


First, let's ignore all the spikes in these graphs.  Most seem to be due to line noise (60Hz) and its harmonics.  Different configurations look different at the different spikes, but none of them is clearly superior.  So, instead, let's ignore the spikes look more broadly.  What I see is that the stock Polysix (blue) has the worst noise of the three configurations for the frequencies from 100 Hz out to about 1000 Hz.  Defeating or removing the post-effects VCF seems to lower the noise level in these frequencies.  That's great!

Above about 2000 Hz, though, we see that the green line is the worst.  The green line is the case where I defeat the VCF by forcing it to be open all the time.  This condition is about 2-3 dB noisier than the other two cases.  Because this vintage synth only has a signal-to-noise ratio of ~45 dB to start with, loosing another 2-3 dB is definitely noticeable.

Conclusion:  Overall, I'd say that the red line is the best.  This is the case where the post-effects VCF is removed by pulling U15 and jumpering J28/J29 over to R168.  It shows the lowest noise in all frequency bands, with the exception of the spike at 120 Hz.  If you can live with that, you get decently low noise everywhere else, you get the full high-frequency sizzling sound available from the Polysix, and you get the fastest attack for each of your notes.  It's a winner.  And, it's fully-reversible if you decide you don't like it!

Update: Is this modification now too bright?  Try removing Korg's own attempt to brighten the synth!
Update: Want to make the mod more robust?  Try soldering a jumper wire instead of using the clip lead!

Friday, July 12, 2013

Polysix - Temperature without Mods

In this previous post, I measured the temperature of my Korg Polysix because I was worried that my modifications were drawing too much power and possibly over-taxing the power supply.  Without a similar measurement on an unmodified Polysix, I couldn't know whether the value that I measured was normal or abnormal.  Well, I decided that I could approximate an unmodified Polysix by disconnecting my mods and repeating my test.  Here are the results (F on top, C on bottom):



To define my test a little more specifically, I measured the temperature of the metal bar acting as a thermal bus for the linear regulators in the power supply.  I measured the temperature mid-way between the 3rd and 4th regulators (see picture below), which was the hottest spot for my modified Polysix.  I did the test on two sequential days with the initial temperature being 75.7 F for the test of the modified synth and 74.4 F for the de-modified synth.


For the "modified" synth, the relevant changes are: (1) the removal of the Polysix's 8049 microprocessor that had been the key assigner, (2) the addition of a key scanning microprocessor from Keyparts UK (measured as 55.3 mA from 5V), and (3) the addition of an Arduino Mega to do all the key assigner functions (measured as 58.3 mA from 5V).  When testing in the "de-modified" condition, I disconnected the key scanner and the Arduino.  I could not, however, put the 8049 back into the synth.  Therefore, the "de-modified" condition under-represents the temperature of a stock Polysix.

Looking at the graphs of the temperature versus time shown at the top of this post, you can see that the test of the modified Polysix reached a final temperature around 148F (63C) whereas the test of the de-modified Polysix reach a final temperature of only 136F (58C).  Clearly the 570 mW of the key scanner and Arduino have an impact.  That's good to know.  Also, this data tells us that the final temperature of the synth varies as 17.7 F per Watt.  That'll be a useful number in a moment.

Now, to estimate the temperature of a stock Polysix, I can take the temperature from the "de-modified" test and add in the additional heating due to the power draw of the 8049 microprocessor.  Based on the 8049 datasheet, it says that it draws 30-70 mA from 5V (ie, 0.15 to 0.35 Watts).  With this added power draw, I estimate that the final temperature will be (136F + [0.15 to 0.35 Watt]*(17.7 F/Watt)) = 138 to 142 F.  Let's pick the middle value and call it 140F (60C).

OK, now I can finally answer the question as to whether my mods are putting my power supply at risk.  My modified Polysix reaches 148F.  Compare this to my estimate of the temperature of a stock Polysix, which is about 140F.  That's a reasonably big difference in temperature.  While maybe this difference is OK, I should probably not add any more components that would further increase the power draw.

For example, I have this idea of adding wavetable oscillators to the Polysix.  If I do this using six discrete Femtoduino microcontrollers, this would probably require ~120 mA from 5V, which would be 600 mW.  Adding this to my already-modified synth would result in a final temperature around 156 F (69C).  Now, if I were to play this synth in a hot room (85F) instead of at cool conditions of my test (75F), that would mean that my power supply would be running at 156F + (85F - 75F) = 166 F (74 C).  That's got to be too hot.  My conclusion is that, if I want to add these components, it looks like I'll have to add my own power supply.

Tuesday, July 9, 2013

Polysix - Adding a Sustain Pedal

A stock Korg Polysix does not allow for a sustain pedal.  The Polysix does have a jack to set the Chord Memory using a pedal (which is a bit esoteric) but not for sustain.  Why?   In my opinion, this should be a basic feature of any polyphonic synthesizer.  Well, ever since I replaced my Polysix's "Key Assigner" with an Arduino, I've been looking forward to adding a sustain pedal to my Polysix.  This post describes how I did it.  Here's a video demoing my mellow enjoyment of it...


Previous Approaches:  Looking around the web, there are a couple of approaches that people have taken to adding a sustain pedal to the Polysix.  On the Polysix Yahoo Groups archive, this thread has some replies that talk about adding some electronic components that, in effect, use a foot pedal to be a remote-control for the Polysix's "Hold" button.  While that is OK, turning off the "Hold" button (on a stock Polysix) turns off all notes, including those that are still being held by the player's fingers.  This is not what I want.  The only way that people seem to have had success is with the various MIDI retrofit kits (eg. from Kiwitechnics, from Johannes, or from CHD).  Nearly all of them replace the Polysix's Key Assigner with their own microprocessor and software, which allows them to add the sustain pedal functionality.  Since I, too, replaced my Key Assigner, then I, too, can add the sustain pedal functionality.

My Plan:  My plan is to take a similar approach as all the MIDI retrofit kits.  I'm going to re-use one of the jacks on the back of the Polysix, I'm going to wire it back to my Arduino (my replacement for the Key Assigner), and I'll write some software for the Arduino that will implement the sustain pedal functionality.  Now, when I add the sustain pedal, the configuration of my modified Polysix will look like this:


Choosing the Jack: For my sustain pedal, I chose to use the "From Tape" jack on the back of the Polysix.  I do not plan on using the Tape functionality anymore, so I'm now re-using one of its jacks.  Future mods (e.g. Portamento pedal) will utilize the other jacks.


Re-wiring the Jack:  Inside the Polysix, I disconnected the white wire that had been connecting the jack to the small High/Low switch.  You can see in the pitcure below that I labeled the white wire (in case I want to reconnect it in the future) and soldered in a red wire in its place.  In this picture, the wire that I added is the red one going down -- not the one going up and to the right.


Connecting to the Arduino:  Stringing the red wire along the bottom of the back panel of the synth, I pass by the power supply and reach the Arduino Mega mounted on the other side.  The Arduino is already wired up with tons of wires connecting it to various parts of the synth (most of them going to the jack for the old 8049 Key Assigner).  I added the single wire from the Sustain Pedal jack to the mess of wires shown below.  It's connected to one of the digital pins.  With this mess, though, even I can't tell which one it is.  You'll just have to trust me...it's connected there somewhere.


Configuring the Arduino:  To configure the Arduino to read the foot pedal, you have to understand how the pedal works.  My foot pedal is a normally-open switch.  This means that, normally, no current will flow through the food pedal.  When you press the pedal, the switch closes, which will allow current (if a voltage is imposed by the Arduino) to flow through the pedal.  This is how the Arduino will sense whether the pedal is closed or not.  In the Arduino software, I tell the Arduino that the given digital pin is an input (via "pinMode") and  tell it to impose a voltage on this pin via its pull-up resistor (using "digitalWrite").

Reading the Pedal State:  The software to read the state of the pedal is simply "digitalRead".  If the pedal is not pressed, no current will flow, so the pull-up resistor is able to maintain 5V at the Arduino's pin.  Therefore "digitalRead" returns HIGH.  When the pedal is pressed, it allows current to flow from the pin to ground.  That current has to pass through the pull-up resistor, which means the voltage at the pin as seen by the Arduino is very low.  As result, the "digitalRead" will return LOW.  So, whenever "digitalRead" says LOW, the pedal is pressed and the Polysix should sustain all its notes.  Whenever "digitalRead" says HIGH, the pedal is not pressed and the notes should decay normally.  Easy.

Writing the Software to Sustain the Notes:  While reading the state of the pedal is easy, writing the software to implement the sustain and release logic was surprisingly challenging.  The "voice stealing" algorithms that allow a six voice synth to gracefully handle more than six MIDI notes get more complicated if some of the notes are being sustained.  If you're looking to implement your own Key Assigner and looking to add a sustain pedal, expect to spend a little time trying to think clearly about how you're going to implement it.

Success:  Luckily, a little good old fashioned trial-and-error combined with a whole bunch of "Serial.println" commands afforded me an inefficient, but ultimately effective, path to success.  The video at the top is a demonstration of its functionality.  Normally, I like to play at fast tempos.  The sustain pedal motivates me to slow down and relax.  I like it.

Thanks for reading!

Update: I shared my Arduino code here

Sunday, July 7, 2013

Polysix -- Taking its Temperature

After my long string of modifications to my Korg Polysix, I've now got several additional electronic components drawing power from the Polysix's built-in power supply.  I've been worried that I might be taxing the power supply too much.  Feeding this fear is that, when I touch the back of the Polysix, it seems awfully hot.  Since I don't have an unmodified Polysix to compare to, all I can do is take some measurements and see if anyone out there on the Internet can confirm if my readings are normal, or if they're too hot.  Does my Polysix have a fever?

To measure its temperature, I'm using the thermocouple that came with my digital multimeter.  It's a hot day here in the Northeastern United States, so as you can see below, the ambient temperature is 86.4 F (30 C).


After playing my modified Polysix for about 30 minutes, the picture below shows that the back surface of the Polysix is reading almost 109 F (43 C).  It is quite warm to the touch.


Opening up the Polysix, I measured the temperature of the metal bar that is acting as a heat sink for four of the voltage regulators.  Poking around a bit, I find that the hottest spot is between the third and fourth regulator.  It is reading 138.4 F (59 C).  That's getting  pretty hot!  I also measured the temperature of plastic casing of each of the four regulators, and they were all lower than the temperature of the metal bar (which was a bit surprising).


While I had the synth opened up, I also measured the temperature of the transformer.  it was reading 123.5 F (51 C).  While that's really warm, it could certainly be worse.


So, my question for all of you is whether you think that 140 F (60 C) is too hot for the power supply.  Am I over-taxing the power supply?  What is the temperature shown by an unmodified Polysix?

To be truthful, I'm actually interested in drawing even more power from the built-in power supply.  My mind is currently dreaming of 6 Arduino Micros (or 6 Femtoduinos) to add a second oscillator to each voice*.  I'd like to use the built-in power supply to power these additional units.  If my existing modifications are already causing this much additional heating, I'm thinking that it would be unsafe for me to draw even more power.  Thoughts?

(* Yes, I could use a single microcontroller to create all six new voices, but I want to do the six voices as wavetable oscillators where the sample rate changes to effect the desired pitch.  Since the sample rate will be driven by an internal timer interrupt, and since I don't want the 6 different timers conflicting with each other, I think that I need 6 separate microcontrollers.  That's a lot of additional power draw.)

Update: Here I compare the temperature to my de-modified Polysix.

Sunday, June 2, 2013

Polysix - Replacing a Push-Button


We all know that, given their age, most Korg Polysix's have problems.  Usually, the problems are related to the dreaded "leaking battery" problem.  My Polysix had that problem and I fixed it (I hope).  My Polysix, though, also had a problem with the push-buttons being very finicky.  I think that this is a common problem, too.  I've replaced many (but not all) of the switches when I first got the synth.  Recently, though, my "Arpeggio" button started acting up, so I decided to replace it.  For anyone who needs to replace any of their buttons, here's a picture tour of the process.  (By the way, the buttons on the Korg Mono/Poly are the same, so this applyies to Mono/Poly owners as well!)

I replaced the Arpeggio button and now it works great!
The general outline for replacing one of the push-buttons is:
  1. Open the synth
  2. De-solder the old button and the associated LED leads
  3. Un-fasten the button's PCB from the synth
  4. Remove the button cover
  5. Remove the button itself
  6. Solder in the new button
  7. Re-attach the button cover and solder the LED leads
  8. Re-attach the button's PCB to the synth
  9. Re-fasten the PCB and close the synth
So, here we go with pictures and description and tips:

(1) Open the Synth:  I don't have any pictures of this because it is pretty straight-forward.  Unscrew the four screws on the cover panel and unscrew the four (?) screws on the bottom of the synth that secure the bottom lip of the cover panel.  Once you've got the synth open, you've got to find the PCB holding your button.  Since I'm replacing the Arpeggio button, it was pretty easy for me...they labeled it!  Note that they spelled it "Arpeggo" (oops!), which amuses me.  But, since we're talking about labels on PCBs, why are the labels in English?  Wasn't this synth designed in Japan?  Why aren't the labels in Japanese?  I've never understood why there's so much English on circuit boards made throughout the world.  

Here's the back of the Arpeggio button.  De-solder all six solder points.
(2) De-Solder the Old Button and LED Leads:  To de-solder the button, you'll note that there are six solder points.  Four are for the legs of the push-button and two are for the LED that's built into the button cover.  You'll need to de-solder all six.  You can do this using solder wick and/or a solder pump.  I used the pump for the bulk of the work (see my earlier post for a bit more description) and I used the solder wick to wipe up (soak) up the little bit of solder that remained.

First, apply heat until the solder melts.
Use the solder pump to suck out the molten solder.
After a final touch-up with the solder wick, here's what it looked like. 
(3) Unscrew the PCB:  To get the button off the PCB, you'll need to detach the PCB from the synth so that you can get access to the top of the synth.  The PCB that holds the Arpeggio button has lots of screws.  You need to remove them all.  This particular PCB is also connected to two daughter PCBs.  You'll need to unscrew those as well.

There are lots of screws to remove on this PCB ad its daughter boards.
One of the daughter PCBs holds the potentiometer Arpeggiator Speed control.  To free the PCB from the synth, you need to remove the plastic knob...just work your finger tips under the lip of the knob and pull it off.  Then unscrew the nut that holds the potentiometer to the case.  Easy.

For this PCB, you also need to remove the knob and the nut on the potentiometer.
You'll notice that you've collected quite a few bits and pieces from your synth at this point.  You've got screws from the synth's case, you've got screws from the PCB(s), and you've got the knob and nut from the potentiometer.  Don't loose those bits!  I have a set of little bowls that I use anytime that I remove items from my synth.  If the bits go into the bowl, then I know where to find them when I go to re-assemble the synth.  Any bits that remain in the bowl when I'm  "done" are a reminder that I must have missed something.  The bowl is critical!

I keep all of my screws and knobs in a little bowl while I work.
And now the PCB is no longer secured.  This particular PCB requires a little twisting and sliding, but eventually it comes from from the panel.

The PCB is free!
(4) Remove the Button Cover:  These push-buttons are composed a two main parts: the button itself and a button cover [*see comment section at bottom].  The button itself is what we need to replace.  It lies under the button cover.  The button cover is the colored plastic piece that you actually touch with your finger.  The button cover also holds the red LED that lights up when you press the button.  The button cover is what we need to remove first.

The button cover is held on to the PCB once the legs of the LEDs are soldered to the board.  The button cover is also held on through friction with the button itself.  To free the button cover, I generally use my soldering iron on the bottom of the PCB to push the leds of the LED up into the board (the soldering iron also melts any residual solder that might be holding the LED legs).  At this point, I can generally wiggle or pry the button cover off the button.  Once you do one, you'll have more confidence when you do others.

The button cover has been removed from the button.  Notice the two legs of the LED sticking out of the button cover.
(5) Remove the Button:  The button itself is held to the PCB by its four legs.  The legs are both soldered in place and they have a certain bend in their shape that helps them grab the board.  You've already removed most of the solder, but there might be a little left in there.  So, I again take my soldering iron and, from the bottom of the board, try to push each leg back into the PCB.  I'm trying to push the button up off the board through pushing on its legs.  I also use my needle-nose pliers to try to pry under the button while I'm applying the heat.  Surely, there is a better way of doing this, but eventually I'm able to get the buttons off. 

Using a soldering iron and pliers, I eventually get the button off the PCB.
(6) Attach the New Button:  Before you solder the new button, you need to buy a new button.  Via a post by Anon on the Polysix Yahoo Group, I was pointed to some Omron 12mm x 12mm tactile switches that did the job.  From Mouser, I ordered some Omron B3F-4000 and some B3F-4005 -- the only difference between the two being the amount of force necessary to activate the switch.  Once installed in the synth, I couldn't really tell the difference between the two, so either is fine.  The B3F-4005 is shown in the picture below.

An Omrom B3F-4005 P
To mount the switch to the PCB, line of the legs of the button with the holes in the PCB.  At this point, I usually get out the soldering iron (again) and heat the hole from the underside so that I melt any solder that might still be in the hole.  I then push one of the button's legs part-way (or fully) into the hole.  I then repeat for the other legs.  Once all four legs are in the holes, I heat and solder from the bottom of the PCB like normal.

Lining up the legs of the button with the holes in the PCB.
Unfortunately, because I'm no expert at doing this, I damaged the PCB when I pushed the legs through the hole. As can be seen in the picture below, I leg pushed one of the solder rings off the PCB.  This is definitely the mark of an amateur.  Lucky for me, all four legs of the switch are soldered into the circuit when only two are really needed....which means that there is redundancy!   I can lose one of the connections (due to the lifted solder ring) and still have a good solid button.  Lucky for me!

I lifted up one of the solder rings.  Dang!
(7) Re-Attach the Button Cover:  Once the button is soldered in, we can now re-attach the button cover. First, I line up the button cover with the button, including the legs of the LED with the holes in the PCB.  I then push the legs of the LED through the PCB holes, usually with some heat from the soldering iron to melt any left-over solder that's in the hole.  Once the legs are through the hole, I make sure that the button cover is fully-seated around the button itself.  Then, on the bottom of the PCB, I solder the legs of the LED like usual.

Seating the Button Cover on the Button.
(8) Re-Fasten the PCB and Close the Synth:  The work with the button is now done.  To finish, simply, re-fasten the PCB to the inside of the synth (do you still have all the screws?) and close panel of the synth (do you still have those screws, too?).  Turn on the synth and enjoy your new button!

The Button Now Works Great!


Wednesday, May 8, 2013

Polysix - Bending Over the Capacitors

Dear Readers, I'm sorry.  Back when I described how I prepared my new keybed for installation into my Korg Polysix, I made it sound fairly straight-forward with no real hiccups.  Sure, at the end, I mentioned something about how a couple of capacitors might have been a little too tall, but this was actually quite a large understatement.  It turns out that those "too tall" capacitors required that I boost up the keybed even further than shown originally, which then prevented the Polysix's control panel from closing.  It was ugly and frustrating and disheartening.  Here's a description of how I fixed the problem.

Here Are the Offending Capacitors That Interfere with the Keybed
As you can see in the picture above, there are two groups of offending capacitors.  Both sets of caps happen to be on KLM-366.  The first group are the six tall Mylar caps (C31-C36) that are part of the "hold" circuits between IC29 and IC25.  The second group of interfering caps include the tall Mylar cap C23 and the stout electrolytic cap C22, both of which are part of the pitch-correction feedback circuit.  At first, I thought that the solution might be to replace all the caps with smaller ones (such as ceramics).  But after a brief exchange with the Polysix Yahoo Group, I considered alternate approaches.  With fresh eyes, it seemed like the best plan was to simply bend over the capacitors so that they weren't as tall.  Easy!

Could I Just Tip the Capacitors to the Side to Make Them Less Tall?
Unfortunately, the caps were mounted very close to the PCB and didn't have enough of their leads above the board to enable me to tip them over.  Since I just replaced an IC on this PCB, though, I have the synth all apart and, therefore, I have full access to the bottom side of KLM-366.  Looking closely, I saw that each cap had a little bit more of its legs sticking out below the PCB.  So, I got out my soldering iron, I applied some heat to the tips of the legs until the solder melted, and then I pushed until I couldn't see the tips of the legs anymore.  See the picture below.

Looking at the Underside of the PCB.  Making the Caps Taller By Pushing on the Tips of their Legs.
Once I did this, the first cap was now taller than it had been because of the extra bit of each leg that I pushed back above the PCB.  Now it was tall enough that I could tip it over with ease.

Bending Over Worked well for the First Cap.  Now for the rest...
After repeating the process for the remaining five capacitors, things are looking pretty good.  Now it's time for the other two caps.

The Six "Hold" Caps Are Done.  Now It's Time for C22 and C23.
The tall Mylar cap on the left side of the picture above was easy to address -- I simply did the same trick of re-heating the solder joint and pushing up the extra bit of each leg.  Then, I bent him over.  The electrolytic cap, though, was too stout (too fat) to push over.  Having a bunch of electrolytic caps on hand, I decided that it would be easier to just replace this guy with one that was skinnier and that had long enough legs to bend over.  So, I de-soldered the old one and soldered in the new one.  I bent it over and, as you can see below, everything is shorter than it was before.

All the Caps are Now Much Shorter Than Before.
With all of the steps complete, I put the keybed back into the synth.  Did it fit?  Well, the part of the keybed that was near the caps fit great.  That problem was solved.  But, with that part of the keybed sitting correctly, it now revealed that another part of the keybed was interfering with something within the case of the Polysix.  A little poking around showed that the long white bar of plastic that I added to my keybed wanted to sit right on top of the rail that holds the whole front side of the KLM-366 and KLM-367 boards.  That's an easy fix that I'll talk about later (just cut that darned plastic bar!).  For now, though, we can be content that this cap-bending job was the key.  It was the key to enabling the keybed to sit properly in the Polysix's case and for the lid to close properly and for the whole thing to be beautiful.  Ah...joy...

Sunday, May 5, 2013

Killing and Reviving my Polysix (Replacing a Dead IC)

So far, I've been pretty successfull with hacking aftertouch, portamento, and detuning into my Korg Polysix .  My next big goal is the addition of velocity sensitivity, which requires me to better understand the VCF control circuitry on KLM-366.  Well, in probing the clock signals for the VCF multiplexing, I killed my Polysix!  This is the story of how I brought her back to the land of the living.

Probing IC12 on KLM-366.  I think that I've found the problem.
How Did I Kill It?  This all started when I was probing around the part of the KLM-366 board that processes the VCF EG signal for each voice.  Specifically, I was exploring the time-division multiplexing of the VCF EG through IC24 and IC23 .  This multiplexing is all kept in sync via clock signals "A", "B", "C", and "INH" that are generated from IC11 and IC12 (schematic below).  In probing IC12, I accidentally shorted one of the pins on IC12 (likely pin 11), which apparently killed it.  As you can see in the pictures above, the "B" signal is clearly bad (it is supposed to be a square wave pulse).


How Do I Fix It?  Replacing IC12 seemed like the only reasonable answer.  The chip itself is really cheap (68 cents).  The hardest part in replacing the IC is disassembling the synth so that I can get good access to the circuit board.  I don't like taking it apart because it gives me too many opportunities to loose screws and to re-connect connectors in the wrong place and stupid stuff like that.  But, in this case, I think that it needs to be done.

Shopping List:  The only part that I really needed was a replacement 14024 chip.  Like usual, I got it from Digikey.  The specific part that I bought was MC14024BCPGOS-ND.  I chose this part because (I think) it is the only through-hole version of the 14024 that they sell.  At 68 cents, I bought 2, just in case I damaged one during my installation.  Also, following the advice from The Old Crow, I decided to install an IC socket at IC12 in order to ease any future replacement of this chip. There are tons of choices for sockets.  Never buy the cheapest ones.  I liked the look of A32869-ND.  Even though it was only 78 cents, it seemed to be one of the higher end models.  Cool.

Removing the Dead IC.  The replacement process starts by removing the dead chip.  Some helpful folks at my workplace suggested that removing an IC is best done by first snipping off each of its legs so that the body of the IC just falls free of the PCB.  Then, as long as you snipped the legs high enough away from the board, there's plenty of leg left to grab with your pliers so that you can apply a little heat and lift each leg out one-by-one.  Pretty easy.

Snip Each Leg of the IC
All Legs Are Snipped, The Body is Loose, and the Legs are Still in the PCB.
Removing Each Leg from the PCB.
Removing the Old Solder:  Even after removing the IC's legs, there was lots of old solder that is plugging the holes in the PCB.  In order to get the new IC socket into all those holes, it's usually best to remove that old solder.  There are a few ways that you can do this -- solder wick and a solder pump being the two most common.  Clearing plugged through-holes is a perfect task for a solder pump.  With a solder pump, you first apply your soldering iron to the hole until the solder melts.  Then, you quickly put the spring-loaded solder pump over the hole and, while the solder is still melted, you hit the release button.  BANG!  The pump pops open and (hopefully) sucks out the liquid solder.  Because I'm new to this, I usually had to try 3-4 times before I got the solder out.  As you can see below, the holes looked fairly clear when I was done.

Using a solder pump to suck out the solder from the holes.
The holes are now fairly clean and ready for the new IC (or socket).
Installing the IC Socket:  At this point, I was able to insert my new IC socket into the holes in the PCB (see below).  It fit pretty nicely.  Now I just needed to solder it in.  Unfortunately, one really needs access to the bottom of the PCB to do this, which means the synth needs to be partly disassembled.  So, I removed the keybed, I removed the rail holding down the PCBs, and I unscrewed all the screws holding down the PCB.  I then removed a few (but not all!) of the multi-pin connectors so that I could tip up the PCB and get access to the bottom (see pic below...the power drill is holding the PCB upright).   Once I was able to access the bottom of the PCB, I was soldered the legs of the IC socket to the PCB.  We're cooking right along now!  Smell the solder!

Inserting the IC Socket.  It fits!
Getting access to the bottom of the PCB.
Soldering the legs of the IC Socket.  Heat the site and THEN apply the solder.
Finishing Up:  Once the socket was soldered in, I layed the PCB back down and I inserted the replacement 14024 IC into the new socket (see pic below).  I then re-attached all the connectors that I had undone, I double checked that I re-connected everything correctly, and I turned on the power.  With the oscilloscope, I checked the "A", "B", and "C" clock signals being generated by the new 14024 (see pic below).  Everything seems to work!

The replacement 14024 IC is nestled into its new home on my KLM-366.
After Replacing IC12, the clock signals all look good.
Oh, The Joy:  With the circuit looking like it's working again, I re-attached the keybed, closed the lid, and fired her up.  Here's my little jam of joy...the playing is crappy, but it's so good to hear her voice again.


Next Step: Tipping over the capacitors so that the keybed fits properly