Posts

Ham Radio Mobile Install

Preamble

I am a simple girl. I like little cars. I like sporty cars. I like putting my foot down and zoomy happening. I also happen to like mobile radio operation. This poses a number of packaging challenges; for some reason, no one is building small, sporty cars with ham radio operation in mind.

About a month ago, I totaled my car. RIP Matilda; she died valiantly protecting us, and rides on to Valhalla. Matilda was a 204 Mazda3 s Grand Touring with the tech package, and around 136,000 miles. (HATCH LYFE)

Matilda, with bonus appearance of the trailer for my boat, Aly Kat. Note the HV-7A antenna on a K400S mount on the hatch.

Matilda, with bonus appearance of the trailer for my boat, Aly Kat. Note the HV-7A antenna on a K400S mount on the hatch.

Matilda, on her final journey to Valhalla. Note the ATAS-120A on the same lip mount.

Matilda, on her final journey to Valhalla. Note the ATAS-120A on the same lip mount.

So I figured that, with my new car Minerva (a 2019 Mazda3 Sport hatch, with around 1200 miles), I would take the opportunity to ditch the mildly-inconvenient Diamond K400S hatch mount I was using for my Diamond HV-7A antenna (and recently my Yaesu ATAS-120A antenna), and put two brand-new Breedlove 195 SO239 ball mounts onto the car.

New car, Minerva. Note there are no antennae yet.

New car, Minerva. Note there are no antennae yet.

But of course I also like my cars to be clean and functional inside, so I needed to spend a lot more time than I did on Matilda with the radio install now that I have two mobile units. Also, I wanted big plates on the mounts so I did not can-opener the body steel…

Power

First and foremost, I needed a lot of power. The Yaesu FT-8900R daily rig draws up to 15A full-bore, and the Yaesu FT-857D all-band/all-modes rig draws 22A full-bore. In addition, I want to run my trailer light harness (LED lights on the car means I need a transistor box and a battery feed to run the trailer), and since Mazda for some unknown reason has something against accessory ports (seriously there is one gorramed port in the whole car), a 20A drop on PowerPole in the trunk is a good idea.

I had wired Matilda with some specialty AWG8 that was scrap from work, but I was not able to salvage much of that from her and plus I am under quarantine. However, I had a little left on the spool of AWG6 THHN from running a 50A 240VAC run to my garage. Score!

The remains of a spool of AWG6 THHN from Anixter, I used for a 50A 240VAC run to my garage.

The remains of a spool of AWG6 THHN from Anixter, I used for a 50A 240VAC run to my garage.

I bought some lugs and a crimper from Amazon to suit my sub-panel and the distribution block on the battery (Mazda is super helpful here!). The distribution block has several M6 studs with built-in high-current fuses. The panel and the wire are rated for around 80A in this use case, and conveniently there is an 80A fuse spare.

Battery with distribution block. The two bottom-most studs are both spare and fused at 80A.

Battery with distribution block. The two bottom-most studs are both spare and fused at 80A.

With any project like this, getting through the firewall in a safe, clean, and watertight way is a challenge. I used a gasketed cable gland through a conveniently blank spot. I say convenient…I did have to remove the air filter box, the battery, the ECM, the battery tray, and much of the ECM harness to access the area from the engine bay, and had to slice through the carpet and soundproofing mat in the cab. But it went well and now I have a watertight penetration.

View of gland and cable inside cab. This is directly behind the instrument panel cluster.

View of gland and cable inside cab. This is directly behind the instrument panel cluster.

View of gland and cable in engine bay. This is directly behind the battery and ECM.

View of gland and cable in engine bay. This is directly behind the battery and ECM.

In the driver’s side rear quarterpanel, I lucked out. There is a wide-open area with a horizontal frame member forming a shelf, with plenty of space for my sub-panel and FT-8900R. I did have to relocate the “ELECTRICAL SUPPLY MODULE” off its bracket and forward, under the rear seatbelt reel, but I am confident this is OK.

