Monday, November 1, 2010

Pneu Scooter: Singapore Edition

Sorry for the cliffhanger ending to the Can I Finish Pneu Scooter in Three Weeks quintilogy. The truth is, I probably never had a chance, but if I didn't try then I wouldn't have made any progress until basically winter break. Instead, I got most of it done and decided at the last minute to stuff the whole thing into my suitcase (which was still only 47lbs) and take it to Singapore.

Oh yeah, I'm in Singapore!

I'm here on a month-long visit to the Singapore University of Technology and Design (Established in collaboration with MIT). If you're familiar with Singapore's universities...well, you've probably still never heard of SUTD. It's a brand new endeavor; an attempt to build a university focused on design, in a broad sense. The first entering freshman class will be in 2012, at an interim campus until the shiny new campus near the airport is completed. For now, though, we're at the interim interim campus, the third and fourth floor of a primary school.

I'm actually staying at NUS, since SUTD doesn't have any student housing yet. One of the first things we did was check out the NUS electric vehicle workshop:


The frame in the foreground is a work-in-progress three-wheel, two-seat, road-worthy electric vehicle. The two bubbly-looking cars in the background competed in the Shell Eco-marathon, and the one on the left (I think) won the Asia competition in Kuala Lumpur.

I should warn you that I am the worst tourist ever. Most of my pictures are of workshops, parts, stores, aluminum, or some combination of those nouns, such as "aluminum stores." Here is my one and only touristy picture from the entire trip so far:

And it's not even a good picture.

I mentioned that the SUTD interim interim campus is the third and fourth floor of a primary school. For obvious safety reasons, primary schools don't have fabrication equipment, so one of our tasks here is to create an interim interim shop. That is, a prototype of a "fabrication cell," a more-or-less self-contained design and fabrication space with modern rapid prototyping tools as well as the standard set of hand and power tools. The space in question was introduced to us as "the shed," which I thought was a little odd.

Oh, now I get it.

The shed, or as I've started calling it, Gecko Works, is a great place to escape from the faculty offices and actually do some hands-on work. Or at least, it will be, once we stock it with the essential machine tools. For now, it at least has tables, desks, an assortment of hand tools, and most importantly, air-con. In the weeks to come, we will be setting up a benchtop CNC mill and lathe, MIG and TIG welders, a drill press, horizontal and vertical bandsaws, grinders and sanders, and various other small tools. This is my first experience with actually outfitting a shop space from scratch, so I'm having fun.

Shop space is one component of making stuff. Another is parts (and raw materials). I figured the best way to get motivated to find parts and raw materials sources in Singapore would be to intentionally leave a few of the critical pieces I would need to finish Pneu Scooter in Cambridge. Actually, I just forgot a lot of stuff. So, some of the last two weeks has been spent tracking down good places to get stuff.

First of all, Hobby King still works in Singapore. In fact, it might work better, since much of their shipments pass through Singapore anyway on their way to the US. This takes care of things like radios, brushless motors, ESCs, wire, and of course, cheap lithium-polymer batteries. It was those that I was particularly after, since airline regulations (justifiably) prohibit me from traveling with homemade lithium-ion battery packs. So, I ordered up some of the "long" Turnigy batteries that I've been eying for scooter use ever since they were released.


At 111Wh (22.2V @ 5Ah) and $51.26 each, these batteries represent one of the best values on the market ($462/kWh). If only lithium polymer didn't have such dramatic failure modes, I would totally use these for everything. And they fit so nicely into Pneu Scooter's battery bay. Maybe some day I will overcome my fear of fiery death and use these permanently.

I also neglected to bring any polarized connectors with me, but luckily Singapore has at least two serious RC hobby stores, Rotor Hobby and Singapore Hobby Supplies. Don't expect Hobby King-like deals, though; the prices are on-par with what you would pay at a hobby store in the US (i.e. really freaking overpriced).

During my random scouting, I also stumbled upon an electric bike store. Since Singapore is closer to the source of mysterious Chinese brushless e-bike controllers, I should not have been surprised to find some in little baggies here:

I almost don't want to know what's inside.

In the same general area, I also found a very good, if oddly-named, hardware store:


And there's the (in)famous Sim Lim Square electronics tower, full of pushy salespeople trying to sell you mobile phones. It's kinda like a really big Radio Shack. Buried in there, though, are some decent electronics supply shops, where I was able to get soldering equipment, connectors, etc.

