Saturday, December 23, 2017

Pepper spray mounting bracket for bikes

Compared to the other places I've lived and biked extensively (Utah, Colorado, Missouri and Illinois), living in west Texas has had one unfortunate feature that the others mostly did not: unfenced dogs. I recognize that this occurs everywhere, but never with the frequency that I've experienced here. I have witnessed one situation where a dog ran into the road and took out a cyclist's front wheel, causing the rider to crash. I have witnessed multiple situations where a curious dog has run into the road because of a cyclist (usually me) and nearly into the path of a car. This has made it clear to me that the carelessness of these dog owners is posing a danger both to cyclists and also to the dogs themselves. I was initially reluctant to use pepper spray on dogs, but I've now concluded that this is the best solution for everyone. It's also clear to me that dogs learn quickly, as there is one particular dog that I see regularly and have sprayed once, who now stays put when I ride by.

With that introduction, I'm writing here to describe my new preferred solution for carrying pepper spray on rides: a mounting bracket that mounts underneath a water bottle cage, similar to many tire pump mounts. In fact, one of my bikes has the tire pump mount on one side of the water bottle and the pepper spray mount on the other side. This solution makes the pepper spray much more accessible when needed on short notice than a jersey pocket, for example.

I have bought multiple different brand pepper sprays, and they all have approximately the same dimensions. This bracket should work for any standard pepper spray, such as the one pictured below, which has a diameter of about 21 mm or 13/16 of an inch.

Like some of my other 3D printed projects, this bracket was designed using OpenSCAD. It works well for this type of design, though it's not necessarily suited to more complex designs. I got a prototype printed by Shapeways, and the first version looks like this:

Similar to many tire pump mounts, this mounting bracket has mounting holes that offer a certain amount of lateral adjustment in the placement, which allows the outer mount to be placed a range of distances from the down tube or seat tube of the bike. This is important because so many modern bikes, particularly those with carbon frames, have bigger diameter tubes in the down tube of the frame than in the past.

This picture shows the mounted bracket with a water bottle in the bottle cage.

Here is the bracket with pepper spray attached.

With the pepper spray in this position, it should be easily and quickly reachable by any rider accustomed to reaching down for a water bottle while riding. It has now been used for some off-road riding and has held the pepper spray securely so far. A bracket like this can be purchased from Shapeways via the product page I created.

3D-printed stem mount for Garmin

Last year I acquired a Garmin Edge 25. Garmin devices like it come with a handlebar mount, but they are less than ideal. The rubber O-rings that it uses to attach tend to break over time, and the mount tends to flex when buttons on the computer are pushed compared to the other available aftermarket mounts. I recently came up with my own design, which I had 3D printed in aluminum by Shapeways. This design is meant to attach to the top two stem bolts, and places the computer directly over the junction of the stem and handlebars. The bracket looks like this:

The bracket uses the Garmin mount inserts made by K-Edge (left), which can be purchased from their site for $5. The K-Edge insert comes with two M5 screws. The K-Edge mounts are threaded, but mine is not, so installation requires two M5 nuts (right) to be bought separately. These can generally be found at any hardware store.


The K-Edge insert attached to the stem mount looks like this.


Attaching the completed mount to the bike requires replacing the original stem bolts with longer ones.

This is the installed mount with a Garmin Edge 25 attached.

This version of the bracket is designed for a stem with bolts separated by 20 mm. I have created a product page on Shapeways for it. The design is easy to modify to accommodate other bolt spacings, and I hope to add other spacing options to the product page soon.

Wednesday, October 25, 2017

Titanium tandem by Waltly

I've already documented my previous tandem projects here before. The primary use of the tandems is for family bike rides with the kids. Two years ago I replaced my old Bike Friday tandem with the Experia tandem and have been happy with the results. Heather has still been using the modified Raleigh I acquired several years ago, but it's very heavy and never has been a very good fit for her. Now that the kids are both tall enough to ride a full sized tandem, it is time to consider replacing the Raleigh. The primary challenge is getting a good fit for a tandem pilot who rides a 50 cm road bike, and with the potential to fit a stoker who is taller (our 13 year old is already taller than her mom). The M/S sized tandem by Cannondale comes close, but is still a little big. So, getting a good fit would probably require a custom frame. In order to keep costs down (the goal was to build the complete tandem for a price close a stock Cannondale tandem), I went with a titanium frame made by Waltly in Xiamen, China.