Driver's side of hatch, with the LED for the cargo area. Behind this carpet is an astonishingly large free space...and soon a subpanel and radio...

Driver’s side of hatch, with the LED for the cargo area. Behind this carpet is an astonishingly large free space…and soon a subpanel and radio…

Driver's side rear quarterpanel. The right-most black box is the OEM "ELECTRICAL SUPPLY MODULE", relocated under the seatbelt reel. The subpanel is a cheap unit found at O'Reilly or similar.

Driver’s side rear quarterpanel. The right-most black box is the OEM “ELECTRICAL SUPPLY MODULE”, relocated under the seatbelt reel. The subpanel is a cheap unit found at O’Reilly or similar.

Once the engine bay was reassembled, the feed was labeled and landed on the stud.

Engine bay, reassembled, with AWG6 feed to subpanel labeled and landed on 80A stud.

Engine bay, reassembled, with AWG6 feed to subpanel labeled and landed on 80A stud.

FT-8900R Installation

Now that I had power, I wanted to install my FT-8900R. This is an FM-only quad-band (70cm, 2m, 6m, 10m) dual-VFO/dual-receiver radio that is excellent at repeater work in the local area, matched with the HV-7A antenna.

The FT-8900R is a ridiculously compact radio, and gets even smaller with the head detached on the separation kit. With the mobile mounting bracket, the whole radio fits flush behind the carpeting on the diagonal frame rail over the shelf. Three #8×1/2″ sheet metal screws hold the bracket in place.

FT-8900R mounted on diagonal frame rail over shelf and subpanel. White flying connector is for cargo area LED; flying PowerPole is 20A auxiliary for cargo area. Ziptied PowerPole over OEM module is feed for FT-857D on the other side of the car; the one under the FT-8900R is for that radio.

FT-8900R mounted on diagonal frame rail over shelf and subpanel. White flying connector is for cargo area LED; flying PowerPole is 20A auxiliary for cargo area. Ziptied PowerPole over OEM module is feed for FT-857D on the other side of the car; the one under the FT-8900R is for that radio.

I eyeballed the placement of the Breedlove mount so the ball was centered between the fuel door and the combo light, then marked out the holes. Pucker factor 100% drilling holes in brand-new body panels. A quick deburr inside and out, and it was time to pull the panels together…whereupon I had an issue. The inside frame members were too close to the outside panels for me to reach the holes. Fortunately, I also really like rope (get your minds out of the gutter; I am a sailor and taught Pioneering merit badge for years through my BSA career). I threaded some light line through the holes and grabbed it inside the car, then tied it through the backing plate with a slipknot. Careful feeding of plate and knot into the interstitial space and I could pull the whole plate flush and aligned with the outer holes.

A clever fishing expedition, pulling the backing plate of the Breedlove mount against the inside of the body panel so I can get the two plates aligned with each other and the body panel.

A clever fishing expedition, pulling the backing plate of the Breedlove mount against the inside of the body panel so I can get the two plates aligned with each other and the body panel.

Fishing the LMR-240 through the ball and inner shaft, into the cargo area.

Fishing the LMR-240 through the ball and inner shaft, into the cargo area.

All that time in the Scouts really paid off; a traditional whipping bites well enough on the coax to act as a non-damaging pull.

All that time in the Scouts really paid off; a traditional whipping bites well enough on the coax to act as a non-damaging pull.

Completed mount with HV-7A standing proud and plumb.

Completed mount with HV-7A standing proud and plumb.

Completed installation, with coax labeled and terminated. The  backing plate for the mount is approximately behind the triangular gap formed by the FT-8900R and the OEM module. All access was through a narrow slit aft of the inner frame member, shown with a large knockout and the Breedlove grounding wire.

Completed installation, with coax labeled and terminated. The backing plate for the mount is approximately behind the triangular gap formed by the FT-8900R and the OEM module. All access was through a narrow slit aft of the inner frame member, shown with a large knockout and the Breedlove grounding wire.

With everything installed and confirmed working, I ran the separation cable into the passenger area, a programming cable extension into the cargo area, and an external speaker cable into the cargo area, and buttoned everything up.

