Microsquirting the NC30, part #5: More wiring

With the fusebox mostly wired up, it was time to deal with the other wires. While I’m trying to “repurpose” wires in the stock harness when possible, that mostly helps when connecting up existing things like the lights. For the new sensors, I needed to pull new wires.

First step was to add an intake air temperature sensor. Fuel injection systems need this to calculate air density and hence mass airflow into the engine. I used a small NTC thermistor I got from Mouser and drilled a small hole in the airbox for the wires.

For now, the intake air temperature sensor was "mounted" by squeezing it between the velocity stacks. It weighs practically nothing, so it may stick there. The wires exit through a small hole that was "sealed" with heat shrink tubing on both sides.

For now, the intake air temperature sensor was “mounted” by squeezing it between the velocity stacks. It weighs practically nothing, so it may even stay there. The wires exit through a small hole that was “sealed” with heat shrink tubing on both sides.

To close up the hole for the wires, I added two layers of heatshrink tubing on each side. It’s certainly not air tight, but there won’t be a lot of air going through. Since this all needs to change when the carburetors are removed anyway, I’m not too worried about making this permanent now.

The new wires for the harness. The tiny connector in front of the thermostat is for the intake air temp sensor, Behind it is the new 2-wire coolant temp sensor. Three wires continue up to the temp gauge.

The new wires for the harness. The tiny connector in front of the thermostat is for the intake air temp sensor, Behind it is the new 2-wire coolant temp sensor. Three wires continue up to the temp gauge. The thicker, brown wire is for the radiator fan.

Rather than worry about making a new harness now, I decided to just pull the new wires along the old harness. I can foresee that things are going to have to be tweaked, so until I know that everything works, I want the new wires accessible. Eventually, I’ll take the entire harness out, integrate the new wires, and remove obsolete ones. For the sensor wires, I’m using 20-gauge TXL wire. For larger sizes, GXL. This is automotive-quality wire rated for 125C.

I looked hard for suitably small, sealed, connectors when I was planning the wiring. The tiny, 2-terminal connector for the intake air temp sensor in the picture above is a Molex “Mizu-P25”, which seems quite promising. It’s big enough that I could crimp the terminals with my crimp tool, they’re rated for 4A with a 20-gauge wire like these, but they’re still very slim. (For supply-current sized connectors, I’m using Metri-Pack 280 which is rated for 30A but, as you can see in the previous post, those connectors are very bulky.)

The coolant temp sensor was replaced with a 2-wire model with a dedicated ground wire. (You don’t want to use the frame ground for sensor wires. To avoid interference from ground currents, the Microsquirt has a dedicated sensor ground pin, and all analog sensors need to go back to this pin.) The old temp sensor wire connects to the temp gauge, so that’s now obsolete.

Since the temp sensor now goes to the Microsquirt, I need a way of driving the temperature gauge. I’d already verified that I can repurpose the “fast idle” PWM output for this. The fast idle function normally connects to a air valve that admits extra air when the engine is cold, raising the idle. (Kind of what the choke does on a carburetor.) I’m not going to use this function, but I realized a while ago that since this is essentially just a PWM output driven by the coolant temp, I could hook the temp gauge up to it and tweak the lookup table until the gauge shows the correct temp. (The gauge reacts slowly enough that the only symptom of it being driven by PWM is a slight hum if you put your ear up to it.)

Anyway. To hook the gauge up, I needed to replace its power supply and ground wires so it connects into the Microsquirt’s power/ground. This is both to avoid the gauge being affected by ground currents, but also because the Microsquirt outputs all sink current and if they are powered when the Microsquirt is not, power can back-feed into it. All in all, I needed to run 3 wires all the way up front. (Actually, I’m going to need to run another, for the tachometer, too.)

Finally, because the Microsquirt will control the radiator fan, I needed to run a new supply wire from the relay I added down to the fan.

All the connections to the wideband controller/sensor box  are done. Looks quite neat with the Ampseal connector and the wire braid.

All the connections to the wideband controller/comm box are done. Looks quite neat with the Ampseal connector and the wire braid.

Moving to the back, it was now time to start connecting all the electronics. It’s quite difficult to know how long the wires need to be, but in most cases you can just cut them “long enough” and trim later. After a full afternoon’s work, the connector to my custom box is all wired up, and the result looks quite nice, if I may say so.

The Microsquirt wiring is still a complete rat's nest.

The Microsquirt wiring is still a complete rat’s nest.

Mostly, it’s now a matter of crimping and mounting all the terminals for the big 35-pin Ampseal connector for the Microsquirt. It may end up being quite tight in there, given that you probably want some slack on the wires. The final task is to connect the two oxygen sensor wires (the two thick, gray wires in the picture above) to the controller boards inside the box, and then I think I may be able to start it (using the stock ignition system.)

 

 

Microsquirting the NC30, part #4: Wiring up the fusebox

With the oxygen sensors mounted and the wideband controller box finished, I could finally start doing the wiring. While this seems like a simple task, I had a hard time deciding how to do it.

The big question in my mind was how to wire the power buss part of the fusebox. This requires connecting the incoming power to many fuses, so the wire somehow has to be split. The Metri-pack terminals in the fusebox will only admit one wire (and even if you managed to jam two in there, you’d ruin the sealing that makes the box waterproof) so some form of distribution circuit had to be created. The obvious solution is to crimp a bunch of wires together, but it’s kind of fiddly to create and it creates very thick and inflexible “bundles” of wires that are a pain to handle. However, any other solution would require some form of terminal block, which is exactly what I was hoping to avoid with the nifty, waterproof fusebox.

