PCB Milling with the MakerBot CupCake (Almost)

March 6th, 2011 by Keith Neufeld

I crave a CNC mill for trace-isolation milling prototype PC boards and I haven’t managed to get my CupCake filament deposition machine calibrated so I can use it. (Build platform leveling and filament feed are my current showstoppers. I’ll get back to it.)

I knew that someone had proposed mounting a Dremel in place of the CupCake’s extruder and that MaskedRetriever had modeled a mounting bracket; but curiously, I haven’t heard any more about using the CupCake for milling. Surely someone has done it; I just haven’t run across it.

Last night while I was asleep, the facts and the immediacy of the situation came together: EAGLE can output trace-isolation g-code and ReplicatorG reads g-code and drives the CupCake. Really??? PCB trace-isolation milling is that simple???

Yes. Yes it is.

Circuit board layout drawn with pen in MakerBot CupCake

Read the rest of this entry »

Hammond XB-2 Drawbar Decoding Diagnosis and Repair

March 5th, 2011 by Keith Neufeld

A couple of weekends ago I took the two XB-2s that I had (at the time) over to Ron’s shop to have a little more room to spread out and test things. Like real Hammond tonewheel organs, the XB-2 has “drawbars” that represent different harmonics (or subharmonics) of the fundamental frequency of each key being pressed; you draw out the bars to mix different amounts of the different harmonics to get the timbre you want. This is additive synthesis at its most visceral.

Hammond XB-2 drawbars

On the XB-2, the drawbar positions (either live or recalled from memory) are displayed on an LCD below the manual (keyboard). In live mode, the bar graphs move in and out in synchrony with the physical drawbars.

Hammond XB-2 drawbar display

On one of the two XB-2s, the LCD bar graphs didn’t match the drawbars — a couple of drawbars appeared to work properly, but some didn’t work at all and others moved multiple bar graphs on the display. Since the drawbar decoding is a relatively independent section of the organ, it seemed like an easy repair to tackle first.

Hammond XB-2 drawbar schematic

The drawbar’s wiring harness plugs into the main board on J121, at the left of this section from the service manual. Each drawbar is a detented slide potentiometer, so variable voltages are arriving on J121. The section enclosed in the dotted line and marked not used truly isn’t populated on the circuit board, so I omit it from discussion.

The nine analog drawbar voltages are delivered to IC23 and IC24 (TC4051 analog multiplexers). The multiplexers receive their enable and select signals from the output of IC29 (74HC174 hex D flip-flop) which is latching signals previously delivered from the system data bus. (In other words, the 74HC174 is the drawbar select register; its own address is decoded elsewhere in the schematic.)

The chosen (enabled) TC4051 analog mux selects which input to pass to its output on pin 3, which is then op-amp buffered and delivered to the input pin of IC25 (BA9101 analog-digital converter). When selected (more system address bus decoding), the ADC writes the digital value of the drawbar’s position onto the system data bus.

Side note: For the drawbars only having nine detents (0-8), IC25 sure delivers a lot of bits of ADC resolution to the data bus.

I put a scope on IC23 (analog mux)’s output pin and I was able to view on the screen the time-division multiplexing of the drawbar positions (analog voltages) onto the single line going to the ADC. It mostly matched what I saw on the LCD, although there were some quirks with a few of the drawbar time divisions appearing narrower than others. Ignoring the odd widths and recording which drawbar occupied which time division:

Drawbar Time-Division Multiplexing Behavior
Drawbar 16 8 4 2 1 5 1/3 2 2/3 1 1/3 1 3/5
IC23 Pin 13 14 15 12 1 5 2 4 (IC24)
IC23 Input Good MB 0
(000)
1
(001)
2
(010)
3
(011)
4
(100)
5
(101)
6
(110)
7
(111)
(IC24)
Bad MB 0
(000)
1
(001)
7
(111)
7
(111)
0
(000)
1
(001)
7
(111)
7
(111)
(IC24)

On the working XB-2 motherboard, the drawbars were selected and sampled in numerical order. On the broken motherboard, as you can see, any time the analog mux’s select bit A1 was enabled, the mux behaved as though bits A2 and A0 were enabled as well. Further, select bit A2 didn’t work on command as it should when drawbars 4-7 should have been chosen.

4051 Address Pins
Name C B A
Function A2 A1 A0
Pin 9 10 11

It could be a bad 4051 mux; but as we had already replaced a leaky electrolytic capacitor in the neighborhood, it seemed worth another look at the circuit board first. The 4051′s select lines are on pins 9-11, and what’s this?!

Hammond XB-2 main board, drawbar section

I became suspicious of a damaged via on a trace that turned out to connect to pin 9 (A2). A continuity test showed that the via — even its top side — was no longer connected to IC23; the trace up to the via had been eaten away by the leaking capacitor. The via — even its top side — did have continuity to its next stop on the PCB, so the via itself was intact.

Ron heated the solder that had wicked into the via during reflow, inserted a piece of wire-wrap wire, and soldered the other end directly to IC23 pin 9. The drawbars now work perfectly. I suspect the floating select input on the CMOS mux was picking up enough signal from the PCB trace inductively coupled to its neighbor to trigger.

My hypothesis is that the previous owner put the keyboard away because of larger (ROM / CPU / Muse) problems; the capacitor leaked and damaged the drawbar multiplexer trace while it was sitting idle; and the owner never even knew about the drawbar problem. At any rate, it was easily fixed and the troubleshooting was a rewarding mental exercise.

Hammond XB-2 ROMs?

February 12th, 2011 by Keith Neufeld