I've been following Waltly for a few years as I've considered our options when upgrading tandems, along with Titanproduct and XACD. As I understand it, all three of them build OEM frames for various bike companies, and well as offering custom frames direct to consumer. All of them can be found on Alibaba or Aliexpress, along with a few others that I'm less familiar with. Just during the last few months, Waltly has re-done their web site to be by far the most professional looking I've seen, including a nice form to fill out for requesting a quote.

I initially contacted Waltly through a link on their web page and got a response the same day from Amy. Her English is pretty good, and she generally responded to my mails quickly given the 13 hour time difference. I sent her a picture of a frame with similar geometry and specified all of the key dimensions. Waltly's process is to quote a price, and then to ask for 50% of the cost to be paid up front before their engineers start making detailed drawings.

I made two key choices that dictated a number of the other details. One was the the Boost through axle standard. This means 148x12 rear and 110x15 front axles. This is an MTB standard that is relatively new, but I think makes a lot of sense for tandems, especially the wider front wheel (rear hubs wider than 148 have been used on tandems before). I did this because I want durable wheels and because I hope the standard becomes sufficiently common (for MTBs if not for tandems) that there will be many stock wheel options available in the future. The second choice I made was to try as much as possible to replicate the geometry of Heather's road bike on the front end of the tandem, but simultaneously eliminate the toe overlap that her road bike suffers from, because I think toe overlap is much more important to avoid on a tandem. Both of these choices led to the decision to have Waltly make a custom fork to go with the frame because no stock carbon tandem forks currently offer the wider spacing, and because I needed a higher than usual fork offset. My original proposal was parallel 73 degree seat and head tubes, but this was putting the front wheel far too close to the front bottom bracket. Eventually I settled on a 71 degree head tube. While this may make the handling a little more sluggish, it is frequently done on smaller frames, including Cannondale's smallest road tandem. With the slacker head tube it is possible to extend the fork offset to 55 mm while still having a reasonable amount of trail. I asked Waltly to allow for 700C tires between 32 mm and 40 mm width, with the idea that I would have the option of 32mm road tires or 40mm gravel tires. The distance between front and rear bottom brackets was determined by two considerations. First, I want the option of a Gates belt drive in the future, and second I want the spacing as far apart as possible to accommodate taller stokers, so I chose the largest spacing that will support a Gates drive.

After making my initial specifications and paying the deposit, we went through several iterations of drawings before I decided they were ready. Much of this had to do with trying to increase the distance between front bottom bracket and front axle because of the toe overlap problem. Now that I've done this I realize I could probably have used something like Bike CAD to figure that out beforehand and get through the process much faster, but Amy was patient and responsive with my continual tweaks. The final drawings looked like this:

In addition to the frame and fork, I asked for an adjustable stoker stem. About 6 weeks after I approved the drawings, Amy sent me an email with a set of detailed photos of the finished product.

When I gave my approval based on the photos, the frame, fork and stem were shipped by DHL, and arrived in the US just 3 days later. The build quality of the frame looked great. I'm not an expert on titanium welding, but the welds on the finished frame all look very neat. As I got started on the build I discovered that Waltly had made a mistake on the stoker stem, building it for a 28.6 mm diameter seatpost rather than the 31.6 mm diameter I had specified. I sent Amy a photo, she consulted with the engineers and builders, and they agreed that they had made a mistake. They created a new stem as I had specified and sent it to me at no charge. I commend Waltly for their responsiveness in fixing their error.

Before completing the build, I added some yellow and green paint using stencils. I love the look of titanium, but wanted to add a little more color to go with the yellow and green trim I was adding to the bike. I think this is a great solution for customizing a titanium frame that's relatively easy to do and still allows the titanium color to show through. The saddles don't match the rest of the scheme as well because they happened to be preferred saddles from previous bikes.

I built the bike up using a SRAM Rival drivetrain with mechanical disc brakes so that I could add bar-top auxiliary brake levers.

I used Sugino XD cranks front and rear. We wanted a low gearing range, and don't particularly need high end gears because we don't go that fast, so I used what's currently being referred to as "subcompact" gearing: 46/30 chainrings with 11-32 cassette. This is of course not something SRAM designed their 2x11 road groups for, and I found I had some difficulty getting the front derailleur to avoid overshifting and dropping the chain to the outside. The Sugino cranks are designed as a triple, so I installed a chain guard in the position of the outer chainring, and it seems to have solved the problem for now.