Driver's side rear quarterpanel, now with radio and subpanel installed. Note the 20A PowerPole drop tucked under the cargo area LED, and the 1-2 switch for external speaker (soon to be replaced with an actual mixer). Not shown (because framing!) programming cable extension.

Driver’s side rear quarterpanel, now with radio and subpanel installed. Note the 20A PowerPole drop tucked under the cargo area LED, and the 1-2 switch for external speaker (soon to be replaced with an actual mixer). Not shown (because framing!) programming cable extension.

FT-857D

Next up, the FT-857D. This is an all-band (something like 1MHz through 700MHz) all-mode (AM, FM, upper sideband, lower sideband, packet and digital modes) dual-VFO/single-receiver radio that is excellent at longer-range things and packet digital work, matched with the motorized tunable ATAS-120A antenna.

The FT-857D is nowhere near as compact as the FT-8900R, even with the separation kit. With the mobile mounting bracket, the radio does bow out the carpeting when mounted horizontally on the shelf inside the passenger side rear quarterpanel. Two #8-32 bolts and Nylock nuts hold the bracket in place.

Passenger side rear quarterpanel has a similar shelf arrangement as the driver's side, but no OEM module to deal with.

Passenger side rear quarterpanel has a similar shelf arrangement as the driver’s side, but no OEM module to deal with.

FT-857D mounted, with bonus appearance of soundproofing plug for interstitial space.

FT-857D mounted, with bonus appearance of soundproofing plug for interstitial space.

Mounting the antenna was much the same as for the FT-8900R, but I actually measured the mount position so it matched.

Five mounting holes for the Breedlove mount. The central one is 5/8" and accepts the brass inner shaft for the cable; the outer ones are 11/32" for the mounting bolts.

Five mounting holes for the Breedlove mount. The central one is 5/8″ and accepts the brass inner shaft for the cable; the outer ones are 11/32″ for the mounting bolts.

ATAS-120A mounted proud and plumb

ATAS-120A mounted proud and plumb

When everything was tested, I could not get any reception on KEC63 (this station broadcasts from the National Weather Service in White Lake on a frequency of 165.55MHz...). Which, you know, bad.

So I cut the connector off and redid it. Everything good the second round; I think I got some of the braid into the center conductor the first time around.

In-process round two of PL-259 connector for the ATAS-120A.

In-process round two of PL-259 connector for the ATAS-120A.

Completed (and working!) PL-259 connector.

Completed (and working!) PL-259 connector.

Once everything tested out OK I mounted the CF-706 duplexer, ran the separation cables into the passenger area and an external speaker cable into the cargo area, and buttoned everything up. (No programming cable extension yet; it is in the mail still, along with a Bluetooth adapter from KC8UFV).

Completed installation. Note how little space behind the radio there is for cabling. Also note the CF-706 duplexer mounted above the radio on the diagonal frame rail.

Completed installation. Note how little space behind the radio there is for cabling. Also note the CF-706 duplexer mounted above the radio on the diagonal frame rail.

Just the barest hint of a curve in the vent panel over the FT-857D. Otherwise, buttoned up just fine.

Just the barest hint of a curve in the vent panel over the FT-857D. Otherwise, buttoned up just fine.

Interfaces

Inside the passenger area, it was time to figure out where the heck I was going to put two microphones and two heads. In Matilda, I had the FT-8900R head mounted under the dashboard near the door knee panel, and that worked well. It fit right over the hood release lever and below the random little storage compartment Mazda bequeathed the 2019 with.

FT-8900R head shown under dashboard, just above the hood release lever.

FT-8900R head shown under dashboard, just above the hood release lever.

The cabling for that and the microphone for the FT-857D were pulled through the driver’s side door sills and up behind the inside OEM fuse panel. The FT-857D mic is the lesser-used one and got a clip on the left side of the steering wheel; the FT-8900R is the daily radio and got a clip on the right side next to the pushbutton start.

Overhead shot showing both mics nestled around the steering column.

Overhead shot showing both mics nestled around the steering column.

FT-8900R mic on right side of steering column, next to pushbutton ignition.

FT-8900R mic on right side of steering column, next to pushbutton ignition.

FT-857D mic on left side of steering column.

FT-857D mic on left side of steering column.

Now, where to put the FT-857D head? On Matilda, I mounted it front and center on the dash, just under the infotainment screen and vents. However, Minerva’s dash is laid out differently, the cupholders are up there in the way, and absolutely everything is covered in leather that I am loathe to drill holes in.

So I put the head in the much-expanded center console storage area. Some DualLock holds it to the wall, it is set low enough the console cover slides over cleanly, and just a little plastic notching and the cable runs cleanly under the trim panel, down the side of the console, and under the carpet under the driver’s seat to the door sills, where it joins its sister cabling back to the rear quarterpanels.

FT-857D head mounting inside center console storage bin. Note the one and only accessory port in the car, and the cable neatly going under the trim panel...

FT-857D head mounting inside center console storage bin. Note the one and only accessory port in the car, and the cable neatly going under the trim panel…

...which then runs down under the panel to the floor, to go under the driver's seat...

…which then runs down under the panel to the floor, to go under the driver’s seat…

...and under the carpet under the seat to the door sill, where it heads back to the rear quarterpanels.

…and under the carpet under the seat to the door sill, where it heads back to the rear quarterpanels.

Speaker

With the radios hidden behind much of the soundproofing in the rear of the car, they really need an external speaker. On Matilda, I had this “hidden” behind the infotainment screen. However, again, Minerva’s dash is all leather and laid out differently, so that option is just bad.

However, there is kind of a useless open storage area under the HVAC controls, forward of the cupholders. Some (OK, a lot) disassembly of the center console later, and I had the whole cupholder/storage/valence module out. A few holes drilled into the valence for the bracket, and another careful cable notch in the edge, and the whole thing reassembled into place. The cable runs through the console to meet up with the FT-857D head separation cable, and then back to the rear quarterpanels to meet the 1-2 switch (and eventually the mixer).

Center console with some disassembly.

Center console with some disassembly.

Bracket mounted on valence.

Bracket mounted on valence.

Cupholder module assembled with speaker installed.

Cupholder module assembled with speaker installed.

Cupholder reinstalled, working the valence with speaker into place.

Cupholder reinstalled, working the valence with speaker into place.

Everything back into place, now to reassemble the console.

Everything back into place, now to reassemble the console.

Everything complete, cupholder door closed.

Everything complete, cupholder door closed.

And yes, of course the door opens and there is plenty of space for drinks.

And yes, of course the door opens and there is plenty of space for drinks.

Remaining Tasks

No project is ever finished. Next up for this one:

  1. Pack the mounts with dielectric waterproof grease (I do not trust some of the metal-on-metal seals in the mounts and I like automatic car washes)
  2. Find an SWR meter and retune the HV-7A for its new situation
  3. Install the mixer in place of the 1-2 switch
  4. Install the programming cable extension and Bluetooth adapter for the FT-857D
  5. Install the connector caps for car washes
Cargo area fully buttoned up, showing both antennae.

Cargo area fully buttoned up, showing both antennae.

KE8HOJ mobile, 73 and clear!

The Vending Machine Saga, Part 1

Preamble

So, we have an old Snapple-badged Dixie-Narco/ECC glass-front vending machine, which one of our members bought for a song a few years ago. It was heavily discounted because the compressor was dead and the mainboard was pretty much dead. But it has 54 slots for drinks and is way more volumetrically efficient to store lots of drinks than the white fridge we had been using for the purpose, so we have basically just been using it as a high-capacity fridge (after we replaced the compressor you see).

Dixie-Narco/ECC DN2145 / ECC2100 Glass-front drop soda machine

Dixie-Narco/ECC DN2145 / ECC2100 Glass-front drop soda machine

However. The mechanics all work. And every piece of hardware in it is super easy to talk to (with two exceptions but I will get to that). And I have been itching for another embedded design project for a long while now because, while I love my job, it makes use of almost none of the parts of my degree that I really enjoyed in college.