I have two secondhand Hammond XB-2 Hammond clones (c’mon, even if it had made by Hammond proper before being bought by Suzuki, a solid-state, digital audio synthesis keyboard is still a clone) which both appear to have bit rot in their firmware EPROMs, apparently a common problem with these keyboards.

I’d be extremely grateful for pointers to where I could get new EPROMs or download images to burn myself, or to another XB-2 owner willing to read out their EPROMs to assist. Heck, I’ll burn you another copy so you have a fresher set when yours bit-rot.

They’re IC16 and IC17 and they’re 27256es.

Monitoring Battery Voltage

February 12th, 2011 by Keith Neufeld

Battery and voltage regulator schematic

Hey, real EE types out there, is there any reason I can’t monitor 12V battery voltage using a simple voltage divider into an A/D input of a microcontroller that’s powered by a voltage regulator on that same battery?

This seems straightforward, but I ask because there seem to be a lot of fancy circuits and devices out there for monitoring supply voltage. It seems to me they all revolve around monitoring the device’s own VCC and where to get a reliable AREF when you don’t trust your own supply.

In the case of monitoring a battery voltage that will always be much higher than the dropout of the voltage regulator powering the microcontroller which generates its own AREF, I can’t think of any reason to get fancier than this.

I would Just Do It but I don’t have a good test setup for this and I’m getting ready to commit it to a board layout.

Water and Electronics

February 11th, 2011 by Keith Neufeld

Three days after we upgrade an ancient switch in the campus golf course headquarters, a supply pipe breaks overhead and pours water into our new switch. It’s “environmentally hardened,” but that doesn’t seem to cover immersion.

As a state university, we’re self-insured and there’s no way we’re getting a T&M refurb from the vendor on water damage, no matter how generous they may be. So I’m getting nothing for this dead switch and I may as well see whether there’s any hope of cleaning it.

Cisco 2940 switch interior after water damage

Oh. Nope, not really.

Read the rest of this entry »

Temperature Deviation Alarm Board for PID Crockpot Controller

February 11th, 2011 by Keith Neufeld

After assembling my PID crockpot controller, I successfully cooked a couple of medium KC strips at 60°C. When I tried to cook medium-rare at 55°C, though, I kept finding the temperature at 59°C. Not believing that I’m destined to eat medium steaks for the rest of my life, I want to fix this.

My first guess about what’s happening is that the crockpot is well-enough insulated that the controller’s longest delay for how often it turns on the heat is still too short. If so, I may get better control using the crockpot on its (dumb) low heat setting, which could be activated more frequently without driving the temperature as high.

PID crockpot controller with temperature deviation alarm LEDs

Regardless, if I can’t trust the controller to control, I need a monitor external to the controller to let me know when the temperature has gone out of range so I know I don’t yet have a satisfactory system. Although the immediate problem was overheating, I should also like to know about undertemperature problems as well. Happily, the controller has temperature deviation alarms; but less happily, they are momentary and only show when the temperature is currently out of range. Enter the alarm latch.

Read the rest of this entry »

Cleaned It. What Now?

January 28th, 2011 by Keith Neufeld

Rotary crank telephone, dirty

People bring me the most wonderful things!

Rotary crank telephone, cleaned

Anyone have a favorite plastic polish?

Old telephone handset

I suppose I should build a VoIP phone system and get an analog terminal adapter, eh?

Does Used Tinnit Ever Work?

January 21st, 2011 by Keith Neufeld

The board being too long for my Pyrex dish and the overlap in the middle notwithstanding, this dull, mottled finish is typical of what I get every time I use TInnit other than the day I mix it.

PC board after tinning in used Tinnit

The precipitate never re-dissolves; and I’m guessing that the salts sitting directly on the board are what cause the mottling.

I find this curious, as I mixed this batch only two weeks ago, when it worked noticeably better than this … although now that I mention it, I think even then it produced duller results than it has in the past. Perhaps I exceeded the shelf life of the unopened package, so perhaps I’m being unduly hard on the Tinnit; but I’ve had the same problem before.

PC board after tinning in Tinnit and wet-sanding

I’ve been having good luck lately with scouring pads to shine up the boards; but tonight I had to resort to wet-sanding. Turned out fairly well.

No, that’s not how I typically lay out circuit boards.

Yes, I’ll be posting a lot more about what I’ve been doing for the last month as soon as Steve and I get his sculpture delivered to the gallery before 17:00 tomorrow.

Low-Temperature-Cooked-Eggs in a PID-Controlled Crockpot

December 14th, 2010 by Keith Neufeld

The web is ablaze with projects for sous-vide (vacuum-sealed) and low-temperature / long-duration cooking. For those not familiar, the basic idea is that if a perfectly-cooked medium-rare steak is 120°F / 49°C in the center, by cooking traditionally on a grill, you overcook it everywhere but the center. Instead of cooking at a higher temperature and waiting exactly the right amount of time for the inside to warm up to the desired temperature, cook the entire piece in a water bath at the desired final temperature for a long time, then sear the outside to make it extra yummy.

PID-controlled crockpot cooking two eggs

My project this weekend, rolling around in my head for way too long and finally kicked into motion by EMSL’s omelette-in-the-shell post, is nothing new nor revolutionary; it’s merely mine. Like many others before me, I plugged a crockpot into a PID controller to turn the crockpot’s heating element on and off and maintain its temperature precisely over a long period of time.

Read the rest of this entry »

Thomas Jefferson on Open-Source

December 8th, 2010 by Keith Neufeld

Why have I never before seen this quote, cited (as I find on Google) by a wide variety of highly reputed maker-friendly organizations?

He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.

Found in an interview with Sanjoy Mahajan, author of Street-Fighting Mathematics: The Art of Educated Guessing and Opportunistic Problem Solving, on the Freakonomics blog.