Tuesday, October 16, 2018

3D Model Extracted From CT Scan

More stuff moved over from my old web site.... Just in time for Halloween!


In 2007, when I was in dental school, I had a cone beam CT scan done.  I was going to have braces put on my teeth and I had a dental implant at #3 and I think they wanted to check the implant status before attaching brackets to my teeth.

After the scan was done, the radiology tech showed me the visualization capabilities of the software.  It was very impressive.  I had been reading about 3D printers for years and decided that I wanted a copy of the CT scan data because I planned to be able to print it some day, so the tech burned the data to a CD (remember those?) for me.

Six years later, and I had built MegaMax, my first 3D printer.  I located the CD with the CT scan data and went to work on finding free software that would allow me to extract data and produce a printable model.  It was a real project at the time- there were only a few free packages that could do the job.  I think I spent a total of about 40 hours hunting for software, then learning how to use it, and finally extracting the model and cleaning it up for printing.

I used software called DeVide, which no longer works in Windows, to do the initial job of isolating the tissues for a 3D printable model.  I also made multiple still images by sweeping the tissue density, then assembled them into an animated .gif file:




These days there are other software packages that can do the image processing, and it doesn't matter if the data is from a CT scan (x-ray based) or an MRI (magnetic, images water in tissues).  If you have a Mac, look up Osirix.  For windows there's InVesalius.  3DSlicer works in Windows, Mac, and Linux.  

YouTube has how-tos for extracting models from DiCom data files.  Here's one for InVesalius:


Human skulls have cartilage, lots of soft tissue, bones, teeth, and air spaces.  When you extract a model from a CT scan using tissue density to select teeth, you lose a lot of low density bone (eye sockets, sinuses, etc.).  When you reduce the tissue density to try to get the low density bone into the model, you also get the cartilage.  That sort of thing leads to a lot of clean-up to make the model printable.  If I remember right, I ended up using 4 different software packages to finally produce a printable model from the CT scan data.

Pencil and toothpick cups made from CT scan.


I also made keyfobs from the same file.  You can find the models here.

One of the difficulties with trying to do this sort of thing is the difficulty of obtaining detailed CT or MRI scan data.  That stuff is all protected by patient confidentiality laws- even if you strip the files of patient name, etc., the file data contains a likeness of the patient's face so it can be linked to that person.  Unless you use your own data, you'll have a hard time finding data that you can use to extract a human skull.  There are several data bases on line that contain data of human and animal scan data, but they are often limited for academic use only.  

I have put my own CT scan data in the form of a Dicom multifile on line.  You can download it here.

If you ever have a scan done, you might want to make arrangements in advance to get a copy of the complete data.  If you wait until months later and request a copy, there's a good chance that only part of the data will be available.  Even though it is your data, you may have to pay a small copying fee to obtain it.

Wednesday, October 10, 2018

Fractal Hand

In early 2005 I was visiting family in Milwaukee and saw a handbill taped to a light pole on North Ave advertising a psychedelic band that was going to be playing at one of the local bars.  The handbill was a bad photocopy with a hand drawn in ink that had hands at each of its fingertips.  I really liked that image.

Months later, I was trying to learn to use Adobe Photoshop and remembered that handbill and decided to try to make a photographic version of the image.  I put my hand on a scanner, saved the image, then went to work on it.  I don't remember the whole process, but it involved making the background black, scaling and rotating multiple copies of  the image on multiple layers, and using the rubberstamp tool to obliterate the seams where the wrists joined the fingers, and finally flattening the whole thing to one layer.  IRIC, I spent about 2 hours working on it, mostly because I didn't know what I was doing and had to look up each step as I performed it.

This is the result:

Fractal Hand, an L-system fractal


Blogger shrank the image.  The original, is much bigger and more detailed.

Over the years I've had several requests to use the image in books, etc., and I've had a few tee-shirts made that look really great.  I wear some of them myself and have given a very few as gifts to special people.  I get many complements on the shirt whenever I wear one of them.

Someday I'll create a 3D printable version of this thing.  It will probably have to be printed on an SLA or SLS machine to capture the tiniest fingers.


Insect Photos

When I lived in Dallas and later, Missouri, there were a LOT of interesting bugs.  I outfitted my 3 MP camera with a closeup lens and flash bracket and took a few pictures of some of them.  The pictures below were originally posted to my web site and now moved over here...