So. Enter the Dixie-Narco Soda Machine project, to replace the dead controller with a modular open-source one designed around modern hardware.

Roadmap

Every project has to start somewhere, and a great place to have started this one would have been a roadmap of tasks. Below is that roadmap, had we actually done one. ?

  1. Minimum Viable Product
    1. Drive all 54 slots to dispense product
    2. Fault-tolerance using the existing vend-confirm sensor
    3. Talk enough MDB to work with the new coinmech and bill recirculator, to accept money and return change
    4. Drive a display on the unit
    5. Read the keypad on the unit
    6. Monitor system temperature
    7. Maybe take over compressor control from the bimetal thermostat which is a little wonky
    8. Monitor the existing door switch
    9. Local database
      1. inventory
      2. product information
      3. pricing
  2. Gen2
    1. Add barcode reader to system for inventory add/remove
    2. EAN/UCC-13 information integration (probably UPC Database)
    3. Inventory reporting/control website
    4. Transaction history
  3. Drink Your Dues Away
    1. RFID reader on machine for 125kHz member keyfobs
    2. Tie into the new CRM for account information for cashless vending
    3. Can we should we accept dues payments through bill recirculatory?
  4. The Bleeps and the Bloops
    1. MQTT interface
      1. Telemetry
        1. Temperature/humidity
        2. Compressor status
        3. Vend activity
        4. Door switch activity
      2. Control – Remote vend????
      3. Integration – Existing Tasmota RGB(W) LED controller for machine lighting
    2. Slack bot
      1. Inventory query
      2. Inventory alerts
      3. Vend activity
      4. Door switch activity
      5. Remote vend????
    3. Mailing list
      1. Inventory alerts

Reverse-Engineering

In order to come up with a better controller, we had to reverse-engineer the machine’s hardware.

Vending Slots

There are 54 slots in the machine, each with an escapement actuated by a 24VDC ~5A (that becomes important later) spring-return solenoid. The slots are arranged in 6 modular, removable rows of 9 columns each. The solenoids are pinned out to a 10-position Molex 2695KK connector with a common line and 9 control lines.

The original machine board controlled these with a 6 by 9 BJT matrix, which for non-obvious reasons had a whopping 108 PTH diodes. We were stumped by this, as 54 makes sense as flyback suppression, but the other 54 were not routed as flyback diodes and it was not clear as to what they were for.

Old controller of Dixie-Narco vending machine

Old controller of Dixie-Narco vending machine

Display

Old Display

The machine’s original display is 8 red LED starburst (14-segment with decimal points) digits, run by an OKI (MS)C1937-01 14/16-segment 16-digit LED driver. This unit uses a 3M C-GRID 2×13 connector.

However, as much as everyone seems to really have the feels for the nineties, I just could not bring myself to develop a display driver for the SPI controller…and end up with a starburst display. No further work was done on this display, and it was handed off to the electronics lab as a salvageable component for someone else’s project.

New Display

I figured as long as I was going to be putting in effort developing display code, I may as well end up with something more useful and modern. As it turns out, the NHD-3.12-25664UCB2 from Newhaven Display pretty much fit that ticket. With an SSD1322 driver running a 256×64 pixel blue OLED array, I can make a more modern, information-rich output. Also as it turns out, there is an open-source Python module (luma.oled) that can drive it (go figure!). This display requires 20 pins to drive, but most of those are static mode bits and do not need to be driven actively.

Keypad

This is a simple 6 x 3 membrane matrix, on a 10-position Molex 2695KK connector. Pin 7 is unconnected. The pad has digits 0-9, letters A-F, a star (*) and a CLR button.

Vend-Confirm Sensor

This appears to be an off-the-shelf industrial-style retroreflective beam-break sensor, which spans the entire landing area for drinks. It uses a 12-position Molex 2695KK connector. Pins 2-4, 6-8, and 10-12 were unpopulated.

