Skip to content
casainho edited this page Oct 20, 2012 · 12 revisions

Do you want to join the efforts to develop an OpenSource EBike Smart Controller?
Please join the efforts if you value such EBike Smart Controller. See the project page here.

Please find here more tecnhical info about KUxxx controllers on KU63 motor controller page from Albert van Dalen web site.

Table of Contents

Tests using KU63 controller and Cute85 24V motor

PWM frequency of commutation: 15.6KHz.
Slowest velocity: 31.6ms frequency PWM period of comutation. CPU-34 signal is almost low, at near 1% duty-cycle.
Some velocity: 8.88ms frequency PWM period of comutation. CPU-34 signal with duty-cyle near 100%.
Maximum velocity: 2.24ms frequency PWM period of comutation. CPU-34 signal is high.

Resources used from LPC2103

  • Timer0 is used for capture/measure the time of BEMF impulse signals
  • Timer1 is used for PWM wave generation
  • Timer2 is used for mosfets commutation timing
  • Timer3 is used for general delays
  • ADC channel 0 is used for measure voltage signal
  • ADC channel 1 is used for measure current signal
  • ADC channel 2 is used for measure throttle signal
  • ADC channel 3 is used for measure controller temperature signal
  • UART0 is used for Bluetooth module

Pin connection from LPC2103 to KU63 controller

LPC2103 pin number LPC2103 pin function description
P0.12 (pin 37) MAT1.0 PWM for mosfet phase_a high
P0.13 (pin 41) MAT1.1 PWM for mosfet phase_b high
P0.19 (pin 1) MAT1.2 PWM for mosfet phase_c high
P0.7 (pin 28) IO (MAT2.0 if needed in future) IO for mosfet phase_a low
P0.8 (pin 29) IO (MAT2.1 if needed in future) IO for mosfet phase_b low
P0.9 (pin 30) IO (MAT2.2 if needed in future) IO for mosfet phase_c low
P0.2 (pin 18) CAP0.0 Capture for BEMF phase_a signal or Hall sensor signal
P0.4 (pin 22) CAP0.1 Capture for BEMF phase_b signal or Hall sensor signal
P0.6 (pin 24) CAP0.2 Capture for BEMF phase_c signal or Hall sensor signal
P0.22 (pin 32) AD0.0 ADC for voltage signal
P0.23 (pin 33) AD0.1 ADC for current signal
P0.24 (pin 34) AD0.2 ADC for throttle signal
P0.10 (pin 35) AD0.3 ADC for controller temperature signal
P0.11 (pin 36) IO IO for brakes signal
P0.12 (pin 37) IO IO for BEMF circuit
P0.0 (pin 13) UART TXD0 UART TX for Bluetooth module
P0.1 (pin 14) UART RXD0 UART RX for Bluetooth module