Skip to main content

Pedelec legalisation device

Published: 27 November 2011
Last updated: 11 November 2023

Introduction

Many Chinese motor controllers can be used without pedalling, which is not allowed for pedelecs. Here we need additional electronics that adds the extra functionality to meet the EPAC standard. I developed a pedelec legalisation device which can be built into the motor controller. In German this is called a Gasgriff Freischalter. It is built with a 1MHz Atmel ATtiny85. The motor runs only when we pedal forward and the speed is below 25kmh. Start up assistance to 6 km/h without pedalling is omitted.

Pedelec legalisation devicePedelec legalisation device

Software safety precautions

I use a two position speed switch instead of a throttle. This requires special safety precautions against inadvertent switching on the motor, which can be perilous. This is because a throttle, in contrast to a switch, automatically springs back into the off position. A throttle is controlled consciously, a switch can stay in a certain position unnoticed. See also the disclaimer.

Properties

The motor is disabled when:

  • Not pedalling forward
  • Speed above 27.5km/h
  • Speed below 3km/h

PAS sensor SS461A

A digital Hall-effect device SS461A is used as PAS sensor and glued with epoxy directly to the bicycle frame. An advantage of the SS461A is the built in reverse voltage protection. Five magnets are glued into the chainring.

PAS sensor SS411PPAS sensor SS411P

Speed sensor

The bicycle speed is measured with a speed sensor from a cheap cycle computer (€3); it contains a reed relay and a spoke magnet.

Pedelec legalisation device circuit

Here is an example of how the pedelec legalisation device is connected to a motor controller. Download the circuit high definition pdf file here.

Pedelec legalisation device circuitPedelec legalisation device circuit

Pedelec legalisation device software

You can download the code at GitHub.

 

Other articles from Ebike electronics