Author Topic: Serial throttle/regen control of Pie motor controllers?  (Read 3791 times)

Offline Pinaz

  • Confirmed
  • New Member
  • *
  • Posts: 2
Serial throttle/regen control of Pie motor controllers?
« on: November 17, 2012, 09:03:47 PM »
Hi!  I'm a new member interested in more details on the Golden Motor bicycle wheel hub motors controllers.

These, I believe, would be the PI-xxx (internal and external) and BAC-xxx (external) controllers.

I've read the posts on the "PI-200" USB cable and the efforts of forum posters to understand the protocol between the provided PC software and the controller.

My interest is in connecting *only* battery power and a "USB cable" to the controller, and being able to dynamically control throttle and regen via serial commands (over the "USB cable").

(I'm using quotes around "USB cable", since from the posts I've read the motor controller isn't a USB device; the cable just provides a USB-to-serial circuit.)

It is certainly technically feasible, but alas Golden Motor's controller software is probably not written to make it possible.

However, it seems remotely possible that Golden Motor might have some sort of test mode for factory testing, so I figure that I would ask the question.

My fallback option is to buy hub motors (from any manufacturer) without a controller, and then buy a motor controller with such a serial control capability.  (These serial control controller products seem to exist in the marketplace, if nothing else for the "robot" community.)

Thanks.
« Last Edit: July 04, 2017, 08:06:02 PM by Bikemad »

Offline Bikemad

  • Global Moderator
  • Professor
  • PhD. Magic
  • ******
  • Posts: 5,523
Re: Serial throttle/regen control of Pie motor controllers?
« Reply #1 on: November 17, 2012, 10:57:11 PM »
Hi andto the forum.

I think it would be unlikely that the GM controllers could be controlled in that way, as the controllers are unable to be accessed via the USB interface lead while the battery power is turned on.

The data signal receive contact is also shared by the reverse signal which is typically at a highish voltage, until it is switched to ground in order to select the motor's reverse function.

On the MPIII internal controller there are only six external wires connected to the pcb (apart from the three phase wires, 5 hall sensor wires and the two battery cable connections) and these are labelled as follows:
  • sb   - Throttle signal (varies between 0.8V and 4.5V relative to throttle position)
  • br   - Braking signal (switched to ground when brakes are applied)
  • +5  - 5V power supply (for pedelec and  throttle hall sensor)
  • xun - Cruise control signal (momentarily switched to ground to engage and disengage cruise mode)
  • rx   - Reverse signal (switched to ground to select reverse)
  • pas - Pedelec control signal (output from pedelec sensor)

Alan
 
« Last Edit: July 04, 2017, 08:06:14 PM by Bikemad »

Offline Pinaz

  • Confirmed
  • New Member
  • *
  • Posts: 2
Re: Serial throttle/regen control of Pie motor controllers?
« Reply #2 on: November 18, 2012, 12:03:39 AM »
Oh, well.  It seemed worth asking the question.

Thanks for answering and posting the signal listing.

Offline Perbear

  • Technical Officer
  • Magic Undergrad
  • ******
  • Posts: 99
Re: Serial throttle/regen control of Pie motor controllers?
« Reply #3 on: December 18, 2012, 08:22:24 PM »
Would it be possible to adjust the regen brake force by putting a PWM signal with variable duty-cycle on the brake control input?