The one mistake I made in my design was forgetting to specify a front derailleur mount, which was my original intention. There are many clamp-on front derailleurs available, so it wasn't a big deal, except for the fact that the location of the water bottle mounts on the rear seat tube have limited the range of movement available to me for vertical placement of the front derailleur. So far I have been able to get things working. If I were to do it again, I would want either a derailleur mount with a wide vertical range, or put the bottle cage mount in a different location.

For the captain's pedals, I happened to already have a pair of old Shimano M324 pedals. To go with the yellow color theme, I took them apart and painted the main body with the same yellow paint I used elsewhere, and did the same on the platform pedals I currently have installed on the rear. I also found some gold anodized chainrings for the timing chain. They were originally intended for BMX bikes, so they required a 1/8" timing chain.

The wheels were custom built by, using Hope Pro 4 hubs and Velocity Chukker rims. When we discovered that they offered colored spokes, we couldn't resist paying a little extra to get yellow spokes, which turned out to match the existing yellow trim very well. Currently the wheels have Kenda Happy Medium 40mm tires installed.

I included mounts for rear racks in the design. I built the bike with 203mm discs front and rear for maximum braking power. Waltly only had post mounts available for 160 mm rear rotors, so I used a 160-203 mm adapter on the rear brakes. The fork had IS mounts.

Even with the 700x40C tires, there is plenty of clearance. I tried inserting a MTB wheel in the frame with 27.5x2.1 tires and they appear to fit, so that will be an option we consider in the future for riding gravel roads.

Overall I had a great experience working with Waltly and would definitely do it again.

Sunday, March 26, 2017

Garmin Varia mount for Topeak racks

Last year I finally upgraded from the traditional style bike speedometer (with wires and magnets) I had been using for over a decade to a GPS-based computer, the Garmin Edge 25. Compared to the larger and more expensive ones, it's pretty basic, but it does the things I need, and it also supports external sensors. Over the winter I acquired my first external sensor: the Garmin Varia rearview radar. It allows a rider to monitor the location of vehicles approaching from behind within about 300 feet, and also functions as a tail light that gets brighter and blinks faster as cars approach. I really like it, and I think it's especially useful here in west Texas, where there are a lot of narrow roads with high speed limits, and enough wind to make it sometimes difficult to hear vehicles approaching from behind.

The Varia uses a Garmin quarter-turn mount, and comes with a seatpost version of the mount. Two of my bikes have Topeak rear luggage racks that seem to me better mount points for the Varia than the seatpost. The Topea racks have a bracket on the rear for attaching a reflector (included with the rack) that looks like this:

This seems like an ideal mount point for the Varia, but of course nobody makes a Garmin mount that is designed to attach to something like that, so I designed one. The starting point for the design was the Garmin mount insert used by K-Edge:

K-Edge makes a number of different after-market mounts, all of which use the same plastic insert. I could have tried to replicate this myself, but as I've discovered from buying a less expensive after-market mount, a secure attachment requires getting the dimensions of the interface points right, and K-Edge have clearly already done so, so for $5 I can leverage their design and just focus on the interface with the Topeak rack. As shown in the picture, the insert comes with 2 M3 angle-head screws which are designed to screw into the metal mount. In this case, I needed a bracket that was thick enough to accommodate the screws and hold corresponding M3 nuts on the back side.

The design I came up with is this T-shaped bracket, which I had 3D printed by Shapeways.

It is 4 mm thick. The angled rack attachment holes are for angle-head M5 screws. To attach this to the rack requires 3 angle-head M5 screws and corresponding nuts. I used 12 mm screws and nylon-insert lock nuts, but plain nuts will probably work fine. Two M3 nuts are needed because they are not included with the K-Edge mount insert.

Bracket installation begins with inserting the M3 nuts into their corresponding recessed holes on the back of the bracket.

The bracket is then attached to the rack with the 3 bolts.

The K-Edge insert is attached to the bracket using the M3 screws. This is done after the bracket is already attached to the rack because the K-Edge insert slightly overlaps the top M5 screw.

At this point, the Varia can be attached.

Wednesday, September 21, 2016

3D printed cable guide for X-Peria tandem fork

In my original entry about the X-Peria tandem, I noted that the fork did not have an obvious method for routing the cable to the disc brake, but that there was a screw hole on the inside of the left fork blade. My solution was a 3D-printed bracket designed to attach to the screw hole and reach around behind the fork blade where the cable would pass through it.

I used OpenSCAD, a free CAD software to create the design. This is an OpenSCAD rendering:

Note that the hole for the screw mount has a flared shape to accommodate an angle-head screw, so as to minimize the amount the screw protrudes into the space inside the fork. The OpenSCAD source code for this design is below:

guidelength = 20;
width = 15;
cablesize = 5;
thickness = 1.5;
screwhole = 5;
len1 = 5;
len2 = 5;
th2 = 2.5;
angle = 70;
bendradius = 10;


r2 = screwhole/2+4;
cr = cablesize/2;
ofs = width/2-r2;
d = (guidelength-width)/2;

rotate(angle) {
difference () {
    union () {
        // cable guide outer
        translate([0, 0, -d]) cylinder(guidelength, r=cr+thickness);

        // connector section 1
        translate([0, -th2/2, 0]) cube([len1, th2, width]);

        // connector bend
        translate([len1, -th2/2-bendradius, 0]) rotate([0, 0, 90])
        rotate_extrude(angle=-angle) {
            translate([bendradius, 0, 0]) square([th2, width]);

    // cable guide hole
    translate([0, 0, -d-0.01]) cylinder(guidelength+0.02, r=cr);

// connector section 2
translate([len1, -bendradius-th2/2, 0]) rotate([0, 0, -angle])
translate([len2, bendradius+th2/2, width/2]) rotate([90, 0, 0])
translate([0, 0, -th2/2])
    difference() {
        hull() {
            cylinder(th2, r=r2);
            translate([-len2/2, -ofs, 0]) cylinder(th2, r=r2);
            translate([-len2/2, ofs, 0]) cylinder(th2, r=r2);
            translate([-len2-1, -width/2, 0]) cube([1, width, th2]);
        translate([-len2-r2, -width/2-0.05, -0.05]) cube([r2, width+0.1, th2+0.1]);

        // Screw hole
        translate([0, 0, -0.05]) cylinder(th2+0.1, r=screwhole/2);

        // flared hold for angle head screw
        translate([0, 0, -1]) cylinder(screwhole/2, screwhole, screwhole/2);

The part was printed in white ABS plastic by Shapeways. I have produced other parts using Shapeways before and have found the results to be very high quality. A couple of weeks after placing my order, the cable guide arrived.

The hole for the cable was actually just a little too tight for the cable to fit, so I widened it slightly with a drill. This is actually the second version of the design, the result of some changes I made to my first design after I had a chance to test it on the bike. Here is the final product, installed on the bike.

Monday, September 19, 2016

Custom mounts for Topeak Explorer rack

I have the Topeak Explorer rack on two of my bikes, the Raleigh Olympian and the X-Peria tandem. This rack comes with adjustable steel rails that attach to the upper part of the rack.

These rails are designed to be bent to fit the particular frame on which they are mounted, and can fit nearly any frame, provided there is a set of mount points to attach to. In the case of both the Raleigh and X-Peria tandem, there are no upper eyelets, so in both cases I made my own mounts to attach to other available mount points.

In the case of the Raleigh frame, I used the rear brake mount. The custom mount was made from 1/8" (3.175 mm) aluminum sheet. Because I intended for the mount to be specific to this bike and therefore not adjustable, I cut out the shape I had in mind in paper first to ensure that all of the holes were in the right place. I cut the aluminum to the shape I wanted with a circular saw (a fairly crude tool for this sort of job, but it's what I had available and it cuts the aluminum of that thickness relatively easily). I drilled the holes, and used a sander to smooth all of the edges. Bending the aluminum sheet to the desired shape takes a lot of leverage, so I used the holes to attach the ends of the cut out piece to some long pieces of scrap wood. I was eventually able to get the mount into the shape I wanted, but the aluminum got pretty scratched up in the process, so I did some more sanding on the finished product to remove all of the scratches, leaving it with a brushed look.

Here's the whole rack, held perfectly level by the custom mount.

The X-Peria tandem does not have dedicated upper rack mounts, nor does it have a caliper brake mount in the rear, since it is a disc brake frame. As I noted in my original blog about the tandem, there is a seatstay bridge where one would expect a caliper brake mount, which has a threaded hole underneath, possibly for mounting a fender. I used the same method and gauge of sheet aluminum to create the fender mount for the X-Peria. Since I happened to have some white paint close to the color of the bike, I painted this one.

The threaded hole on the frame is for an M4 screw (similar to what is used on water bottle mounts), but there is not a lot of clearance, so instead of a standard water bottle bolt (below left), I used an angle head screw (right).

Combined with a hole to match the shape, the screw protrudes only a minimal amount, leaving more tire clearance.

This is what the finished product looks like, installed.