In the end, I settled on crimping the wires together with the “open-barrel” splices I got from Cycle Terminal back when I replaced the burned-out alternator wiring. After a few failed attempts, I finally got a procedure that worked and spent some time making the necessary distribution wires.

These are the main power distribution wires finally crimped together, heatshrinked, and plugged into the fusebox.

These are the main power distribution wires finally crimped together, heatshrinked, and plugged into the fusebox. The green “knobs” poking out of some of the holes are plugs that seal up unused holes.

It turned out OK, but there’s always the question of how well the adhesive in the heatshrink flows into the space between wires when you shrink many together. At least these are easy to pop out and replace if they should turn out to have a problem in the future.

With the distribution wiring completed, next task was to get the battery and alternator wiring in. Back when I redid the alternator wiring, I added a fuse for the alternator in that wire. Since there will now be an alternator fuse in the fuse box, this was removed as was the stock fuse box and the main relay I added before. To be able to disconnect the main power, I added a 2-position Metri-Pack 280 connector for the incoming battery and alternator  connections. The stock wiring for headlights, tail lights, indicators, etc, will be retained. They were connected to the fusebox via a 3-position Metri-Pack connector. At this point, the whole deal looks like this:

The stock fuse box has now been removed and those circuits connected to the appropriate fuses using the two Metri-Pack connectors on the left. The small 2-position connector connects the main relay to the ignition switch.

The stock fuse box has now been removed and those circuits connected to the appropriate fuses using the two Metri-Pack connectors on the left. The small 2-position connector connects the main relay to the ignition switch.

The Metri-Pack connectors are kind of large but they tuck up pretty well under the metal bar so there shouldn’t be any interference with the seat. The inside of the fusebox looks like this:

The main relay and the fuses for the lights that were moved from the stock fuse box are now  working.

The main relay and the fuses for the alternator and the lights that were moved from the stock fuse box are now in place.

That was pretty good progress for a day’s work. There will be three more relays in the fusebox, one controlling the radiator fan, one controlled by the Microsquirt to enable power to the fuel/ignition system, and one that cuts said power when the kill switch is off. There will also be a bunch more fuses for the fuel/ignition components and the fan.

I haven’t touched any of the electronics wiring yet, but there are also a bunch of wires that need to connect the Microsquirt to the other electronics box and to some other sensors. Plenty more to do.

 

Microsquirting the NC30, part #3: Mounting the Oxygen sensors

In the last post, I described the electronics used to talk to the wideband oxygen sensor controllers. What remained to do was to physically mount the sensors themselves in the exhaust pipes.

The sensors themselves are quite large, so I struggled a bit with finding a good place to mount them on the famously cramped NC30. The exhaust system is a 4-2-1 type, and the final merge collector is so far back that with one sensor it would be out on the side, basically just in front of the muffler. This location is fully visible, hard to route the wire to, and perfectly positioned for getting whacked by the rider’s left foot. Not too good.

As mentioned in the previous post, I wanted to run 2 sensors anyway. The factory carb jetting differs between the front and rear cylinders, so it seems prudent to measure their air/fuel ratios independently since they apparently require different tuning. This also had the advantage that I could locate the sensors where the exhaust pipes wrap under the bike, which is less visible and (hopefully) less susceptible to getting hit by stuff, since it’s somewhat protected by the lower fairing.

The only tricky thing is that the pipes are very nearly side by side, so there’s not much room. The sensors also must be mounted with the sensor element pointing downward by at least 10 degrees. This prevents condensation from collecting in the sensor. There was no way to fit the sensors if they were mounted 90 degrees to the pipes, but luckily there are also angled bungs. Angling them mean they take less space and you can also fine-tune the position by rotating the bungs. After some fiddling, I arrived at locations that seemed to work.

Once the locations had been determined, the next step obviously was to make holes in the pipes. This turned out to be more of a chore than expected. I knew that stainless steel work hardens, so unless your drill bits are very sharp and keep cutting, it will quickly become impossible to get through. I had new drills, but it still took me forever to make a 2mm hole, and when I stepped up to a larger drill, the edge quickly cracked. Maybe the pipes already are work hardened from manufacture?

In the end, I had to resort to the Dremel’s cutoff wheel and carbide end mill. (This end mill is amazing, it cuts anything like butter, but in the process it also produces clouds of tiny metal needles that love to embed themselves in your skin. I constantly have to remind myself to only use it on a clean work table that can be meticulously vacuumed afterwards.)

The hole is mostly done. Getting through the stainless was a chore.

The hole is mostly done. Getting through the stainless was a chore.

To get the bungs to fit on the curved pipe, they also had to be ground into a concave shape. This was done on the bench grinder. I also had to add some material with the welder to avoid grinding into the threaded part. Once that was done, they were tack welded onto the pipe.

The first bung is tacked in place. I also had to weld on some material where it was initially too short.

The first bung is tacked in place. I also had to weld on some material where it was initially too short.

With the bungs tacked on, I put the exhaust pipe back on to check the fit. Unfortunately, the sensor to the front cylinder pair was uncomfortably close to the bracket holding the suspension linkage, so it had to be moved a bit.

Time to check the fitment. The top sensor ended up a bit too close to the suspension bracket for comfort.

Time to check the fitment. The top sensor ended up a bit too close to the suspension bracket for comfort.