Mark's Bug Pix
I've always liked optical toys, especially cameras and microscopes, and I've always liked creepy-crawlies (except chiggers, which I hate).  Shortly after I got my first decent digital camera I started shooting pictures of insects and bugs.  I lived in Dallas when I got my Fuji Finepix S602z 3 megapixel camera, and I quickly bought a color corrected 5X closeup lens.  I modified an external flash bracket and use a relatively low powered auto exposure flash unit for close-up work.



I set the camera for minimal sharpening, and usually use manual focus, then move the camera back and forth to focus the image.  Sometimes I get what I want after only four or five photos, other times I shoot twenty and can't get the image I want.  Digital photography is perfect for macro work like this- the film is really cheap!  Of course, the bugs don't always stand still either.  Whenever I can I try to capture them flying or on the run or jump.  It isn't easy but when it works it really works well.
My lens is often just a few inches from the bug.  By getting in close I maximize the bugs size in the view finder and get as many pixels as possible into the image.  In the photos where the background is bright, I used natural light, or set the flash to auto mode.  Using the flash at higher power setting makes the background, which is sometimes distracting, go black or nearly black.  It looks unnatural but focuses attention on the subject.  Yes, those photos are taken during the day, often in bright sunlight.  The flash is so close to the subject so a very short shutter speed can be used even with the lens stopped down to f11 for maximum depth of field.  The daylight illuminated portion of the scene is grossly underexposed making it go all but black, and the portion lit by the flash is perfectly exposed.

3 megapixels is getting to be a little low-res these days.  I hope to upgrade to a higher resolution camera sometime in the not too distant future.

Here are some of my favorite photos.

A pair of metallic green bees.

A leaf butterfly.

This is called a mantis fly.

A bee fly on a thistle.


A Synchlora moth.  This one is about 1/2" long.



I managed to catch this Syrphid fly hovering in front of the camera lens.  Maybe he was looking at his reflection. 


Syrphid fly at rest.



This is a real moth I found on my porch in Missouri.  It was about 1/2" long.



A bright green grasshopper.


Here's a small gray butterfly (Gray Hairstreak?) on a milk week plant near Dallas.  Can you find the aphid in this picture?

A classic "bug".

A small (about 3 mm  long) metallic green fly.





Honey bee surveying a thistle in Dallas.

Another honey bee, landing on a flower.

Another honey bee looking for a meal.  Honey bees are great subjects because they hover a lot and don't seem to mind if you get close to them.

Another honey bee.

Last one, I promise.



This is an Acorn Weevil, (Curculio sp.) about 1/4" long.  More info here.

Another shot of the acorn weevil.  Yes, he's pretty small.



A cicada emerging from its shell.



The cicada, about 15 minutes later.

This dragon fly lifted its head and smiled for the camera.

An Imperial moth.

One of my favorites from Missouri- a male Luna moth.




Another Luna moth.  

A Polyphemus moth




A thistle that's releasing seeds.

A Tiger Swallowtail caterpillar.

This was a surprise!  The Tiger Swallowtail caterpillar has some foul smelling scent glands that pop out of its body just behind the head when it's disturbed.


















Tuesday, October 9, 2018

DIY Carbon Fiber Full Suspension Recumbent Bicycle

In 2005 I designed and built a carbon fiber bike in my garage in Missouri.  The stuff that follows is content moved over here from my old web site.   Yes, I still have the bike, and I still ride it, though not as much as I used to.  I have made some minor modifications, but have not had any more frame failures since the one described far below...



Ever since I first saw a recumbent bike (either an article in Scientific American magazine on human powered vehicles, or a TV show with a segment on HPV races) I wanted one.  That was almost 30 years ago. At the time I was a high school student and could not afford to get a recumbent bike, even if I could find one.  In the mid 80's recumbents starting to gain some marketing momentum.  I lived in San Diego and used to go to see the HPV grand prix in La Jolla and was bitten by the recumbent bug again.  I bought a Hypercycle frame from a company in LA and built up the bike.  It was a short wheel base (SWB) design that was fun to ride but not real good for long distance riding mainly because of the upright seating position.