In fact, the only thing that I find sorely, horribly, frustratingly missing is a place to buy raw freaking material in small quantities. We are so totally spoiled by McMaster-Carr and Online Metals in the US that I haven't ever really considered where I would go to find aluminum chunks elsewhere. The concept of web stores in general is lacking here. Mostly, you go to a tiny shop with aisles just big enough to shuffle sideways through and annoy the owner until you get what you want. I actually found a shop like this specifically for aluminum:

It was closed...

I was seeking some 1/4" thick plate from which to make the part of Pneu Scooter that attaches the Razor scooter neck to the custom deck. You know, the bane of BWD. I wanted serious overkill plate stock this time, instead of sheet metal. I went back to Teck Cheong Aluminum during business hours to find that they would only sell aluminum in standard-length stock, i.e. 20-foot bars. So, I did what any reasonable person would do...

I accidentally the whole aluminum bar.

Pound for pound (all 30 of them), it's actually a very reasonable deal @ $1.81/lb. Compare this to the nearest product at Online Metals ($3.25/lb) or McMaster ($6.42/lb). Only, you have to buy enough aluminum to last through the next two zombie apocalypses. Oh well.

Back to Pneu Scooter.

Before I get to finishing the front fork and building my aluminum fortress, though, there were some lingering controller issues to be worked out. And even before that, some battery wiring. I decided to try something new: a precharging circuit for the controller. I am a bit tired of arc eroding my connectors (BWD's first connector had almost no metal left when I replaced it). The problem is that extremely high discharge 10-12S battery packs and oversized bus capacitors on the controller lead to major inrush current. There are all sorts of tricks for limiting inrush current, but precharging the capacitors through a resistor is one I'm familiar with from the Cap Kart.

Rather than putting a bulky contactor on the scooter, I opted for a two-connector system. They share the same positive lead, but one has a negative lead which passes through a 47Ω power resistor:

The precharge resistor.

The resistor is sized so that the precharge circuit can actually power-up the logic stuff (microcontroller, XBee radio) but it would have an unpleasant time trying to drive the motor. I found a wonderful back-to-back configuration for the Deans connectors that made wiring very simple, which you can see on the right-hand side of this photo with the controller, fuse, and precharge circuit:


The order of operations for power-up would be to plug in the precharge connector, followed shortly by the main connector. It's not necessarily user-friendly, but it will limit progressive connector destruction. In the process of wiring everything up, I came up with a simple plan for waterproofing which will probably have to wait until I'm back in Cambridge. 

Here's the part where I complain about motor controllers and how they are impossibly frustrating to build and how I should just buy one, and then realize that the ones I could buy for a reasonable price all suck in one way or another and that I am simply doomed to troubleshooting my hardware because it's still ultimately more effective. (Sound familiar? I went through the same cycle with BWD's 3ph Duo, which ultimately became a fairly reliable controller. I probably just need to stop complaining and accept the fact that hardware will cut you.)

The problem I was having back in Cambridge was that the program on the STM32 chip would spontaneously stop running, but the PWM peripheral would keep going with its last state. This is particularly bad for a brushless motor, since it just locks the drive up. At speed, this would be disastrous for both human and hardware. To take care of the safety aspect, I added a watchdog timer that resets everything if the control loop fails to run. This doesn't really address the root of the problem, just the symptom. 

As it turns out, much of the problem went away simply by actually setting the Hall effect sensor timing properly. (It was left in a state of "close enough" before, which was actually almost 45º off.) I still don't think this solves the problem, but it does point to possible avenues of further exploration. Is it sensor glitching? Is it the speed estimator? Do I need to add some more error handling? All possibilities. For now, it at least runs up to full speed and survives the less-frequent watchdog resets without destroying itself:

MIT Tech TV

The motor itself seems quite capable and efficient. At 33V, 100% throttle, with the timing set correctly for sinusoidal commutation, it only draws 1A no-load. Also, the external Hall effect sensors seem to be doing their job quite nicely, despite the imprecisely-cut magnet strips. In general, the subsystems all seem to be working well. 

I'm hoping the remaining problems are pure software, and not some horrible hardware-triggered software glitch. Even so, it'll take a few more controller tests and tweaks before I'm confident enough to road test it.  But, I do plan to keep working on it a bit here for the simple reason that, unlike Cambridge in November, it's hot here and I can actually ride it outside....maybe.

Friday, October 15, 2010

Pneu Scooter: Δt5

Pneu scooter large tasks:

1. Stator and rotor. Δt1
2. Deck fabrication. Δt2
3. Batteries. Δt2
4. Wind motor. Δt4
5. Motor-to-wheel adapter fabrication. Δt3
6. Encoder. Δt5

Yes, all the large tasks are done. No, you can't ride it yet. There are still a large number of small tasks to be accomplished, such as mounting the front wheel, adding connector and wires, and tweaking/tuning the controller. But I did make some progress. First, I terminated the motor:


It's a "distributed LRK" winding, but split into two half-motors [AabBCc] and [aABbcC] on opposite sides of the stator. Connecting the two half-motors in parallel and running wires out through the center shaft completes the winding of the stator.

Next, a part that wasn't really on the "large tasks" list but is still fairly important: the motor end cap. Since the end cap is not part of the load path from wheel to deck, it wasn't as critical as the wheel adapter. And the motor would spin fine without it thanks to the two wheel bearings. But I thought it would be good to just get it done so that the motor itself is a completed unit.

I went with the trademark transparent polycarbonate sides of the BWD motors, but added a chamfer to the edge (the way Max originally drew it...sorry Max). Also, a trick I learned from BWD: using a large screw and nut as a lathe fixture:

Nuts have six sides. Lathes have three jaws. Commence happiness.

Moments later, this:


Okay, I may have skipped a few steps on the mill. But it's the same hole pattern as in the outside rotor spacer, so I already had the X/Y coordinates I needed. I wound up taking a bit of extra material off the inside surface just to make sure the windings would clear without rubbing on the end cap. Here is the finished Pneu Scooter motor:


The end cap actually straightened the rotor out a bit. Not that it really matters since the rotor skew is on the order of 1mm from one side of the motor to the other. After final assembly I re-tested on the lathomometer and found the back EMF constant to be 0.206V/(rad/s) - which is also 0.206Nm/A - assuming sinusoidal commutation. That's pretty much right on target using any of the prediction methods I've tried. It's roughly the same constant as BWD's front motor, but since it will be able to pull more Amps, it will have higher peak torque. (Though admittedly not as much as BWD's two motors combined.)

I still needed a commutation encoder, though. I decided against internal Hall effect sensors and was geared up to pursue a reflective optical track with IR sensors. I even printed out a set of tracks and laminated it. But then I had second thoughts. Such an encoder would be sensitive to changes in ambient light, dirt, water droplets, all things I'm likely to encounter. Hall effect sensors are nice because they are immune to most of that. But internal Hall effect sensors are impossible to adjust without disassembling the motor, and also they may interact with stator flux. As an encoder of absolute rotor position, the sensor should be picking up rotor flux only. (In a PM motor like this, the difference might be minor.)

BWD used external Hall effect sensors, mostly because we didn't know any better. But they actually turned out to work very well, picking up the fringing field from the huge, overhanging rotor magnets through the polycarbonate end caps. This time, though, the magnets don't overhang very far and the field on the outside of the rotor is not enough to reliably trip the sensors. Somewhere on this train of thought I was browsing on McMaster and stumbled on P/N 3651K4, a flexible magnet strip that's sort-of like an industrial refrigerator magnet. I wound up just cutting this strip into 14 equally-spaced pieces and gluing them to the outside of the rotor can.


Total elapsed time for thinking of this idea, ordering magnets, thinking it is probably a bad idea, doing it anyway, and finding out that it works fine: three days. Yes, it will pick up metal junk from the ground. But so did BWD. It's good for cleaning the shop floor / finding small hardware.

The companion for this sense magnet strip is an external Hall effect sensor board, which I made from convenient polycarbonate:


It also happened so fast that I didn't have time to second-guess it. The surface is courtesy of a 5" boring cutter, which is probably the most dangerous thing I've ever stuck in a mill. The sensor spacing is 17.1º, which is 360º/7/3. (Seven pole pairs per revolution, three sensors per pole pair.) This board mounts to the inside of the rear fork, with a small gap between the sense magnet strip and the Hall effect sensors. The sensor cable from the controller plugs right in to the connector on the sensor board.


And that just leaves the big question: Does it run? Well, as it turns out, I have not quite met my goal of producing a drivable scooter before I leave for a month-long trip to Singapore (during which I will certainly be posting). But the point, maybe, was just to motivate me to actually work on it since I find that grad school generally makes me slow and unproductive as I sit and ponder theoretical possibilities or work on prep work for 2.007. Besides the handlebar and front fork/wheel, there is still a lot of wiring to be done. I did manage in the last bits of time I had left to get the controller operating in six-step commutation mode (noisy mode, I call it), and the motor spins quite nicely. This means that even the hand-cut sense magnet strip is good enough to trigger effective commutation. But it will take some more debugging to get it running in full field-oriented control mode. And I am flying out in a few hours. Hrmmm, what to do...

 To be continued.....

Friday, October 8, 2010

Pneu Scooter: Δt4

Pneu scooter large tasks:

1. Stator and rotor. Δt1
2. Deck fabrication. Δt2
3. Batteries. Δt2
4. Wind motor. Δt4
5. Motor-to-wheel adapter fabrication. Δt3
6. Optical encoder.

This is the painful step. Actually, it wasn't too bad.

Extensive lathomometer testing with a test winding of 40 turns per tooth predicted a back EMF constant of 0.190 V/(rad/s) under sinusoidal control. In RC terms, that's Kv = 50.3 rpm/V. This would give a no-load ground speed of almost 30mph at 33V. That's a bit fast, but in the right ballpark. There's really no such thing as a no-load ground speed, so in reality the top speed will be lower. But still, I decided to trade a bit of speed back for more torque by planning for 45 turns per tooth.

Interestingly, this makes it identical in turn count to BWD's rear motor. Since they have identical 2D geometry and per-phase turn counts, the only difference is the stator stack length: 0.875" for BWD and 0.625" for this motor. Shorter stator means a lower back EMF constant (or a higher Kv). BWD's back EMF constant was for six-step commutation, not sinusoidal, but should still give a reasonable estimate. From this, Pneu Scooter's motor would come out at around 0.214 V/(rad/s), or Kv = 44.6 rpm/V.

Enough math: Let the winding begin. I opted for double-stand 22AWG instead of bulky 18AWG like BWD's motor. With it, hand tension is sufficient for making the turns, so I can hold the stator and wrap it with wire rather than fixturing the stator and using extra equipment to keep tension. I've given up on ever having the patience to wind motors with perfect layers. I started each tooth with a clean layer, sometimes even two clean layers, but after that my only concern was fitting the turns in wherever they would go. Here's the first half-phase:


It's a 12-slot distributed LRK winding: [AabBCcaABbcC]. But, rather than wind Aa and jump across the stator to aA, I'm splitting it into two half motors: [AabBCc] and [aABbcC] which will then be connected in parallel "Y's" for twice the current. Turns out this is the proper way to split a dLRK winding into two parallel motors - you can't just wind two interleaved LRKs. (It took us some time pondering and reading German websites to figure that out.) If you're following, each phase will then be 90 turns of 4x22AWG wire, almost double the current-carrying capacity of BWD, which had 1x18AWG. If you're not following, maybe this will help:

 No, probably not.

The idea here is that, after winding six sets of two teeth in the same manner, all the stars are connected (or, at least into two groups) and then the A's, B's, and C's are connected in parallel. To make things even more convenient, add or subtract a half-turn as necessary so that all the stars are on one side and all the A's, B's, and C's are on the other. That's what I was shooting for. Here's all but one set of teeth wound:


The last set is blocked in from both sides, so it was the hardest to fit, but ultimately it worked. The plastic end laminations do a great job of protecting the windings from the edges of the teeth, but the inside surface of the top of each tooth is relatively unguarded and a likely place for shorts. I found at least one, but luckily it went away with some shoving of wires away from the tooth top. Ideally, I would have epoxy coated the tooth tips ahead of time. But, as it is, I'll live with encasing the entire thing in epoxy while nothing's shorted.

 I hate epoxy.

We didn't do this on BWD and I kinda don't like it in general. It's a bit too permanent for me. But it should offer more protection against vibration and shock knocking the windings around. It might also help with heat transfer to the core. Or it might permanently encase a mistake that will cause me to have to re-do the entire stator. We'll find out in a few days!
 

Monday, October 4, 2010

Pneu Scooter: Δt3

Pneu scooter large tasks:

1. Stator and rotor. Δt1
2. Deck fabrication. Δt2
3. Batteries. Δt2
4. Wind motor.
5. Motor-to-wheel adapter fabrication. Δt3
6. Optical encoder.

Another weekend scooter party at MITERS, another large task taken out. I decided to skip over the motor winding and instead tackle the most critical part of the pneumatic wheel hub motor: an aluminum adapter that joins the BWD-profile rotor can to the plastic rim of the pneumatic caster. This part:


The reason I identify this as the most critical part is because, against my better instincts, I am relying on the plastic wheel hub as an integral part of the motor's structural loop. It takes the place of what would normally be a carefully machined aluminum or polycarbonate side wall, and I have to live with both its relative elasticity and its imperfect geometry. The good news is that it has very nice bearing pockets already and a flat, thick rim. The aluminum part in focus reinforces the rim and aligns the rotor so that it's concentric with the bearing pockets in the wheel hub.

Unfortunately, this thin part has an inner/outer diameter combination (4.625", 3.313") that didnt' match up with any tubular aluminum stock, so I used a solid 5" diameter chunk of 6061, which is certainly the biggest stock I've ever started from...

Before and after.

Needless to say, this was not the quickest operation ever. From that chunk of aluminum I also made the outer rotor spacer, which is almost a mirror of the rim adapter. Here they are together, before adding bolt patterns:


The outer rotor spacer (right) has one less "step" than the rim adapter (left) because it clears the stator entirely, which is good because it means I can drop the stator in and spin it without actually removing any of the parts that hold the rotor to the wheel, something I'll get to later. But first, lots and lots of bolt holes.


First, in the wheel itself. I made a multipurpose mill fixture out of the leftover scooter deck u-channel. The part to be machined is screwed into the u-channel from below. Here, the wheel gets a pattern of seven 4-40 tapped holes, centered on the bearing pocket's ID. The thick rim allowed several full threads, which is good.


Next, the matching countersunk hole pattern, as well as another set of seven tapped 4-40 holes for the rotor can, went into the rim adapter:


And when the aluminum chips settle, the rim adapter and real bearings make the kinda lame caster wheel look like something a lot more respectable:


The rim adapter actually isn't in the load path from the tire to the shaft; that load goes straight into the two wheel bearings. Instead, this part is only responsible for aligning and holding the rotor in place over the stator, which is fixed to the shaft that passes through the wheel bearings. So, I'm not worried about the 4-40's getting ripped out of the plastic or anything. I'm more worried about concentricity and bolt pattern alignment. The wheel hub itself is not perfect, though, and the stator stack is very skewed, as I'll mention later, so I probably didn't have to obsess about this part as much as I did. But whatever, it's still cool.

With the rotor and (still blank) outside rotor spacer, the assembly looks like this:


The outside rotor spacer's inner diameter is just about tangential with the flat spot of the magnets, which means it easily clears the stator. This is a very nice feature because it means that I can add the seven bolts that hold the rotor to the rim adapter before dropping the stator in. And, because the wheel already has two bearings, the stator should be fully supported without the eventual outside bearing plate. This is extremely convenient, as you will see shortly. But first, the rotor and stator together for the first time:


After the satisfying snap of the stator being sucked in by the magnets, I was very pleased to find that it did in fact spin freely with no outside bearing. I'll still add the outside plate and bearing for weatherproofing, but this gives me confidence that the plate is non-structural (or at most semi-structural...) and can be made thinner to accommodate more windings if necessary.

While the rotor has a little bit of wobble due to the imperfection of the wheel hub itself, it's nothing compared to the major skew in the stator stack. And not the good kind of skew...this is the kind that closes the air gap on one side of the motor... 


...and opens it on the other...


The stack must have been poorly fixtured during the gluing phase. It's not quite as bad as it looks, since the inner layers of laminations have almost the opposite skew. But there is still a net asymmetry that has me worried, and unfortunately I am just a few laminations short of being able to produce another stack. I think it will still work, since BWD's extra-thick magnet design is supposed to absorb exactly these kinds of manufacturing errors.

I know! Since the motor is well-supported without the outside bearing, I have temporary direct access to the stator... Why not put on a test winding?


Here is the motor with three test windings: one on the "wide" air gap side, one on the "narrow" air gap side, and one in the middle. Each winding is 80 turns on two adjacent teeth (40 per teeth), which represents a single phase of the motor. Two such windings on opposite sides of the motor would be wired in parallel for the final configuration. I used very small gauge wire here since it's only for no-load back EMF measurement. And yes, the wheel is being driven by that lathe while the stator and shaft are fixed in the drill chuck...

The result was only about a 5% difference in generated voltage due to the skewed stator. The projected torque constant is pretty much on target at 0.191Nm/A for the narrow gap side and 0.183Nm/A for the wide gap side. Wiring the two opposing sides in parallel will create some current flow and I²R loss because of the different constants. But, taking into account the operating voltage and estimated resistance, this should be a small (<1W) power drain at worst. So, I should stop worrying and just wind it already.

Wednesday, September 29, 2010

Pneu Scooter: Δt2

Pneu scooter large tasks:
1. Stator and rotor. Δt1
2. Deck fabrication. Δt2
3. Batteries. Δt2
4. Wind motor.
5. Motor-to-wheel adapter fabrication.
6. Optical encoder.

Time step #2 takes out two whole tasks: deck fabrication and batteries. They kinda go together, since the deck is primarily a box for the batteries (and secondarily something to stand on). I've learned my lesson about sheet metal decks, and I don't have the patience or waterjet access required to design complex interlocking tab/slot decks. I wanted to make billet scooter - a deck machined out of a solid block of aluminum - but my fabrication skills and personal discretionary funding are not up for that. So, I settled for the next best thing, which is a deck machined from a single aluminum u-channel.


It started as McMaster PN 1630T351. Cutting it to length was easy, but taking an inch or so off the legs was not trivial. My first thought was to clamp it base down in the mill and face the legs down to size, but this would have taken several very noisy passes. The final "solution" was to stuff three 2x4s in the space between the legs (which is conveniently 4.48"), clamp the whole stack sideways, and slice through the legs with a 1/2" end mill. This left a fairly rough surface, so I went back to Plan A for a finishing pass. The wheel well was a quick bandsaw + finishing job.


Then came the part I was dreading. 14 instances of blind-tapped 4-40 holes into the legs, plus six more into "firewalls" in front and back. It took the better part of a Sunday afternoon. I became progressively more careful because breaking a tap off in hole #20 of 20 is not a good thing. I actually did break a bottoming tap, but luckily it was in one of the firewalls which is an easily replaced piece of polycarbonate.

Should have used t-nuts...

The good thing about tapped holes like this (as opposed to t-nuts) is that it gives me a fighting chance to make the deck splash-resistant, something that would help if this is to be a true commuter vehicle.

I really like the construction of this deck. It's a good deal sturdier than BWD's sheet metal construction. The polycarbonate bottom is "abrasion resistant" (we'll see how long that lasts...) and allows the battery to be bottom-loaded instead of squeezed through an impossibly small hole in the front like BWD. Speaking of the battery:

Mystery battery is mysterious.

Actually, it's the same battery as BWD: a 20-cell A123 26650 pack in 10S2P configuration. (It's exactly like two 36V DeWalt drill packs in parallel.) In fact, for all you know that's what it is... The total pack is 33V and 4.4Ah. Unlike BWD's pack, this one is soldered instead of welded and great care was taken in laying out balance and power leads since I thought the deck space was going to be tight, especially width and height dimensions...


...Turns out I did so well that it slipped right in from the front anyway, with room to spare. The power leads come off the back to where the controller will be. I chose to put the balance leads up front for access through some kind of yet-to-be-designed flap in the front firewall. Turns out Digi-Key sells JST-XH connectors, the standard for small battery balance leads, in many sizes for pennies each. To them, I can attach the closest thing I will ever have to a battery management system:

LiFePO4...so consistent.

That's it for now. Next will probably be motor winding...

Sunday, September 26, 2010

Pneu Scooter: Δt1

I'm off the Singapore in about three weeks to visit the brand new Singapore University of Technology and Design. It should be an awesome trip - my third time in Asia, but my first trip longer than two weeks. Since it will be all cold and wintery in Boston by the time I get back, I sort-of want to finish Pneu Scooter before I go. Not that I'll have any time left to ride it, but it's just good to have some kind of deadline to force me to do it. (As a graduate student, it now takes me at least twice as long to do things I used to be able to do...)

So, here we go, time step #1:

I don't know why there is mixed fruit in this time step.

I really dislike adhesives. But they are a necessary evil and I am trying to get the sticky parts of the scooter build out of the way early. Gluing the stack of stator laminations together is one of those unavoidably messy processes involving three quick clamps, CA glue, some two-ton epoxy, and a sacrificial brush. The CA quickly wicks into the laminations, tacking them in a few places, then the epoxy makes a final coating on the outside surfaces.


You'll notice the two 1/16" plastic end laminations also glued to the stack. These are slightly oversized versions of the steel laminations that serve to protect the corners of the stack, preventing them from digging into the thin enamel coating on the magnet wire. This is in lieu of a complete epoxy coating on all the steel surfaces (or slot wedges). Hopefully the extra-large air gap will allow enough wiggle room for the epoxy coating and slight skew of the stack. If not, some creative lathe work may be in order.


This is the main wheel-motor shaft, made of 7075 (for the alloy cred). In the wheel-motor design, the shaft is stationary, so it's tapped on both ends for attachment to the rear deck forks by way of 1/4-20 machine screws. The two roll pins slide into a slot on the stator laminations, keying them in place and transmitting reaction torque to the shaft. Finally, the milled slot is one of many ideas I've stolen from Charles about how to build these things. Rather than drill cross holes and try to pass wires through the center of a hollow shaft, as in BWD, the three wires will simply lie side-by-side in the slot to pass through the bearings:


The slot faces upward, while most of the bearing load is borne by the bottom half under normal usage, so this doesn't significantly hurt the structural loop. So, please don't use this design for your inverting roller coaster with in-wheel motors (!!! That would be awesome!), but for a scooter it's fine. The pass-through wires are only 16AWG, but short and surrounded by aluminum, so they will definitely not be the I²R bottleneck.


Here's the stator-on-a-stick, next to the new rotor, also glued and drying now. The reason I don't have incremental pictures of building the rotor is because it literally took 10 minutes. It's made of three 1/4" plates of low-carbon steel, waterjet cut to the same time-saving shape as BWD's rotor laminations. The magnet indents remove all of the hassle of spacing and gluing (though it is still quite possible to crush your fingers). So, it went together so fast and my hands were so sticky that I couldn't take any pictures of the process.

Anyway, that's the current state of things. Next I will need to tackle one of many remaining large challenges: either machining the deck, winding the motor, machining the critical wheel adapter plate, or making the battery pack. Or, you know, all of those. Only the next time step will tell.

Monday, September 20, 2010

Pneu (New) Scooter

And the winner is...

...the skinny pneumatic wheel.

After careful consideration, this is the wheel of choice for my new kick scooter project, beating out three other options. It addresses one of the most significant problems with BWD: the flat, hard, urethane wheel treads. A pneumatic tire will afford much better ride quality, not to mention vibration and shock absorption for the frame and electronics. And at 6", it will be able to clear larger cracks in the sidewalk or the road. But, it's still closer to the kick-scooter look and feel than large electric scooters with 8-12" wheels.

Pneu Scooter, as it will now be called, is my new attempt to play with the engineering trade-offs of electric scooters. Size, weight, range, power, noise, ride comfort, and durability are just some of the interdependent knobs you can turn. I wish I could make a cool visualization to show how I'm (blindly?) feeling my way around this design space, but I can't, so here's 1,000 words instead:

Starting with size. I should be very clear that I'm making a kick scooter. A kick scooter is like a Razor scooter or a Xootr, not like the kind you sit on. Going a step further, I'm not interested in a bulky/wide electric kick scooter such as...well, pretty much every commercially available one. Stealthy electric kick scooters are all the rage these days, enabled by lithium-ion batteries and cleverly-designed in-hub motors. The problem is, 125mm hard urethane wheels or the equivalent are no match for the 200x50 (mm) pneumatic tires on most commercial electric kick scooters. At 150x30 (mm) these wheels are a good compromise.

This is what happens when you mix SolidWorks with MSPaint.

IMO, it totally looks like a normal kick scooter with these wheels. Maybe not the little kid's Razor scooter...but it could easily pass for one of the slightly larger models. The key difference is that, as depicted in an artist's rendition above, it can ride over sidewalk cracks without the freight train effect thanks to the pneumatic tires. Can it hop curbs, clear speed bumps, jump potholes, or ride over railroad crossings...probably not. But hopefully it will have just enough shock absorption to protect the important stuff from the normal scooter environs of asphalt + sidewalk.

Unlike BWD, Pneu Scooter will only have rear wheel drive. BWD had an "excessive" amount of torque anyway, and having one hub motor will cut down on weight and complexity. Speaking of the hub motor, the reason you don't see it in the above render is because it's on the other side of the wheel. (I tend to ride right-footed, so I lean left.) Here's a close-up render from the other angle:


The hardest part of using these wheels is adapting BWD's hub motor design to mount directly to the wheel rim. Ultimately, there's no way to make this wheel/motor combo as stealthy as, say, Project RazEr. It's going to stick out, the only visible clue that it's not a regular kick scooter. But it is still more compact and more quiet than a belt drive. In fact, with sinusoidal commutation it could be nearly silent. Here's a closer look at the motor construction, as planned:


The stator is made of leftover BWD laminations from Proto Laminations. These are custom ~83mm laminations that, no offense other-mini-hub-motor-makers around here, kick ass compared to copier motors. They're optimized for torque. To complement these, the rotor will have 1/4" thick NdFeB magnets, just like BWD. These allow an extra large air gap without too much performance loss. For the rotor can, I'm trying something new. I don't have any more Proto rotor laminations, but I also really dislike the idea of relying on adhesives to hold magnets in place. So, I sent BWD's rotor file to Big Blue Saw's low-taper waterjet service, to be made from 1/4" cold-rolled steel plates. 


The rotor sees less time-varying flux, since it's dominated by the permanent magnets, and so solid steel will suffice as far as eddy currents are concerned. But, unlike a plain cylindrical can, this will have indents for aligning 14 magnets, which will make assembly a lot easier. This trick on BWD probably saved a full day's worth of spacing and gluing magnets. This rotor and stator are shorter than BWD's, which will trade a bit of torque for speed, all other things being equal. Just something to keep in mind when choosing the number of turns for the winding.

The most important part on the whole scooter is this one:



It's responsible for basically all of the alignment of the rotor and stator, and is my attempt to mitigate the risks of using the plastic wheel hub itself as part of the motor's structural loop. This adapter, made from aluminum, has features on both sides which interface with the outer surface of the wheel rim and the outer surface of the rotor can, hopefully making them concentric. Seven countersunk 4-40 screws hold the adapter to the rim, while seven through-bolts into tapped holes in this part hold the rotor to the adapter. This is the "scary" part of the build, but hopefully the extra-large air gap and outside bearing will help out here, too.

The shape of the wheel lends itself to this design mostly because the concavity in the hub matches up with where the motor windings will be. This will allow plenty of room for termination and wire exit on the wheel side of the stator. Here's a cross-section showing the space inside the motor:

If anyone says "three bearings" in the comments I will hit them with Alex Slocum's book.

The exact winding (configuration, wire gauge, and termination) is TBD. I will be targeting a torque constant roughly equal to BWD's front motor (0.20 Nm/A or Kv = 47rpm/V). But, it will have a denser winding, utilizing all twelve teeth instead of six, so it should be able to pull more Amps. I would be happy with 30A-40A peak and 15A continuous at up to 33V. Having holes in the wheel hub raises some interesting cooling possibilities, though I will probably want to seal those for weatherproofing instead and just live with lower continuous current.

To supply the power and range, the deck is essentially a battery holder made out of McMaster PN 1630T351 aluminum U-channel:


It'll have exactly the same batttery pack as BWD, a 4.4Ah LiFePO4 battery at 33V. So, 2xDeWalt. Unlike BWD's front-loaded pack, this one will be bottom-loaded. This means real structure at the front of the deck where the Razor handlebar will attach, the bane of BWD's existence. Fool me once...

Lastly, the controller will be the 3ph HD, mounted upside down to the semi-infinite heatsink / deck. Sadly, it will probably not be playing music while moving, since it requires a host computer to stream the MIDI file. But, maybe in a small room as a demo. Otherwise, it'll make a good load test for the HD under normal operating conditions at 500-1,000W input.

That's the plan. Time to press play.