Because I had no intention to waste board space on 9 unused pins, we repinned this connector to a 3-position Molex 2695KK connector, salvaged from the door switch.

Door Switch

This is a simple plunger-style switch, on a 3-position Molex 2695KK connector. Pin 1 is unpopulated. The switch is open when the door is.

Because I needed a 3-position header for the vend-confirm sensor, we repinned this connector to a 2-position Molex 2695KK connector, salvaged from a random fan.

Temperature Sensor

Old Sensor

Labeled CR0023212-0.2-163400024, this is supposedly a SPI-connected temperature probe. However, no response could be elicited from it. It uses a 6-position Molex 2695KK connector, with pin 6 unpopulated.

Old temperature sensor in condenser fins

Old temperature sensor in condenser fins

New Sensor

New temperature sensor is an AM2302, serial number 15120F902. It uses a 3-position JST-XHP connector. As a bonus, we get humidity monitoring with this sensor too.

Compressor

To take control of the compressor, two things need to happen:

  1. The controller needs to short out the bimetal thermostat (NO relay in parallel with thermostat)
  2. 2. The controller needs to be able to interrupt the ~5A @ 120VAC current to the compressor (NC relay in series with compressor)

In addition, since this is an untrustworthy system (because it is under development), the control needs to revert easily back to the bimetal strip. Thus, all of the control needs to be on the actively-driven side of the respective relays. A common off the shelf 4-channel relay board will be used to run the compressor, giving us a couple spare points for…whatever comes up.

Cash Handling

Bill Acceptor

There was no bill acceptor with the unit. Len bought the original part number, but we had issues getting it working and then the original mainboard died.

Rather than replace it again, we bought a bill recirculator, since long-term, we are thinking about allowing the purchase of more-expensive things, like dues or Arduinos, and giving change back in quarters is no-one’s idea of a fun time (Jackpot!). The new recirculator is a Mars standard part that directly fit the machine and talks MDB.

Coinmech

There was no coinmech with the unit. Len bought the original part number, but we had issues getting it working and then the original mainboard died. The new coinmech is a Mars standard part that directly fit the machine and talks MDB.

Power

As with many such machines, the old controller largely ran on loosely regulated 24VDC. Unfortunately, the 24VDC supply in the machine is unreliable. Since my last SBC project had some…exciting…power supply issues, I felt it was wise to know my own limits and use a COTS 5VDC supply for logic as well. An RD-125B from Meanwell fit the ticket, with 4.6A each on 24VDC and 5VDC (more on that later…).

Design

The Happy-Go-Lucky Phase

Initially, I was going to design around the Beaglebone series of ARM SBCs, partly because i3Detroit is swimming in them (Hi Jason!), partly because I was thinking about driving the slots as a matrix like the original board, and partly because n8vi was offering to write PRU code to talk the 9-bit crusty serial for MDB. That meant I needed 36 pins to drive this thing, plus a powerful need for programmable bitbang units. Sounds like a Beaglebone to me!

DevicePinsTotal

Slots 6 rows x 9 columns 15
Display MOSI, SCLK, CS, RST, and DC 5
Keypad 6 rows x 3 columns 9
Vend-Confirm 1 input 1
Door Switch 1 input 1
Temperature/Humidity 1 one-wire 1
Compressor 2 output 2
MDB RX, TX 2
TOTAL 36

The Interim

Then I sat and did nothing on the project for like a year. It happens. Sailing, life, depression, actually finally coming out of the closet entirely, getting on hormones, work, life. You know, the usual.

Then some discussion was made about how the snack zone must be losing money due to forgotten payments and fridge cards not checked off. So, hey, what the hell, I have some spare time and I am feeling good again, so I should design some stuff!

Design Deux

Talking with n8vi, it seemed like he was pretty unlikely to be able to do the thing (yay toddler!), so I found an off-the-shelf module that converted MDB to 8-bit serial via USB. Yay! No PRUs, and two pins down (34 now) to boot!