I built the Hypercycle with a 26" rear wheel and very high pressure tire.  The rear wheel hub is a Sachs 2 speed internal gear plus six cog cluster giving me 12 gears all shifted at the rear wheel.  The hub also has a drum brake.  The bike originally used one long chain with an idler located close to the steering tube.  I did some experimenting with non-circular chainrings and even rode a rather extreme one (I called it "Mark-Pace" because Shimano Bio-Pace rings were big back then) on a Tecate to Ensenada ride, 75 miles through mountains, desert, vineyards, and finally coastal roads.
Here it is now!

Elongated chain ring I made in the early 80s for the Hypercycle recumbent bike.
That 75 mile ride felt like walking up stairs.  I found climbing hills to be much easier with this ring than a circular ring.  I retired that chainring when I replaced the idler with a mid-drive gear that you see on the bike in the photo below.  The mid-drive was quiet, smooth, and didn't let the chain throw itself off the chainring if I happened to pedal through a turn.

Fast forward to 2004, and there are lots of recumbent bikes available, but now that I can afford one, I am too cheap to buy one.  A commercially made recumbent bike with the stuff I want, such as the HP Velotechnik Street Machine costs over $2000.  I also like making things myself, as you may see from some of my other projects on this web site.  I decided to try designing and building my own recumbent bike.

My experience with the Hypercycle helped me decide what I wanted in a bike.  I liked the handling of the SWB design, but did not like the upright seat position.  On a recumbent you can't stand in the seat and let your arms and legs absorb the bumps, so suspension REALLY helps.  The Hypercycle used to bounce me around a lot on rough roads so full suspension was added to the list of must-haves.  I also wanted to be able to haul some cargo- I routinely need to carry 10-15 lbs of books to school and I'd like to make some long trips which will require the ability to carry some weight.

Desired features and reasons:
  • Recumbent - comfort, especially over long distances
  • Short wheelbase frame - good handling, relatively compact size
  • 20" wheels - BMX size so tires can be purchased anywhere, one size spare, acceptable seat height
  • Reclined/adjustable seating - comfort, performance
  • Minimum heel strike - allows good maneuvering at low speeds
  • Cargo hauling - commute to school with books, long trips to be made in the future
  • Wide gear range - allows hill climbing and high speed cruising
  • No front derailleur - ugly, and I just don't like them, experimental chainrings
  • Full suspension - comfort- can't stand up on rough roads
  • No idlers if possible - noisy and inefficient
  • Under seat steering - why hold my arms up? and in a crash, safer, I think
I looked at several bike frame construction methods including welded/brazed metal tubing, wood, recycling old bikes by cutting the frames and joining them, and finally carbon fiber composite.  I ruled out welding/brazing and recycling old frames by welding/brazing because it requires a lot of expensive equipment and from what I read, a lot of skill.  I also felt that it would restrict me to using commercially available tubing and lock me into a sort of conventional design.

After a lot of reading at web sites and some trips to the library, I decided that carbon fiber composite was the way to go.

Frame Design

I chose carbon fiber (CF) composite construction because it required a minimum of tools that I didn't already own and CF allows a very wide range of design possibilities - not limited by commercially available tubing sizes.  The only tools I needed that I didn't already have were a vacuum pump and gauge.
I spent a lot of time hunting for good deals on parts, including making a trip to a big bike swap-meet in Madison, Wisconsin, in January.  You know someone's hard-core if they travel across two states to go to a bike swap-meet in Wisconsin in January!  After acquiring most of the parts I would need to complete the bike, I started making CAD models of them to allow me to design the bike on the computer.  This let me check chain clearance, and etc., before building the bike. Along the way I encountered several problems:

    Mechanical issues - how do I make it work?
  • Suspension pivot - what sort of hardware to use?
  • Wide gear range - how do I achieve this with 20" wheel?
  • Rear shock absorber mount
  • Accommodate multiple rear wheel sizes in case I don't like 20"
    Bike fit issues- how do I design it to fit my body?
  • Steering - What handlebars? Will I be able to reach them?
  • Seat construction
  • Seat mount - how to make it adjustable and secure?
The solutions to the problems almost always led to additional problems.  Here is how I solved some of them.

