Project RazEr: It’s (99%) Legit.

Update:Test video! Now it officially exists. Low speed only for now, since I b0rked the controller and stuck it in Sissy Modeâ„¢

After eight months of development, five of which were spent sitting on a shelf at MITERS, Snuffles Reloaded finally moved under its own power. And boy did it move… I have already managed to nearly faceplant once on it.

With the project having entered a state of semi-functionality, and with it standing a decent chance of becoming something worthwhile, I’d like to move onto a less whimsical name. While “Snuffles” was cute, it just doesn’t have that aura of coolness.

Okay, so “RazEr” doesn’t either, and the coolness of a Razor scooter maxed out some time in the year 2000. But see what I did there? It’s an E! Instead of an o! For “ELECTRIC”! And it’s a Razor scooter! Get it?? INNOVATION!

Without further ado, here’s the 99% finished vehicle.

Yes, that IS a small, amorphous blob of wire and circuitry duct-taped to the steering column with a knob on an equally duct-taped stick acting as the speed governor!

No, it’s not spring returned. It’s cruise control for cool. Without caps-lock, and potentially more blood.

I finally mustered up the effort to pull it off the shelf and hook up the last four wires remaining on the thing which had kept it from moving for the past few months. With the help of some friends, we got everything bunched together as a test rig – then decided to call it good and wrapped everything in tape. And good it was. This time, functional cameras are immediately accessible, so expect some “action shots” when the sun comes up.

So why is it “99%” done? Well…. right now, it will probably get me arrested if I take it to the airport (then again, when you’re an MIT student, anything will). Obviously there needs to be some wire cleaning and rerouting. I don’t have a correctly sized box to house the onboard voltage regulator and R/C signal interface yet. I have a proper E-bike throttle that fits over the handlebars. I also need to make a charge-balance plug for the battery pack.

It also needs underglows.

However, it is at least mechanically sound, and I was able to ride it back from MITERS. Therefore, I know the range is at least 3000 feet minus one railroad crossing.

The business end. The relevant power transmission implement – there is only 1 – is housed completely in the rear wheel. It is a 80mm diameter custom-built 3-phase brushless DC motor, conveniently hidden within the confines of a 125mm scooter wheel. Maximum power on it is probably about 1000 watts. I have yet to properly meter it.

Even with no torque advantage (as a direct drive motor), the acceleration is pretty absurd. It’s not quite the neck-snapping and rider-launching takeoff of Snuffles 1, but I do need to hang on pretty hard. It is, however, a controllable launch, and will be even more so when a proper spring-loaded thumb throttle is installed (you know, so I don’t have to hang on with one hand and one leg while twiddling a knob on a stick with the other hand)

The whole vehicle is very low profile. Yes, I managed to drop the height of a Razor scooter – with an add-on battery pack. You think pebbles were bad before…

This is the “larger” flavor from Razor, which has 125mm wheels. With the belly pack, I still have about 1.5 inches of clearance. Not going to be bounding over any curbs or potholes, but it’s enough to get around on bike lanes and sidewalks.

There are four 4.2AH lithium polymer flat cells inside, and four outside. They are run in series for 29.6 volts nominal. The packs are rated for 20C discharge (80 amps) and can burst 30C, so I have plenty of reserve battery power. As for capacity, calculation showed that my optimal range at constant power on flat, frictionless ground in a universe with a constant gravitational field at a constant temperature in air with zero viscosity and me approximated as a point mass… is about 4 miles, no entropy generated. Realistically I expect far less, and need to do a real rangecheck some time soon. Anything above 2 miles is really enough to putz me around campus and into town and back.

With an extension of the belly box, and some custom control electronics, I could conceivably hide all the control stuff inside the tube frame, and only have a throttle cable coming out.

Yeah… that’s about how it is.

And it weighs this much. With better mounting facilities, it should weigh around 12 pounds. That’s a hair under 6 kilograms for you people in metricworld.

Anyways, work will now continue on dressing up the control system. I’ve officially moved past the “90% Zone of Project-Related Self-Loathing” which occurs with everything I build – I would furiously build it to 90% of the way, then just get sick of it and forget about it for a while. Now that I know it works, I should be a little motivated to push it through.

(read: expect another update in 8 months)

I have kept a detailed build log of this project and its predecessor on this site.

Bot on??

It’s legi…. wait… nevermind.

There seems to be a disturbing trend in all my recent projects of everything progressing smoothly and going right, then the whole project grinding to a halt at the last possible second before completion and being wholly unrecoverable without spending an additional hefty sum of money. Case in point: TB4.5-SP1 for Motorama had essentially half the robot become crippled the day before I had to leave for the tournament.

New case in point: Snuffles Reloaded half-existed for about 30 seconds before the motor controller failed. The failure is undiagnosed at the moment, but probably revolves around blowing a voltage regulator which then shot the controller logic with 35 volts.

Here’s some build pics from over the past few weeks, and the (95%) complete vehicle, along with the half-existance video.

As the mechanicals were nearing completion, I started playing with the electronics. The R/C airplane controller requires a 1 to 2 millisecond long pulse spaced every 20 milliseconds, which is a hobby industry standard for control signals. However, the electric bike throttle I was going to use puts out an analog voltage from 0.8 to 4.2 volts. This is, again, a different industry standard control signal.