Also, I was having a really hard time coming up with a sensible way to do the solenoid matrix without spending an absolute fortune on a circuit board. Those square inches really add up. But…the slots are organized into rows. What if we ditched the matrix concept entirely, and drove the solenoids directly, individually? Enter the MCP23017 16-bit I2C I/O expander. Being I2C, I could make identical stacking boards that took 5VDC, 24VDC, and I2C on a common bus, and drove the 9 solenoids per row directly using a simple FET low-side drive. Suddenly I went from like 100in2 to like…4in2. Also, my pin count dropped precipitously. I replaced the 15 pins for the matrix and the 2 pins for the compressor relays with…2 pins for the I2C bus. 17 total pins needed. This looks like the job for a Pi.

DevicePinsTotal

Slots 6 rows x 9 columns 0
Display MOSI, SCLK, CS, RST, and DC 5
Keypad 6 rows x 3 columns 9
Vend-Confirm 1 input 1
Door Switch 1 input 1
Temperature/Humidity 1 one-wire 1
Compressor 2 output 0
MDB RX, TX 0
TOTAL 17

I drew up schematics and board art for a simple mainboard (power input, row driver bus, display, keypad [and buffers for ESD!], door switch, temperature, and vend-confirm), and a simple row driver (9 bits used for solenoids, 1 tied to a status LED for diagnostics, and 4 wired to a header matching the COTS 4-channel relay board input; not to be populated on any but the first in the stack). A few rounds of board critiques on Slack (thanks Nate, Roger, Charlie, and Mike), and I had boards I was happy with. On went the i3 logo and the OSHW logo, and up the art went to GitHub.

Board art for Dixie-Narco mainboard

Board art for Dixie-Narco mainboard

Schematic for Dixie-Narco mainboard

Schematic for Dixie-Narco mainboard

Board art for Dixie-Narco row driver

Board art for Dixie-Narco row driver

Schematic for Dixie-Narco row driver

Schematic for Dixie-Narco row driver


An order went out to SeeedStudio for their maker-tier board pricing; 10 of each design on the way for pennies a square inch. Another order went out to Digikey for components. I now had almost as much skin in the game as Len did with the cash handlers, the carcass itself, and the compressor.

The Compressor Meltdown

So, remember how I said we had to replace the compressor? Well, we had to replace the compressor shortly after we got the carcass in. Len bought us a really nice new compressor, hijinks related to trying to cold-trap the R134a ensued, everyone had LN2 ice cream and decided to just vent the R134a instead, lines were brazed. And the compressor roared to life and we had a cold box in the shape of a vending machine.

Yeah. So for funsies, Mike put a Sonoff POW with a DS1820 temperature probe on the unit, which reported system power (100% compressor and fans) and temperature (in the cold chamber somewhere near the condenser). A few weeks ago, we noticed that the machine had apparently basically not turned off in like 3 months. Which, you know, is bad…

Then one of our members posts on Slack, “Hey, did you guys know the Snapple machine is like 95°F?”. Well, I mistakenly assumed that, due to some issues with the brazing process, maybe we had killed the compressor. I asked Len to buy us a new compressor just in case, and when it came in, I poked around in the back of the unit, and noticed something odd; the compressor was running fine. However, the fan on the condenser was not. I poked the fan blade, and it started right up.

No wonder the unit was hot! I pulled out the fan, ran about a quart of WD40 through the fan body and hopefully the bearings, and another pint of silicone lube to hopefully keep this from happening again, then reinstalled it. Since the condenser was absolutely filthy and packed with shop dust, I vacuumed and blew out the fins, and installed the 10” x 20” x 1” paper filter that should have been between the drop target tray and the condenser fins. Machine cooled down quickly, everyone happy. Right?

Yeah, that lasted like 18 hours. So, I bought a new fan motor from Grainger (aside: did you know there are like 8 total options for 9W fan motors? Apparently the entire refrigeration industry runs on the same motors) and installed it once it came in. Now the machine is fully functional, everything is happy and great.

Actually Doing A Thing