The wide gear range without a front derailleur and using a 20" wheel was a tricky issue.  With a small wheel it's pretty easy to have "low" gears that will let you climb hills easily, but hard to get high gear ratios needed for high speed cruising and suicidal speed descents.  I thought about the range I wanted- on the low end I wanted it to be a little higher than the low gear on a typical mountain bike, and on the high side I wanted a gear that was about as high or even a little higher than the high gear on a typical road racing bike.  That is an overall range of about 5:1 to 6:1.

There are wheel hubs that have 2, 3, 7, 8, and 14 speeds all accomplished by internal gearing- no derailleurs required!  I considered using one of those but the range of gears available was not wide enough.  There are also hubs that combine a 2 or 3 speed internal gearing system with a multi-cog gear cluster so you have have as many as 24 or 27 gears all accessible at the rear wheel without any front derailleur.  Unfortunately, all those options are pretty expensive.  They require building a custom wheel, and the hubs are usually not cheap (the 14 speed hub costs about $1000!).  I decided to stick with a conventional rear derailleur system and work out something with a mid-drive.

If you use a front derailleur with a single mid-drive gear you need to add some sort of chain tensioner.  When people do that they usually use an old rear derailleur to take up the slack in the chain.  I figured that if I was going to use a rear derailleur to take up chain tension, I may as well just shift gears at the mid-drive  and eliminate the front derailleur.  I crunched the gear ratio numbers and realized that this was the exact solution I needed- by shifting between four gears at the mid-drive and 8 at the rear wheel I could achieve a 6:1 gear ratio range using two standard rear derailleurs with a 20" drive wheel.

Full suspension usually requires that the bike frame be made in two pieces that are then connected by a hinge.  A shock absorber mounts between the two parts of the frame.  I needed to figure out what sort of parts to use to make the suspension pivot.  I looked at my MTB, and several others in local bike racks to see what was done.  Expensive bikes use ball or needle bearings, cheaper bikes have bronze bushings and steel shafts.  I didn't want too many pieces because I was afraid I would have difficulty aligning them when it was time to build the frame.

While doing some research into suspension frame geometry I found this site.  What I learned from it was that if you select the right pivot location relative to the chain line you can minimize the bobbing of the frame that occurs when you pedal hard.  The key is keeping the chain as close to the pivot as possible.

This gave me an idea.  I was going to use a mid-drive to get the gear ratios and range I wanted, and I need a suspension pivot, so I thought, why not use a rear wheel hub with a free-hub to mount the mid-drive gears?  Then I could use the axle as the suspension pivot.  This minimizes the "bob", and simplifies construction by allowing use of relatively cheap standard bike parts.  Another nice thing fell out of this decision- the rear swing arm geometry was simplified to two parallel stays, an easy to build structure.  Here is the CAD drawing I made to check sizes and clearances:

Original AutoCAD drawing of the rear swing arm for the CF bike.



Using a rear wheel hub for the mid-drive created another problem.  I had to figure out how to make a rear derailleur mount for it.  I already needed to make the dropouts for the rear wheel.  Adding a mid-drive with selectable gears meant I needed to make an extra set of dropouts for the suspension pivot, one of which also needed to include the mid-drive derailleur mount.

The shock absorber mount, seat mount, and cargo carrier all worked themselves out at once.  The only place I could figure out to carry cargo was behind the seat, over, and along side the rear wheel.  That meant I needed some sort of projection from the frame to bolt on the carrier, so I just made a "tail fin".  It turn out the tail fin was also a convenient spot to attach the shock absorber and the upper part of the seat mount.

Accommodating multiple rear wheel sizes turned out to be easy.  I just had to make a bolt-on brake mount that could be moved to allow a larger wheel to fit in the rear swing-arm.  As built, the bike will accommodate any rear wheel up to 27" diameter.  The front wheel is another story.  As long as I use a suspension fork up front, I can't accommodate anything bigger than a 20" wheel because a bigger wheel will lift the seat bottom too high.  If I use an unsuspended fork I might be able to go to a 24" wheel up front.

One of the biggest problems was figuring out how to make the bike the right size to fit my 6'2" tall body.  I dug up a few human body drawings and models but couldn't find anything that I could use easily.  I finally settled on making a few simple measurements of my body and hoped that the seat adjustability would take care of any errors.  I measured the distance from my back to my heels with my legs straight, and the distance from my shoulders to my palms, and the length of my back from my shoulders to my butt.  It worked out well.