I decided to use a microcontroller to translate between the two instead of the awesome ghettomongous discrete-part boardamathinger that I built for the first scooter. A bit of messing around with blinkenlichten on a MITERS STK500 and I was in business.

After playing with the analog-digital converter, I made the output LEDs act as a throttle display meter of sorts, for kicks. Full throttle, all LEDs lit, and they go out in sequence as I let off the throttle. I might actually implement this using a LED bargraph chip in the future.

Next up was assembling the eight giant lithium-polymer cells without killing myself or burning down buildings.

To solder epic batteries, you need an epic soldering iron. Unfortunately, I couldn’t find the epic soldering iron I used at the Media Lab to assemble A123 cells, which are even more epic than my 4AH lipos. So if you do not have an epic soldering iron, you need an epic soldering tip.

A scavenged rod of copper and some lathe time later, and I had an epic soldering tip which fit a Radioshack 40 watt soldering iron, which I do have. The whole thing is 2.5″ long and is .400″ in diameter at the larger half.

The brass one was for testing and practice, since a rod of copper is actually pretty pricey these days to just fuck around with.

The bottom battery pack completed after some careful iron maneuvering. The epic tip made the whole operation touch-and-go, exactly what you want for soldering batteries. You never want to park the iron on a battery cell for more than a second or two.

This was a bit of a risky operation since I was laying the cells face-to-face to conserve wiring volume. Normally, batteries like this are stacked and the cell tabs folded over one another. One wrong move with the massive solid copper tip and I was probably looking at replacing a cell.

After each joint was made (and its balancer lead installed), it was covered in electrical tape. When all the joints were completed, I slammed the whole thing in a tube of giant heatshrink and parked the heat gun over it.

Giant heatshrink should be a primary structural fastener. When it starts tightening down, everything inside sort of scrambles for the lowest volume configuration, and the end result is a very neat package of parts. The pack was embedded into its mount with some also primary-structural double-sided tape.

This pack constitutes cells number 5 through 8. The balancer lead is a standard 3-pin R/C servo plug, which serves the interconnects between cells 5 and 6, 6 and 7, and 7 and 8.

And the test assembly. The connectors fit into the LASER-cut acrylic endcaps as they should, and some CA glue retains them.

Building the internal electronics bay was more interesting, since I had to fit batteries, large power wiring, a controller, a switch, the charging port, and all associated connectors inside. I cut out a rectangular piece of aluminum as the substrate (way to go, conductive mounting surface?). Originally, it was going to be flanged and shaped with a sheet metal machine to accommodate the parts, but I decided to not get fancy and just mount everything with double-sided tape or epoxy.

The same procedure of soldering and wrapping was done to the 4 internal cells (#1 through #4), with the exception that their balancer leads went straight to the Convenient DB-9 Connector of Cell Balancingâ„¢. An 8 cell pack requires 9 pins to be fully tapped. Guess what has 9 pins?

Three of the DB9 pins went to the rear of this pack, where they met with an R/C servo pigtail which connected the back half of the pack to the balancing port.  Two large power wires also connected to the bottom battery pack, one of which is the 0v  (ground) line, and the other an interconnect between cell 4 and 5.

After everything was assembled, it was time for a test run. Verdict: It moves.

Some shoving and… it fits! To install the thing, I had to take off the folding hinge, cram the assembly through to the back side about halfway, insert the folding hinge nut plate, then slide it in the rest of the way. The nutplate sat snugly above the controller, but not enough as to pinch wiring. This precision engineering part of the build came out (went in?) great.

Before I fitted the internal electronics, I threw together a source of 5 volts for the motor controller. It is an opto-isolated controller, and so needs separate logic and power rails. This was a simple 7805 regulator jammed in the empty space between the controller and switch.

Here’s an assembled-on-the-table test run video (.MOV, 4.8 megs) using the creepy custom throttle interface device. The mechanical noise is from the completely unbolted and unclamped motor and chassis resonating on the table.

Unfortunately, this regulator would ultimately cost me all the work for the past few nights and a good bit of money. Protip: A linear regulator cannot drop such a huge percentage of its input voltage and output any appreciable current. I was most likely hitting the top end rating of the 7805, around 35 volts, and expecting it to output a solid 5 volts with at least 100 or more milliamps of current. Shortly after the video was taken, some things went pop.

My best guess is that the controller logic board was hit with the full 30+ volts of the battery. A switching regulator, or even two stages of linear regulators (inefficient, but hey), even mounted externally, would have prevented this disaster.

Anyways, here’s a pic of the almost-running vehicle.

The ’empty weight’ is probably around 13 or 14 pounds. Yes, I had to remove the rear brake in order to pass the motor cables – perhaps it would have been better to route them externally. But who needs brakes anyway?!

Regardless, there’s 29.6 volts of 4AH lithium polymer cells, a (former?) 100 amp motor controller, and a very chunky brushless motor shoved into the space of a Razor scooter. I think it’s pretty damn awesome just for that.

I will need to get a new motor controller and devise a new solution to get a stable 5 volts out from the battery pack before the vehicle will run. Seeing as how this will easily cost over $100, it might have to wait a bit. Possibly a long time – we’ll have to see.

Here’s a closer shot of the undercarriage, which houses all the interesting bits.

In the mean time, finals! Bot on, folks, while I attend to these…uhh, pressing matters.