After grinding off the tack welds and moving it slightly further down, it fit much better.

After grinding off the tack welds and moving it slightly further down, it fit much better.

After moving the bung down a bit, both sensors fit without interference. It might look like the bottom sensor doesn’t have the requisite 10-degree down angle, but I measured it with the digital level and it’s fine. (The bike also now sits on the center stand so taking it off will lower the rear end a bit more and improve the angle further.)

Then it was time for the welding. I was quite nervous about this, since I’ve never welded stainless before and an NC30 exhaust system is pretty much “unobtainium” in Hawaii. When welding stainless pipes, you also have to use a purge gas on the inside of the pipe, otherwise the weld will oxidize on the back side and lead to premature cracking. To do this, you cover the ends of the pipe and route another Argon bottle into it.

The exhaust system is ready for welding. The aluminum foil is to keep the purge gas contained.

The exhaust system is ready for welding. The aluminum foil is to keep the purge gas contained. The Argon hose was mounted at the muffler end and that side taped off. A couple small holes in the aluminum foil give the existing air a place to exit.

I’m happy to report the welding worked fine. It was a bit awkward to access the side of the lower bung that faces the other pipe, but the weld wetted out easily and I didn’t burn any holes in the pipe! I think it looks pretty good for a first attempt!

The welds are done. Not too bad for the first time welding stainless!

The welds are done. Not too bad for the first time welding stainless!

I’ve been anxious about this welding step since I first started thinking about the project, so I’m happy that’s done. Now I can proceed with routing the wires to the sensors and then it’s finally time to do all the wiring between the fuse box, the Microsquirt, and the electronics box.

 

 

Microsquirting the NC30, part #2

As described in the first post in this series, I’m working on converting the NC30 to fuel injection. That post was 2 months ago, since then I’ve mostly been working on a box of electronics that aren’t exactly required but that I think will make things a lot better.

When designing the whole Microsquirt system, there are a couple of loose ends that need to get tied up:

  • Pressure sensors for barometric and manifold pressure need wiring up, with dedicated analog lines. You can use automotive sensors for this, but they’re a lot more expensive than the ones you can get from Mouser.
  • For tuning, you need to connect the ECU to a computer. Normally this is done over RS232, but I wasn’t psyched about having a serial connector somewhere on the bike exposed to the weather. Instead, you can use a Bluetooth serial bridge and connect to the bluetooth on the laptop. However, you need to put the Bluetooth modem in some protected location.
  • Finally, you need to hook up wideband oxygen sensors. Most consumer-grade ones output an analog voltage, which means you have to be very careful about signal interference. However, there’s a DIY one you can buy as a kit from 14point7 that can also be read digitally over I2C. You can then send this data to the Microsquirt over the CAN-bus connection, eliminating any analog part from this very important signal. This seemed like an obvious use for an Arduino…

At first, I meant to accomplish this in an as simple as possible way, using a breadboard and breakout boards and DIP chips. However, it quickly became clear that this would not be much easier and would be really clunky. Instead, I decided to design a small breakout board with surface-mount Atmega microcontroller and the CAN-bus controller/transceiver. I’ve never used any of the on-demand circuit board businesses, but it turns out that small boards are really cheap. I used OshPark, and the small double-sided board ended up costing $6 for 3, including shipping! And they’re purple!

The front side of thee OshPark board after soldering on the SMT components. The large chip is the CAN-bun controller.

The front side of thee OshPark board after soldering on the SMT components. The large chip is the CAN-bus controller.

The back side of the relay board. The large chip is the Atmega 328 and the small one the CAN-bus transceiver.

The back side of the relay board. The large chip is the Atmega 328 and the small one the CAN-bus transceiver.

I had already tested this with an Arduino and DIP versions of the CAN-bus components, so I knew I could send data to the Microsquirt and have it show up as fuel/air ratios.

With the complicated circuiry out of the way, I just needed a simple board to mount the pressure sensors, the Bluetooth modem, and connect to the wideband controllers. This was sufficiently simple that I decided to make a single-sided board myself using toner transfer.

Here's the single-sided carrier board after etching. Not perfect, by any means, but it'll work.

Here’s the single-sided carrier board after etching. Not perfect, by any means, but it’ll work. The super-wide traces in the lower right is for the power supply to the wideband oxygen sensor controllers. Since the sensor has a heater, they actually use up to 5A per sensor.

I haven’t done any etching since the wine refrigerator project back at the beginning of this blog, so it took a while to remember all the subtleties. And while this worked fine, when you take into account time spent doing transfers, etching, drilling, etc, it’s not at all clear that it’s cost effective compared to ordering from OshPark. This board has a lot of area, so it would have been about $30, but it also took me quite a few hours to do by hand.