Next I had to figure out how to make the steering work.  This site had a lot of info on steering geometry that helped a lot.  I decided on the head tube angle to use and then tried to figure out how to attach handlebars (and what handle bars to use).  This was one of the biggest unknowns in the whole frame design.  Would I be able to reach the handlebars when my feet were on the pedals?  I eventually found some handle bars from a commercial recumbent bike that worked well.  I later realized that the head tube angle of this bike was quite adjustable by simply moving the rear shock attachment point on the tail fin.  This allows a wide range tuning of the steering performance.  I am really glad I decided to make that tail-fin!

I looked into several techniques for making the seat but then lucked into a very good deal on a used, commercially made CF M5 seat.  That solved that problem!  I left the final details of how to mount the seat until the frame construction was just about finished.  Compared to most of the other problems this was easy.

Cad drawing of the whole bike.

Construction details

The first thing I did was make the dropouts.  I had designed them using a CAD program and plotted them at life size.  Then I sprayed the back of the paper with adhesive and stuck it to the aluminum plate.  Next I punched all the hole locations.  Finally, I used my electric saber saw to cut the aluminum.  It only took about 20 minutes to cut each dropout and file it to its final shape.  I drilled the holes, tapped those that need it, and the dropouts were done.

Cutting patterns for the drop-outs.

Dropouts cut from aluminum, ready to be drilled.

Mid drive dropouts mounted on hub that serves are the hinge for the rear swing arm.

Dropouts mounted on rear wheel.
The frame was made by wrapping CF cloth wetted with epoxy over a dense foam core, then vacuum bagging to squeeze out the excess epoxy.  I used house insulation boards for the foam.  I simply drew an outline of the shape I wanted and cut it with a saw.  Then I shaped the foam pieces using sandpaper.

Since I had never done any sort of composite lay-up before I decided to start with the rear swing-arm so that if I made a mistake it wouldn't cost too much if I had to start over.  The rear swing-arm is just two parallel stays with a single, "V" shaped bridge piece between them to provide rigidity.  I started with the bridge piece and quickly ran into problems.

I could not get the cloth to stay put on the foam core, and when I vacuum bagged it, the pressure caused the "V" to close up.  I sent a few emails and posted a few pleas for help on some internet forums and quickly found out the right way to do the job.  From then on I had no problems.

The right way to do it is to spray the cloth with adhesive just before cutting it, then attach it to the foam core or work piece, then apply epoxy, then vacuum bag it.  When cutting the cloth you have to plan the wrap around the work piece so that the tows bend at 45 degrees instead of 90 degrees - i.e. the axis of the work piece must be oriented at 45 degrees to the weave of the cloth.

On my second attempt at making the bridge piece I did not cut the "V" into the foam.  First I put a couple layers of CF on the rectangular foam core and vacuum bagged it.  After the epoxy cured, I cut the "V" notch into it and then applied several more layers of CF and epoxy.

The stays had to be made perfectly straight, and needed to have flat surfaces at their ends to allow attachment of the drop-outs.  I built a simple jig from a piece of plywood and a 2x4 both covered with polyethylene sheet so the epoxy would not stick.  I cut some foam cores and notched the ends where I then installed pieces of 1/4" plywood.  The plywood pieces gave me the flat surfaces I needed to mount the dropouts.  The rest of the jig ensured that the surfaces where the bridge piece would mount were flat.  I wrapped the stays and vacuum bagged them on the jig.  They came out light, strong, and stiff.


Rear swing arm armatures made from foam.


Cutting CF cloth to size.  


Finished rear swing arms ready to have dropouts attached.

Next I needed to attach the dropouts.  Alignment was critical here.  Any error would cause the front and rear wheels of the bike to mistrack.  I built a jig out of 2x4s and threaded rods.  Nuts on the rods held the dropouts at the correct spacing and parallel to each other.  The stays (and all other aluminum that was to be epoxied to the CF) were treated with West Epoxy System Aluminum cleaner kit.  A layer of glass cloth was put between the aluminum and CF to isolate it electrically and prevent corrosion.  Once the dropouts were positioned, I applied some epoxy to the stays and used clamps to hold them to the dropouts.  Finally I applied some epoxy to the bridge piece and put it into position on the stays.  When the epoxy cured I had a nearly perfect rear swing-arm.