So while I was waiting for the boards, the components came in. I played around with the power supply and realized I had been too clever for my own good. This is a dual-rail supply. As such, it cannot hit regulation unless there is load on both rails; in my design, the 24VDC rail will be mostly unused other than the draw from the MDB, unless I am actively driving a solenoid. So the power supply cycles at about a hertz, and squeals.

Great.

A 50Ω high-power resistor did the trick enough to turn the supply on, but it still whines. I should have just used two supplies.

Finally the boards came in and I started production.

So

Much

Production

I really ought to have bought the stencils.

So I got one of the row drivers made up, and the mainboard. I did some proof of concept work with the mainboard and the display, to ensure that connector worked as well as the breadboard did, then played with the row driver. Everything worked great on the bench, and I even got a 24VDC solenoid to actuate!

I moved to the machine.

Plugged a row connector into the driver header.

And powered on the stack.

And promptly cratered one of my FETs.

Repair

Turns out, the MCP23017 boots up in HiZ mode (which is sensible really). This means I committed the cardinal sin of FETs; I had neglected to positively assure the state of the gates at powerup, and so at least one was floating somewhere in the non-saturated area and blew up.

I manually added 10k pulldowns to the board after replacing the FET, and tried it again. All the channels worked flawlessly.

Then I spent the next several hours making the other 5 boards, and putting the bodges in. I tested those too and cratered another FET.

New controller stack for Dixie-Narco vending machine

New controller stack for Dixie-Narco vending machine

Shit. Looks like the solenoids actually take around 5A for pull-in, not the 3A I tested back 18 months ago. So my 5.6A-rated FETs with no heatsinking vias were unhappy with continuous duty.

I threw a 2.5A polyfuse on the 24VDC rail into the board, and made a note that the software must only drive the solenoid channels for like 500ms, and everything seems to be working great now.

Build and Wiring

We were pretty confident in the stack now, so it was time to start putting it all into the machine.

I had ordered weld-on standoff footers along with the standoff hardware, with the thought that we could weld directly to the sheet metal inside the machine. Mark suggested that was a dumb idea for maintenance and that I should make a subplate instead. Great idea Mark.

So I grabbed a chunk of 1/8” steel and TIG welded the footers to it, using extra boards to get the locations right. A quick coat of paint, and it was ready for mounting.

Laying out the hardware prior to TIG work on the standoff feet

Laying out the hardware prior to TIG work on the standoff feet

Once we had all the hardware stacked onto it, I drove 4 sheet metal screws through it into the inside wall of the machine. Removable, but slim.

New controller in its home inside the machine

New controller in its home inside the machine

Then began the wiring and routing and tidying.

Wired up and ready to be programmed!

Wired up and ready to be programmed!

That is where it sits now. Next time, we will start programming the thing!

PCB Mill Dust Collection System

Recently, we discovered that the dust collection vacuum unit for our LPKF Protomat C30/S was leaking powdered fibreglass dust all over the under-desk cabinet in which it lives. This of course being unacceptable from a safety perspective (powdered fibreglass is not a carcinogen, but is a major irritant in general) and from a cleanliness perspective, we took it upon ourselves to figure out what went wrong.

It turns out that the machine had been operated for an indeterminate amount of time without pre-filter bags, and the filter had failed under the load of nearly 3mm of caked-up fibreglass and copper dust. D’oh.

So, a quick Google search yielded exactly zero sources for filters (but LPKF will sell you the bags, $35/5).

In true hacker spirit, this did not phase us at all. After all, how hard can it be to build a dust collection system from scratch?

Read more

Metro Parent – BLAST OFF!!

Blast off to summer fun with this awesome family DIY project as Metro Parent teams up with i3 Detroit for some crafty good times!

Handmade Detroit: Craft Night – This Thursday at 7p

Join us for a casual night of crafting with Handmade Detroit and i3 Detroit – Thursday, March 24th, 7p – 9p. Bring whatever you like and hang out for a bit. Cupcakes provided, feel free to bring a snack or beverage (if you like)!. For more information and to rsvp if you like, check out the Facebook Event page! http://www.facebook.com/event.​php?eid=1895086​24418276#!/event.php?eid=189508624418276