This is the fully assembled carrier board. The pressure sensors are at the top (the MAP sensor is the one with a barb, the barometric pressure one obviously doesn't need one.) The red  boards are breakout boards from Sparkfun with the Bluetooth modem and RS232 level converter. The two MicroFit connectors in the lower left are the power and I2C connections to the wideband sensors. The large connector is the external Ampseal connector.

This is the fully assembled carrier board. The pressure sensors are at the top (the MAP sensor is the one with a barb, the barometric pressure one obviously doesn’t need one.) The red boards are breakout boards from Sparkfun with the Bluetooth modem and RS232 level converter. The two MicroFit connectors in the lower left are the power and I2C connections to the wideband sensors. The large connector is the external Ampseal connector.

The plan was to stack this board and the two wideband controller boards and mount them in a weatherproof enclosure. The stacking worked out quite well and everything fit perfectly into the Hammond enclosure.

The two wideband oxygen sensor controller boards and my board, ready for stacking.

The two Sigma Lambda OEM wideband oxygen sensor controller boards from 14point7.com along with my board, ready for stacking.

This is the assembled board stack, ready to go in the box.

This is the assembled board stack, ready to go in the box.

Getting the boards into the enclosure turned out to be a bit more work than expected. The problem is that the enclosure is quite deep, and the Ampseal connector quite large.

The Ampseal connector has a seal on the inside that will seal against the inside wall of the enclouser, so the hole in can't be too large. This means it's tricky to get the board in.

The Ampseal connector has a seal on the inside that will seal against the inside wall of the enclouser, so the hole in can’t be too large. This means it’s tricky to get the board in.

After careful filing I managed to make a hole large enough that the connector can be jammed through, with only a little flexing of the circuit board, while keeping it smaller than the seal on the flange. As you can see in the picture above, I failed a bit on locating the screw holes, but they are all on the “external” side of the seal so it’s only a cosmetic matter.

In the end, the enclosure is quite large, so there’s really only one place on the bike where it fits: in the tail along with the other electronics. There’s not really any extra space, but it works.

This shows how the enclosure fits perfectly between the two metal bars in the tail. The blue silicone hose is the MAP sensor connection.

This shows how the enclosure fits perfectly between the two metal bars in the tail. The blue silicone hose is the MAP sensor connection. The connector fits outward because it would be really tight against the back of the fuse box on the other side if it fit the other way. The tail fairing is plenty wide there to accommodate the connector.

So that’s where it’s at right now. I’m currently in the process of welding bungs for the oxygen sensors onto the exhaust pipes, once that’s done and I know how long those wires need to be, I can mount this box permanently and start the job of wiring everything up.

 

Moar drainage!

Bringing you the next episode in the series “Patrik laying pipe”!

In the last house post, I talked about the mysterious pool of water on the makai side of the house. Back in December, I wrote about the gutter replacement on the garage. Now it’s time for the (hopefully) final installation of major drainage hardware.

As part of the gutter replacement, I added a pipe through the wall of the planter box where the water had earlier just pooled into the box. However, the pipe just dumped the water outside the box, and I wanted to bring it further away from the structure. For this reason, I’ve been meaning to run a drainage pipe from the lower end of the yard up to catch the water coming off the gutters. I provisionally put that pipe in a couple of months ago.

Here's the lower part of the drainage. The pipe exits out the lava wall at the bottom of the picture, does a loop around the fruit tree, and goes to the catch basin under the white 90-degree coming through the planter box. Then it continues up along the garage to the driveway.

Here’s the lower part of the drainage. The pipe exits out the lava wall at the bottom of the picture, does a loop around the fruit tree, and goes to the catch basin under the white 90-degree coming through the planter box. Then it continues up along the garage to the driveway.

That’s only half the story, though. Catching the gutter runoff is good, but a more major problem is that rain falling on the driveway currently drains off to the southeast side, where it runs through the yard and then flows into the yard of our neighbor Charlie. This direction is “down the street”, so his yard is about a meter lower than ours, and the water runs through the stone wall at the property line, undermining the wall and flooding his yard. (His yard really floods during heavy rains, but most of that isn’t our fault. Because the street has no gutters and his yard is so low, most of the water running down the street ends up in his yard. But every little bit less water would help him.)

The pipe could then continue along the garage to the driveway, with a drainage basin so the driveway water drains in there rather than into Charlie’s yard. This is pretty far, though, so I’ve been putting it off. But over the month, that pipe was finally put in, too.

This is where the upper part of the pipe runs. The catch basin from the gutters are at the bottom, then it runs up along the wall past the fig tree, through the lava wall in the middle of the picture, and up to the driveway.

This is where the upper part of the pipe runs. The catch basin from the gutters are at the bottom, then it runs up along the wall past the fig tree, through the lava wall in the middle of the picture, and up to the driveway. Charlie’s yard, quite a bit lower than ours, is just to the left of the picture.

This is the driveway, looking toward Charlie's house. The cutout between the planter boxes is where the water used to drain off the driveway down into his yard. Now, there's a catch basin there. (Why is there a hole in the driveway, you might ask? More about that later.)

This is the driveway, looking toward Charlie’s house. The cutout between the planter boxes is where the water used to drain off the driveway down into his yard. Now, there’s a catch basin there. (Why is there a hole in the driveway, you might ask? More about that below.)

The digging wasn’t too bad. There were no large rocks like I encountered while digging the french drain. When I got up next to the driveway, however, I hit solid rock just under the surface. After another 4h rental of the Home Depot demolition hammer, there was enough space for the catch basin.

The catch basin by the driveway. There was solid rock all the way up where the catch basin is located, so a fair amount of demolition was needed to get it to fit.

The catch basin by the driveway. There was solid rock all the way up where the catch basin is located, so a fair amount of demolition was needed to get it to fit.

However, the fact that there was solid rock there makes me suspicious. As you can see on the picture above, our driveway is in pretty bad shape. There are lots of large cracks, and where there is now a hole, the pavement had sunk enough to make a depression where water would pool. When it rains hard, there’s enough water to flow off to the side, but a lot of water clearly just sinks through the pavement.

I hadn’t reflected on this before, since I had assumed that it would all sort of flow towards Charlie’s yard either way, but if there’s solid rock just under the surface off the driveway, the water sinking into the driveway can’t go in that direction. It has to go either in under the garage or towards the house.

I have noticed before that when we’ve gotten a lot of rain, the concrete floor of the back of the garage, towards the house, has gotten seriously wet. My first suspicion was that this was water from the gutters that used to pool in the planter box, but now I’m wondering if it’s also water sinking through the driveway, then running under the garage until it hits the concrete wall at the back of the garage. Maybe it would pay off to fix the cracks and depression in the driveway so it drains better into the now-installed drainage? The crack patches and the hole in the driveway are part of that effort, which will have to wait until the next post.

To funnel the water into the catch basin so it doesn't just sink into the ground before getting to it, I added a concrete "chute" between the pavement and the catch basin.

To funnel the water into the catch basin so it doesn’t just sink into the ground before getting to it, I added a concrete “chute” between the pavement and the catch basin.

Once all the pipe was installed, the precision work is done. All that remains is to fill back in, which isn’t really as easy as it sounds. The dirt is so full of rocks that it’s hard to make sure it’s packed under and around the pipe so it’s completely supported. (Leaving pipe without solidly packed fill around it is the best way to ensure that it gets crushed from the weight on top of it…)

As shown in the picture above, I also made a concrete drainage chute connecting the pavement to the catch basin. It wouldn’t do to have dirt or gravel here, since the water would just sink in before making it to the catch basin, thus negating the whole point.

We haven’t had any huge rains since this was put in, so I haven’t had a chance to see how well it works in action. Although with the current hole in the driveway, little water will probably make it into the drainage. Better fix that soon!

Microsquirting the NC30 (part 1 of many…)

While working on the fairing, I’ve also been planning a much more invasive project: Converting the NC30 to fuel injection!

This one may deserve some explanation. I mean, what’s wrong with it as it is? Nothing, really. This is strictly done in the interest of education… What semi-rational explanation I have is that one of the things I’m interested in doing with the engine for the airplane (long-term project as that may be), is to use an aftermarket turbo/fuel injection conversion. Since an airplane is a fairly dubious starting project for learning how to do do engine work, seeing as you can’t pull over when the engine decides to stop, I figured it might not be a bad idea to try a somewhat lower-risk project.

So here’s the plan: The NC30 will have its carburetors and the old ignition control unit ripped out, and they will be replaced with a Microsquirt engine control unit, and throttle bodies with fuel injectors. The list of changes to pull this off is pretty long, so I’m going to do this in two stages:

Stage one is to use the Microsquirt to control ignition, which is comparatively easy as there are no major hardware changes necessary. This is mostly electrical work, as the engine controller needs to be wired in along with the necessary sensors and wiring.

Stage two is then to switch out the carburetors, which is quite a bit more complicated. This entails adding throttle bodies, fuel injectors, fuel pump, pressure regulator, and return line to the tank. The throttle bodies need to be made to fit the intakes as well as the airbox. I’ll discuss this part more later.

The electrical hardware is going under the tail, where luckily there’s quite a bit of space that can’t be used for anything else anyway. An electronic fuel injection system has a quite a bit more complicated electrical system than a stock early-nineties motorcycle, so the old 4-fuse box also isn’t quite adequate.

The new fuse box is a sealed MetriPack 280-compatible matrix of connections that accommodates both fuses and relays.

The new fuse box is a sealed Metri-Pack 280-compatible matrix of connections that accommodates both fuses and relays.

The new electrical system will use a number of fuses and relays, and they will go in this super-flexible, sealed, connection box that uses Metri-Pack 280 connector spacing. This is the spacing used by ATM fuses, and there are things like relays and bus bars that use the same spacing. This means you can mix and match and design your own layout, and it’s all waterproof. I mounted this on some aluminum brackets I added to the unused passenger seat rails.

The Microsquirt case is mounted right in front of the tail light. Here, I cut away the existing plastic “wall” in the undertail and added threaded nylon mountings that I “Plastifixed” to the plastic. The Microsquirt has a watertight Ampseal connector that’s facing forward, which should make it fairly easy to add the necessary wires between the fuse/relay box and the controller.

Here's the Microsquirt mounted under the tail. The "hole" right below it is where the old ignition control unit was located.

Here’s the Microsquirt mounted under the tail. The “hole” right below it is where the old ignition control unit was located.

Still needing to be added are the controllers for the wideband oxygen sensors (one each for the front and rear cylinder pairs), a home-made board that will contain the Bluetooth modem that will make it possible to connect the laptop to the engine controller without hooking up a wire, an Arduino that will send the oxygen sensor data to the engine controller, and the pressure sensors for barometric and manifold pressure. There’s also an ignition module that switches the high current to the ignition coils, but it needs to be mounted to a heat sink, so I think it should go closer to the ignition coils.

There’s quite a bit of stock wiring that needs to be replaced, but rather than do a hack job, I’m going to do a proper job of disassembling and modifying the stock wiring loom. It’s going to take a while to see this through, I think.

The quest for organization, part 1

Since we moved here, I’ve constantly been annoyed whenever I’ve tried to find tools or other specific things because nothing was organized. Some things were in the basement, some things in the garage, some things in unopened moving boxes, and it was impossible to find anything. I’ve probably spent more time looking for tools than I have using them.

Another problem was the complete lack of organization for things like electronics components or even just screws and bolts. The electronics stuff have been kept in the boxes they arrived in from Mouser, so whenever I needed something I had to rifle through 50 plastic bags of surface mount components.

I thus embarked on a mission to solve the storage problem. I was inspired by a post about SparkFun’s workshop organization, where they linked to a video of Adam Savage’s workshop. Check out his storage system!

He has a rack from a system called Sortimo that uses cases with clear lids containing modular boxes. The boxes come in different sizes and can be rearranged to suit your purpose, and with the lid locked, the contents do not come out. It’s pretty cool. Unfortunately it’s also expensive. Like $100 per drawer expensive, and they’re almost impossible to find in the U.S. A little out of my range.

However, I realized that this is the goal: Everything should be easily retrievable directly from marked boxes, without rifling through things and without having to somehow pull out something from a stack. With that in mind, I searched around on various websites dedicated to hobbyist, garage setups, machinists, whatever, and finally came upon the Harbor Freight equivalent of the Sortimo system. The reviews said that they were good “for being HF”… the cases aren’t nearly as sturdy as the Sortimo, you can’t buy loose inserts, and they don’t really lock the contents securely in place when they’re closed. But they are also $9 as opposed to $90. I decided to get a bunch. Surprisingly, HF shipping to Hawaii is actually reasonable, if you buy a bunch of them.

This is the set of HF storage cases I got. They are actually quite nice.

This is the set of HF storage cases I got. They are actually quite nice. The price ranges from $4 for the half-width ones to $13 for the double-height ones.

The next problem was how to organize them. They are advertised as “stackable”, but here’s where the HF quality comes in: they really aren’t. The features that are supposed to lock into each other aren’t matched up correctly. But in any case, if you stack things they are hard to get to. I wanted something like the Sortimo rack. So I decided to build one.

After having welded up the table, I wanted to try my hand at welding Aluminum. It’s supposed to be tricky, but what better way to get motivated to learn than to actually make something out of it?

I designed a rack made out of square tubing, with the “shelves” consisting of angles on each side of the rack, sized so the cases would slide in on the angles. Surprisingly, I realized that you can order metal from Amazon (what used to be called Amazon Supply, now I think rebranded as Amazon Business) with free Prime shipping! Compared to the local steel yard, the prices were about comparable, but Amazon’s selection vastly outstripped them (and by ordering online I didn’t have to fit 10-foot lengths of aluminum tubing in the Prius.)

But first, I got some practice pieces.

An outside corner weld.

An outside corner weld.

An inside corner.

An inside corner.

Aluminum definitely is a bit trickier than steel, because its high thermal conductivity means that heat spreads much more effectively. You need higher current, but the biggest difference is that if you apply too much heat, the entire piece can melt like a piece of ice. It definitely takes some getting used to.

After a few days of practice, the pieces didn’t look too bad, so I decided to get started.

The first step was to assemble three sides to the frame (one on each side and one in the middle, since it was to be a double-wide rack.)

The first step was to assemble three sides to the frame (one on each side and one in the middle, since it was to be a double-wide rack.)

The Evolution saw made this much easier, since I could get very nice, straight cuts. With the rectangular frame assembled, it was time to add the diagonal braces that would make them rigid.

The diagonal braces were cut at an angle on the ends so they aligned with the end pieces.

The diagonal braces were cut at an angle on the ends so they aligned with the end pieces.

These of course had to be cut at an angle so the ends would align with the end pieces. To make the welding as easy as possible, the joint really has to be well matched. Furthermore, the rectangular frame is 1/8″ material, but the diagonal braces are only 1/16″. I angled them so they should, to the greatest extent possible, be loaded in tension when the whole thing is assembled, so I figured I didn’t need them to be as thick. But welding thin material to thick is more tricky, since it’s easy to overheat the thin piece and melt it, and this gets worse if the pieces don’t line up properly. The first one wasn’t great (you can see a bit of a mismatch where I cut out material to account for the welds in the inside corners of the frame) but it worked out ok.

The side frames were then assembled to each other.

The side frames were then assembled to each other.

The next step was to connect the side frames with the horizontal crossmembers at the top and bottom. The sides are asymmetric, the back has 0.75″ square tubing, while the front has 1.5×0.75″ rectangular tubing. Since you can’t fit a cross brace across the front, I made the front crossmember stiffer. Of course, as you assemble more and more of the pieces, access gets harder. Here’s an action shot of me sitting inside the frame to get access to the inside corners.

Getting access becomes harder the more pieces you add... This isn't so bad, but the cross braces across the back aren't there yet.

Getting access becomes harder the more pieces you add… This isn’t so bad, but the cross braces across the back aren’t there yet.

This was pretty slow going, because I didn’t want to take any risks of heating the material up too much and having it warp. Aluminum has much higher thermal expansion coefficient than steel, and it also has a lower elastic modulus. This means aluminum will warp easier than steel when welded. I tried to take a lot of care to always weld symmetrically on opposite sides of the structure so any warping would cancel out. It was pretty successful, the structure on the whole is very true.

Here, the basic frame is done. What remains is to further divide the upper part into 4 sections for the half-width cases, and then weld in the shelves.

Here, the basic frame is done. What remains is to further divide the upper part into 4 sections for the half-width cases, and then weld in the shelves.

At this point I figured I was “basically done”. All that remained was to add a divider to the upper part for fitting the small half-width cases and add the shelves. This photo was taken on New Year’s Day…

Things took a bit longer than expected. The first issue was that I had never really calculated what length of angles I would need for all the shelves. As you can tell, this is a fairly large structure. It will hold 28 half-width, 16 full-width, and 12 double-height boxes. That makes a lot of angles.

The other issue was that to make sure I didn’t warp the thing I would weld one row on one side, wait for it to cool, flip the whole thing over, wait until it cooled, weld the other side, and then wait again. That, in combination with having to cut, clean, and de-burr 108 lengths of angle, meant that it ended up taking 4 months to finish the thing…

Here the top part has been divided into 4 sections and most of the shelves have been added.

Here the top part has been divided into 4 sections and most of the shelves have been added.

But finally, the other day I added the last shelf, and apart from needing some adjustable feet so it doesn’t rock on the garage floor, the storage rack is now operational. Here it is, in all its glory, with most of the HF storage cases I bought.

Finally, it is completed! Now I just need to actually organize stuff.

Finally, it is completed! Now I just need to actually organize stuff.

Most of the storage boxes are still empty here. It’s going to be a bit of work figuring out what should go where, but now nothing’s holding me back.

I’ve started to clean up the electronics situation. As an example, here’s the case containing Micro-Fit 3.0 connectors:

This case contains my set of Micro-Fit 3.0 connectors.

This case contains my set of Micro-Fit 3.0 connectors.

Yes, I also bought a label maker. This is going to be good!

However, I can’t really say this is a cost-effective approach. While the HF boxes were cheap, Aluminum isn’t. Argon for welding the aluminum isn’t either, and by now I’ve gone through a lot of it. I could probably buy like a hundred more of those small boxes for the money I spent on Al & Ar. But that wasn’t the point — it was an educational project. And I sure have welded a lot of Aluminum by now. Whether I’ve gotten much better… that’s more debatable. But I’m pretty sure the rack won’t come apart.

NC30 fairing job #4

A short update on the fairing job: In the last post, I had just done the layup for the new hole. After the epoxy cured, I cracked the Bondo off and broke the aluminum pipe loose from the epoxy without too much difficulty.

After I removed the Bondo mold and the aluminum pipe that created the shape for the screw hole, I was left  with this.

After I removed the Bondo mold and the aluminum pipe that created the shape for the screw hole, I was left with this.

Not bad. As I suspected, there were a couple of air bubbles in the micro that I’ll have to fill. The plug in the aluminum pipe had also gotten pushed into the pipe a bit, so there’s a ring-shaped depression around the perimeter of the bottom of the hole. I’ll fill that in with a little micro fillet, I think. That way there won’t be a sharp corner there either.

Putting the fairing back on the bike, it was now time to see if it would all work out. Luckily, the hole is in exactly the right place. I could even see the screw hole in the frame through the epoxy, so it was easy to drill it out enough that I could get the screw in.

The location of the hole turned out pretty much perfect, the screw is well centered.

The location of the hole turned out pretty much perfect, the screw is well centered.

I still need to make the hole bigger to fit the rubber grommet, but that will have to wait until my step drill arrives, because I don’t have a drill bit that large right now. But I’m going to count this as a success! Now on to the right-side hole, which is even more misplaced than the left one was. But the same technique should work fine there, too.

NC30 fairing job #3

We left off the fairing story with the rear support glassed in place and a big hole cut for making the screw mount. Over the past couple of days, I continued working on the the hole.

After pondering how to do this, I decided on a three-step process. Because the sensitive thing is the outer shape of the fairing, step one was to make a plug with the correct contour of the fairing. I did this by taping up the outer side of the hole and filling it with Bondo from the inside. After removing the tape, I could sand it to a match the desired contour.

The Bondo plug that determines the outer contour of the fairing. The only purpose of this part was to be able to make the matching mold.

The Bondo plug that determines the outer contour of the fairing. The only purpose of this part was to be able to make the matching mold.

Once that was made, I rubbed the Bondo surface with ski glide wax (good to know it comes in handy for something in Hawaii) to prevent the mold from sticking to it. The mold was then made by covering the just-made surface with another blob of Bondo added to the outside.

This blob of Bondo covers the plug made before, but  is added from the outside.

This blob of Bondo covers the plug made before, but is added from the outside.

Once the second blob of Bondo had cured, it was time to pop the plug out. (Bondo is great for doing this kind of stuff, it cures so quickly that it’s possible to do this kind of thing and basically not wait at all between steps.) With a little prying, it came right off and left a nice surface that the fiberglass could be laid up against.

This is what was left after the inner blob of Bondo was popped off. The fiberglass can now be laid up against it and it will match the desired outer surface of the fairing.

This is what was left after the inner blob of Bondo was popped off. The fiberglass can now be laid up against it and it will match the desired outer surface of the fairing.

So far, so good. Now came the tricky part: locating the screw hole. I put the fairing back on the bike, did some measuring, and drilled a hole where I thought the screw should be. This turned out to be sufficiently accurate. The rubber grommets around the screws are almost an inch in diameter, so I next used a 1″ hole saw and cut out most of the Bondo mold I had just made.

With the fairing on the bike, the location of the hole was measured and a 1-inch hole drilled.

With the fairing on the bike, the location of the hole was measured and a 1-inch hole drilled.

To make the outline of the depression from the hole, I now cut a short length of 1-inch OD Aluminum pipe, plugged the end with another blob of Bondo, and fit it in the hole. By inserting it into the hole until it hit the frame support and then backing it out about 2mm to account for the thickness of the rubber grommet, I got a pretty good idea of how it should fit. I then Bondo-d it in place.

After locating the pipe with the correct depth, it was fixed in place with more Bondo. (Apologies for the unsharp photo.)

After locating the pipe with the correct depth, it was fixed in place with more Bondo. (Apologies for the unsharp photo.)

This is what the inside looked like. Fiberglass can now be laid up over the pipe.

This is what the inside looked like. Fiberglass can now be laid up over the pipe. The little space around the pipe is not ideal, any epoxy that makes it in there will need to be sanded down after the pipe has been removed.

Finally, it was time for fiberglassing. This was quite tricky, because it’s hard to make the fabric conform to the curvy shape. I filled the bottom corner against the pipe with micro to make a fillet, but there’s not really much to do about the corner on the top. I guess I could have ground a more rounded top contour on the pipe. I definitely ended up with some air bubbles at the curve. We’ll see how it turns out once cured.

The final product, with micro fillet around the base of the pipe and 3 layers of BID (plus two strips right around the pipe) There are definitely some air bubbles in there.

The final product, with micro fillet around the base of the pipe and 3 layers of BID (plus two strips right around the pipe) There are definitely some air bubbles in there.

I also now realized that I should have subtracted the thickness of the fiberglass when deciding how deep to make the hole, so it’ll be a bit too deep. That’s not actually a big deal, because I actually want it spaced out a bit from the fairing to clear the subframe. The worst-case scenario is that I underestimate how much the epoxy will bond to the pipe so that it ends up permanently bonded there…

NC30 fairing job #2

The previous post talked about how we arrived at the present unpainted state. Before painting, there were some things to attend to with regards to the rear fairing. This is still the early Tyga version, and it also has some fitment issues.

In case you don't remember, this is how the bike looked when I bought it.

In case you don’t remember, this is how the bike looked when I bought it.

Look at the rear fairing above. The only places where it’s attached are with the four screws (two on each side) at the front end, under the tank, and where the front of the seat hooks into the tank. The entire part rear of the seat is unsupported! The rear end flexes easily an inch up and down when attached, with most of the flex happening at the rear end of the seat there the profile is the lowest. The paint is actually cracking in this area, presumably from being flexed continuously while in motion.

The second problem is that the screw holes don’t fit the frame (you should have guessed this was coming by now.) The distance between the two holes isn’t correct. When the front screw is attached, the rear hole looks like this:

This is how the rear hole lines up with the mounting point in the frame. Or rather, how it does not...

This is how the rear hole lines up with the mounting point in the frame. Or rather, how it does not…

When mounting this piece, you had to push the fairing hard to get the screw to thread in, and over time this side load had completely obliterated the threads into the aluminum frame. If I’m going to put in a bunch of effort painting this piece, I want it to fit properly. So after a bit of agonizing, I decided to trust my fiberglass skills and “get medieval on its ass” (in the unforgettable words of Marcellus Wallace):

After cutting out the old screw hole, I can now make a new one... I hope.

After cutting out the old screw hole, I can now make a new one…. I hope.

The idea is to lay up a new mounting hole here, but in the right place. I’m not exactly sure what the best way for modeling the depression for the screw head is. Probably making a plug to fill the hole first, shaping its outer surface to the right shape. Then making a mold of that against the outside. We’ll see.

The other thing that I wanted to fix was to make some sort of support for the rear end of the fairing so it can’t move around. There are two steel rails on the subframe that are meant to support the rear seat. Since I don’t have a rear seat, I decided that I could add a support on top of the rear one and make the fairing key into a hole in it.

The short piece of aluminum angle on the rear bracket holds a grommet that a point on the fairing will key into.

The short piece of aluminum angle on the rear bracket holds a grommet that a point on the fairing will key into.

I molded the “point” that will key into the grommet from the ones that are on the seat. They don’t match up with anything on my bike, so it’s not clear what they are for, but the shape was right.

The "point" on the seat pad and the copy I made.

The “point” on the seat pad and the copy I made.

To make a copy of it, I first made a mold of the seat shape by covering it in Bondo. (Bondo is a polyester body filler that cures very quickly.) Once it had hardened, I could pop it off the seat, and I had a perfect mold for the part. Then I filled the mold with wet flox (epoxy and cotton fiber), which make a strong part. I couldn’t get the epoxy out of the Bondo without cracking the Bondo off, but that’s fine. It worked out very well.

For final fitment, I started by adding a couple plies of BID to the inside of the seat, after sanding it well. The fiberglass job on the fairings would make any Long-Ez builder weep — the top ply of fiberglass is so dry it looks like it’s just glued to the next one. In the corners, there isn’t so much an “air bubble” as the ply being completely lifted from the base, forming a cavity. This isn’t just the old part, the layups on the new front fairings look the same. I realize these aren’t structural parts, but come on…

When attaching things with epoxy, it's good practice to cut some structure into the surface so the epoxy has something to "bite" into.

When attaching things with epoxy, it’s good practice to cut some structure into the surface so the epoxy has something to “bite” into.

To ensure that the point got into the exact right position, I then mounted the fairing by the front holes (the ones that are still there…). I cut some notches into the plug to make it adhere better, scraped a pile of fairly dry flox on top of it, and positioned it into place. Then the fairing was pushed down solidly onto it with some pack straps.

Here's the point floxed in place against the inside of the fairing. After cure, this should securely position the back part of the fairing when mounted in place.

Here’s the point floxed in place against the inside of the fairing. This should securely position the back part of the fairing.

Now that the fairing is securely positioned both front and back, it should be possible to lay out the rear screw holes so that there won’t be any tension when mounted. Stay tuned.