Jig for attaching the dropouts to the rear swing arms.




Dropouts and bridge mounted on rear swing arm.



Later, I wrapped the whole assembly with another layer of CF to hide the seam between the stays and the bridge piece.  I added brake mount rails and I drilled the stays and dropouts so I could put safety bolts through them in case the epoxy ever let go.  I also added the lower shock absorber mount made from two pieces of aluminum corner stock.

Rear swing arm showing air shock mount, mid drive gear and hub, and brake mounting plates.



Rear swing arm almost complete.


The main frame was also made using a foam core.  I used a large cross section area to ensure that the final frame would be very stiff.  After I cut and shaped the foam I used the head tube like a drill and manually twisted/pushed it through the foam core.  I installed the bearing cups before applying the CF and epoxy, which was a mistake that required a lot of careful labor to clean up after the frame was finished.  Next time, if there is one, I will insert the head tube into the core, but I won't install the headset bearing cups until after the frame is done.

The design included a tail-fin to allow for mounting the seat, the shock absorber and some form of cargo carrier.  I made the tail fin from 3/8" plywood which I glued to the foam core before applying any CF cloth.  By using a plywood core I could drill and bolt through it at will without having to worry about crushing the composite.  It added a bit of weight to the frame, but I think light weight is grossly over-rated anyway.

I started to run out of CF cloth after having put several layers of cloth and epoxy on the foam core (a total of about 6 yards, minus the stuff I used in the failed bridge piece for the rear swing-arm).  I wasn't sure if I should order more cloth so I decided to test it.  I placed a couple 2x4s on the floor, set the frame across them, then stood on it.  Nothing broke, so I tried bouncing on it.  Still no snap, crackle, or pop, (not even any detectable flex!) so I decided it was strong enough and I didn't need to order any more CF cloth.

The next step was to install the rear wheel hub that was going to be the mid-drive and suspension pivot.  I needed perfect alignment so I made another jig from some straight 2x4s.  The jig clamped the wheels in alignment.  I installed the headset bearings and front fork into the frame and put the fork on the front wheel.  This held the frame in final alignment position.  I bolted the rear swing arm to the rear wheel, and bolted the mid-drive hub to its dropouts.  All that was left to do was to epoxy the mid-drive hub to the main frame and the frame alignment would be perfect.  I mixed some strengthening filler with epoxy, put a few dollops on the mid-drive and clamped it to the main frame.  Once the epoxy set I unbolted the mid-drive from the rear swing-arm, removed the front fork, and turned the frame upside down so I could fill in the gaps with epoxy and add a couple layers of CF cloth over the joint.









The last thing to go on the frame was the bottom bracket shell.  I installed a bottom bracket in the shell and bolted pieces of aluminum to each side using crank bolts.  One aluminum piece was positioned to run parallel to the main frame and the other hung down vertically.  I clamped a bubble level to the vertical piece and another to the front wheel rim.  I used rubber bands and Velcro straps to hold the other aluminum piece in alignment with the frame.  Once everything was set I applied a few drops of epoxy to the BB shell to lock it in place.  After the epoxy cured, I filled the gaps between the frame and the shell with more epoxy and applied a few layers of CF cloth over the whole thing to make it look nice.



In the end the frame/rear swing-arm and frame/crankset alignments turned out perfect.  I can unbolt one end of the rear shock and fold the bike and the two tires meet each other dead center.

Time to mount the seat.  The back of the seat was going to be bolted to the tail-fin but I had yet to work out a way to mount the bottom of the seat.  I had some rectangular aluminum pipe from an old project so I decided to use it.  I drilled some holes in the sides then epoxied it to the top of the bike frame.  I cut some small pieces of corner stock and drilled them so they could be bolted to the seat bottom.  Then I lined the holes up with the rectangular pipe and put a long bolt through it.  That was easy!

A few days after the last bit of CF cloth was applied to the frame I built the bike up and took a very short, very nervous test ride.  Other than needing an adjustment to the seat position, it handled very well.  The next day I was making a trip to visit family in Wisconsin so I took the bike with me (along with a lot of tools and some small parts, just in case).  Before I really had a chance to ride it, I let my nephew try it out.  It turned out to be a good test of the frame's strength- he weighs 230 lbs compared to my 160.  Nothing broke, so I was very happy (he was too!).  The next day I got to actually spend some time making adjustments and riding it around.  I ran into just one problem.

