E-Bike Blog 4

Building a Mock-Up for Testing: Prototype 0 (P0)

Reasons for Building a Mock-Up:

My next step was to move from the bench test to a first working mockup. The mockup I will make will be a simple seat post/tube mounted design.

Sketches:

I need a mockup to test some important aspects of the design such as the positioning of the motor on the wheel (at what angle?), the amount of pressure needed to force the motor in to contact with the tyre (is a spring of some kind needed?). The efficacy of a friction drive in wet weather is another thing I can test and experiment on with this mockup. Which types of tyres the system will work with and how it will perform with different tyre styles and sizes will also be tested.

I also need to test the real world range of this system, until now I have used calculations to estimate range but I think the real world results will be quite different due to energy loss through vibration, slipping, heat ect… I can also get an idea of the range of compatibility with different bikes of seatpost mounted systems such as these with the mockup.

The Mock-Up Itself:

The mock-up was designed with the machines and materials of the FabLab, so that I could effectively work on it in my spare time working as an intern at the FabLab. I used the 3D printer, lasercutter and CNC milling machine to make it.

Arduino

I switched from the Arduino Uno I used for the bench test to an Arduino Mini for the mock up:

Clamp:

Assembled clamp:

I began with designing a simple clamp to attach to the seatpost tube of the bike. The clamp has a hole on either side where the “arm” which holds the motor to the wheel can be mounted.

There is a hole on both sides of the clamp to allow mounting of the “motor arm” on both sides if needed for compatibility or to test setups which use 2 motor arms, supporting the motor from both sides. The opening for the tube uses a larger diameter than needed so that it can fit many different sizes of tube. Rubber strips from innertube help to grip the clamp to the tube firmly. A better design for the opening of the clamp would have been to give it a v shaped, this would be compatible with the most different tube sizes.

Example of V shaped clamp: V shaped clamp example:

The clamp is made up of 2 parts, the front and back. Joined together with 2 m6 x 60mm bolts with wing nuts on the end. The clamp can be reversed if needed for compatibility with your bike, increasing the distance from the motor arm attachment point to the point where the motor contacts the rear tyre. There is space for an m6 nut to be inserted into the clamp which the m6 bolt screws into.

There are 4 holes in a square pattern on each of the clamps. These are used to attach an enclosure for the electronics of the kit, again, they are on both clamps so the electronics box can be mounted on either side for compatibility.

For the mock-up I 3D printed the clamp from PLA with just 15% infill on the Prusa i3. This print was originally intended just to test the fit of the clamp on the tube but it proved strong enough to use for road testing the mock-up. I think a high % of infill or even a solid part is more suited for a long term option. Printing as normal with a high infill percentage or printing a hollow, open top mold of the 2 clamp pieces, which would then be filled with resin are 2 options for a sturdy, final part.

Motor Arm:

Finished Motor Arm: V shaped clamp example:

As part of the purpose of this mock-up is to experiment with the various angles and lengths possible for the motor arm to see which gives the least slipping and the greatest compatibility, I chose to attach the motor arm to the clamp via a bolt in slot. The motor arm can be posed in many different positions.

Different angles can be tested: V shaped clamp example:

The motor is attached to the arm by 4x m4 screws through 4 holes at one end of the arm which match the holes in the motor. The space between the motor arm and the motor can be adjusted by screwing the motor further down the 4x m4 screws. You can fill the open space by adding extra slices to the spacer. The spacer is a lasercut, circular piece, between the motor and the motor arm. It supports the screws from which attach the motor to the arm and also makes it impossible for the spinning motor to hit the clamp, if the motor and arm assembly should move for some reason.

The spacers are between the motor and the arm: V shaped clamp example:

Electronics box:

V shaped clamp example:

The electronics box hangs from one the clamps. It is a simple box made from polar triplex plywood, joined with finger joints. It is meant to hold various batteries and control boards of the kit for testing. The box is bigger than it needs to be to allow for testing with more/different batteries, different (potentially larger) ESCs. For now, due to the ESC I have not having a 5v output, I need to use a USB power bank to power the Arduino. This will be fixed in the next iteration. For now, I have tested the kit with the electronics box open on the top, with the components held inside with velcro or double sided tape. Of course, so far I have not tested in the rain, but when I do, it will require waterproofing the vulnerable electronics (Arduino, USB power bank, ESC).

The box with components in side:

The electrical box design wasn’t right in the beginning. I forgot about leaving a gap for the wing nuts to turn and also 2 of the holes were in the wrong place. I fixed this for this particular box by cutting out space for the wing nuts with the rotary cutter and drilling the holes correctly with a hand drill. I have updated the files with the changes.

Slide throttle:

For this first mock-up, I have chosen a sliding potentiometer mounted on the handlebar to control the throttle. This is mounted onto a clamp I found lying around which I think is meant to be used to attach a bottle holder to your frame but mounts equally well to the handlebars. The slide potentiometer is mounted to a lasercut wooden plate via 2 screws before being mounted to the clamp on the handlebar via 2 bolts with nuts. The slide potentiometer is wired to the Arduino which has code that translates the resistance from the potentiometer into PWM signal for the ESC to control the motors speed with.

Throttle with handlebar mount: V shaped clamp example:

I planned to add a thumb pad (perhaps from rubber or flexible 3D print) to the throttle but I have not yet as it wasn’t immediately needed for testing. Sliding the small metal strip of the potentiometer is comfortable enough as a test setup.

V shaped clamp example:

Conclusion

With these components and the simple Arduino setup to control the motor (from Blog 2), I have the most rudimentary version of a friction drive e-bike ready for testing. With no mechanism (like a spring) for keeping the motor held against the wheel, if this setup works as is, it will be very encouraging for my initial idea of a very simple, low part count and easily assembled e-bike kit.

V shaped clamp example: