Menu:


Overview:

The bike has several electronics components that will be detailed below.

Electrical Overview

Components

Enclosure Overview

Here you can see an overview of the enclosure and the layout of all the components.

Enclosure Annotation

Schematic

To interface all of these sensors and provide the correct voltages, several other components were required. The connections and components are detailed in the schematic below.

Schematic

The major components are:

Pin Configuration

These are the pins to use for the external connections.

Beaglebone

Please refer to Beaglebone Cape Pins for a diagram

Arduino Uno

Please refer to Arduino Reference Board for a diagram

MSP430

Please refer to MSP430F5529 Reference for a diagram

Safety Relay

An Omron G9SE-201 Safety Relay has been included in the enclosure to shutdown all motor power in case of runaway conditions. This is a category 4 emergency stop setup.

There are several components required:

Safety Relay Diagram

The electrical setup was completed according to the Omron manual for the safety relay: Section 5, Page 2.

Steering Motor Configuration

We are using a Maxon DCX32L Motor (24 V, 110 W).

The motor is connected to a GPX 32 HP Planetary Gearhead (111:1 reduction).

Motor parameters can be found here

Gearbox parameters can be found here

The motor is connected to a Maxon ESCON Module 50/5 motor controller.

The ESCON configuration parameters were set as follows:

Motor Data

Speed Constant = 350 RPM/V
Thermal Time Constant Winding = 42.2 s
Max Permissible Speed = 8000 RPM
Nominal Current = 4.12 A
Max Output Current = 10 A

Controller Mode of Operation:

Speed Control

Set value

RC Servo input:

1 ms = -8000 RPM (MSP430 PWM signal = 1050)
2 ms = +8000 RPM (MSP430 PWM signal = 2100)

Longitudinal Motor configuration

We are using a Shimano STePS motor on this bike. It is a brushless DC motor and it is rated at 250W. It has an encoder signal but it is not being used as that requires advanced reverse engineering.

Motor Parameters:

Internal resistance = 0.1 Ohm
Inductance = 195 uH
Nominal current draw = 3.3 A (crudely measured)

The motor is connected to a Maxon ESCON Module 50/4 EC-S motor controller.

Configuring the controller took a bit of trial and error. The settings that have been used are as follows:

Motor Data

Speed Constant = 814.2 RPM/V
Thermal Time Constant Winding = 4.0 s
Number of Pole Pairs = 1
Minimum Speed = ~1.69 m/s (3600 RPM)
Maximum Speed = ~8.20 m/s (18000 RPM)

Acceleration and Deceleration ramp: 3000 RPM/S

System Data

Max. Permissible Speed = 18000 RPM
Nominal Current = 4 A
Max. Output Current Limit = 10 A

Set value

RC Servo input:

1 ms = 0 RPM (MSP430 PWM signal = 1050)
2 ms = 18000 RPM (MSP430 PWM signal = 2100)

Minimal Speed / Stall Behaviour

Minimal speed = 3600 RPM

Calculated as follows: 

n_min = (Vcc * Kn) / 7

where: 

Vcc = 25 V and Kn = 1000 RPM/V

3600 RPM = 1.2 ms (equivalent to MSP430 PWM input of 1265)

Note that the motor controller resticts 3600 RPM as the MINIMUM motor speed. This is equivalent to: 1.69 m/s (measured with bike suspended in the air)

Expert Tuning - Speed controller

Startup Loop:

Startup Current = 8 A
Synchronous Startup Acceleration = 100 Hz/s

Future Work