The bike, fully assembled for the first time.


Mid drive closeup.


The mid-drive was a standard rear wheel cassette that I restacked to get the gears I wanted.  The largest cog was driving the rear wheel while smaller cogs were driven by the chain from the pedals.  When I put a lot of pressure on the pedals, the chain tended to slip over the teeth on the cog that was driving the rear wheel.  The solution was to take that cog off and turn it around.  I had to file out one of the little indexing tabs so it would go back in, a 2 minute job with a hand file, and from then on it has worked perfectly.


That's me, on the bike, a few days after completion.  Note the look of sublime satisfaction that only comes from having successfully built a full suspension, CF, recumbent bike on the first attempt.  Since completing it in August 2005, I have put 600 miles on it, mainly commuting to school.  After a couple initial adjustments I have had no problems with the bike whatsoever.  The longest ride I made was a 50 mile charity fundraiser.  The bike is so comfortable I could have easily done another 50 miles.

I've done a few things to the bike since the picture was taken.
  • Sanded the frame smooth and applied a layer of acrylic clear coat.
  • Added a LOT of reflective tape. 
  • Mounted a plastic box to carry stuff. 
  • Added fenders.
  • Removed the rear fender when I couldn't get it to stop rattling. 
  • Changed the rear shock mounting point.
  • Added a computer on a temporary basis.
  • Added a plastic disc to the mid-drive.
Here's what it looks like today:


Note the liberal use of reflective tape.  I live in a rural area with no street lighting at all.  I like to be visible.  The large space behind the seat will lend itself to a hydration pack and a tube or bag for carrying small stuff.  To be added...

Here are some photos of some of the details:
Here is the back of the seat.  Again, wood spacers are temporary.

Seat bottom mounting detail.  The rectangular tube is epoxied to the bike frame.  A single bolt goes all the way through the tube.  I intend to replace the wood spacers when I have finished playing with the seat position.



Detail of the rear brake mount.  The rails are epoxied to the bike.  1/4" x 20 tpi SS bolts hold the 1/4" thick aluminum bridge to the rails.  The chain clears the brake shoe by about 5 mm.

Shock absorber mount.  The bottom is attached by two pieces of 1/8" thick corner stock epoxied to the rear swing-arm.  They seem to be thick enough, and the epoxy seems to be holding up OK.  As built, I have 6" of travel on the rear end of the bike.  I have ridden the bike down curbs with 15 lbs of books in the trunk and it handles very nicely.

This plastic disc was added to the mid-drive to prevent the rear chain from auto-shifting when I pedal backwards.  I will soon be modifying the mid drive set-up and may be able to eliminate the disc.  You can see the SS safety bolts I put through the dropout in case the epoxy ever lets go.

Detail of the trunk mount.  I have decided it is too high up for anything more than about a 15 lb load.  With the cover on it is rain-proof.  Without the cover I just throw my backpack in and go.  No need for straps or elastic cords.

Vital Statistics
 Top Gear 196 gear inches (too high, mon!)
 Bottom Gear 32.5 gear inches
 Fork
 RST 200K  2" travel
 Shock
 Cane Creek AD-5, gives 6" travel
 Tires
 Schwalbe Marathon Slicks 20x1.35
 Front Brake
 Avid Single Digit 7 V-brake
 Rear Brake
 Nashbar road brake
 Brake Levers
 Avid Speed Dial 7
 Mid-drive shifter
 SRAM ESP 9.0 front shifter
 Rear shifter
 SRAM ESP 9.0 rear shifter
 Mid-drive derailleur
 Shimano Nexave rear derailleur
 Rear Derailleur
 SRAM 7.0
 Seat
 M5 carbon fiber
 Crankset
 Bontrager Race Lite
 Wheel Base
 42"
 Steerer tube angle
 72 degrees
 Trail
 1.3"
 Weight
 34 lbs (incl. fenders, trunk, etc.)

Now that it's built and I've got some miles on it, I have found that there are a few things that need to be changed.

I normally use only the smaller chain ring (the other one is there because the bolts are too long to hold just one chain ring).  When the chain is on the smaller cogs of the mid-drive it drags on the idler that lifts the bottom of the chain over the fork.  This could easily be solved in two ways.  I could use the larger chain ring, as shown in the photo above, with appropriate changes to gearing at the mid-drive and/or the rear wheel, or raise the bottom bracket a few inches.

Right now, the high end of the gears is too high and I can't really use it, even if I'm going down hill with a tail wind.  I am planning to make some changes to the mid-drive gearing to fix this.  The bottom gear could stand to be just a little lower, too.

I have added a trunk (well, actually a box) on the tail fin to carry stuff.  I find that when I load it to 20lb or so, the weight tends to flop a bit due to flex in the tail-fin.  It also tends to make the handling feel a little wobbly, since the extra weight is up so high.  If I were to make another frame, I'd try to work out some other way to mount a cargo trunk.  One idea that recently came to mind was to make a new rear swing-arm that is longer than the one I built.  I could then add a lot of cargo capacity to it just in front of the rear wheel.  The cargo would not benefit from the suspension like it does now, however.

One last thing:




Update February 2006
The mid-drive has been regeared to shift the entire range downward.  This had the added effect of ensuring that the top side of the front chain never drags against the idler or the bottom side of the chain.  I made a spreadsheet to calculate the new gears:

Gear No.ChainringMid FrontMid RearRear WheelWheel Dia.Gear-Inches
1393432321921.8
2393432241929.1
3393432211933.2
Chainring394393432181938.7
5393432161943.6
Mid Rear326393432141949.8
7393432121958.1
Mid Front 1348393432111963.4
Mid Front 2269392632321928.5
Mid Front 31610392632241938.0
11392632211943.4
Rear Wheel 13212392632181950.7
Rear Wheel 22413392632161957.0
Rear Wheel 32114392632141965.1
Rear Wheel 41815392632121976.0
Rear Wheel 51616392632111982.9
Rear Wheel 61417391632321946.3
Rear Wheel 71218391632241961.8
Rear Wheel 81119391632211970.6
20391632181982.3
Wheel Dia.1921391632161992.6
223916321419105.9
Range6.18233916321219123.5
243916321119134.7





The entire range is covered by just the 34 and 16 tooth mid-drive gears, but the derailleur can't step more than about 10 teeth without having problems, so the 26 tooth gear was included to make the shifting more reliable.  In daily riding the 34 tooth mid-drive gear is only rarely used.

The noise from that plastic disc in the mid-drive was driving me nuts!  I restacked the gears so that the bike would not autoshift to higher gears when pedaling backwards.  The plastic disc that was putting side pressure against the chain and making all the noise was unceremoniously retired.  The whole thing is VERY smooth and VERY quiet - the only sound it makes is the normal clicking of the chain in the derailleur jockeys.  Now the gear that drives the rear wheel is on the outside of the three gears that are driven by the pedals.  It took a little messing around with spacers to get everything to fit but it works well.

October 2006 update--   DISASTER STRIKES!

After riding a total of about 1200 miles on the bike since I completed it, the epoxy joint between the bridge piece and the rear wheel stays failed!  Fortunately, I was only riding at about 3 mph on the sidewalk about a block from home.  The only thing injured besides the bike was my pride.







The failure occurred because the bridge piece was epoxied to the bottom side of the stays in order to clear the chain, and the shock absorber was pressing down on it all the time.  After miles of pounding (and riding off curbs with 20 lbs of books loaded in the trunk) it finally gave out.

I decided I needed to make a bridge that attached to the top side of the stays so that the shock absorber would be compressing the joint instead of trying to pull it apart.  I came up with a design, cut a scale model out of cardboard to test fit and everything looked good so I made the part from 1/4" aluminum plate.



I epoxied the plate to the top side of the stays with a layer of glass cloth between the aluminum and CF to prevent corrosion, and filleted the edges.  Then I wrapped it with 2" wide Kevlar tape, loaded it with epoxy, and vacuum bagged it to squeeze out excess epoxy.  The Kevlar will hold the bridge in place in case the joint between the aluminum and CF ever fails.



I reassembled the bike and took care of a few annoying little problems I was having in the process.  Now the bike is better than ever!  The repair process took about two weeks including designing the bridge and waiting for the Kevlar tape to arrive.  The photo below shows the new rear end of the bike.  The yellow stuff is the Kevlar tape which I will soon be painting black for protection from UV radiation.