Author Topic: Undocumented MagicPie behaviour  (Read 14884 times)

Offline Bikemad

  • Global Moderator
  • Professor
  • PhD. Magic
  • ******
  • Posts: 5,504
Re: Torque sensing chainwheels
« Reply #15 on: April 30, 2010, 01:20:18 AM »
"True Torque Sensor Pedelec" I wonder what that really means and if its for sale seperately?

Geoff, it basically means the power provided by the motor is directly related to the force applied to the pedals, the harder you pedal, the more the motor will assist. The torque is measured using permanent magnets and hall sensors contained within the housing on the back of the chainwheel.

I've only seen these units fitted to single chainwheels, so it might be a problem for anyone using double or triple chainwheels.

Some of these units can be adjusted via an external unit to vary the ratio of Pedal-power : Motor assist-power.
(1:0.5, 1:1 or 1:1.5 etc.)


The basic PAS units used with the Magic Pie are only able to sense the speed of the pedals, not the force being applied to them.
On the early Pies, the amount of assistance (although relative to pedal speed) tended to be a bit too much.

The more recent Pies have a different controller which can be programmed (using the optional interface lead and free software) to allow the selection of Low, Medium or High Pedal Assistance, but apparently there seems to be a problem getting the controller and PC to actually communicate with each other. ::)

Perhaps Yao can provide some more information on the GM "True Torque Sensor Pedelec" and let us know if the unit is compatible with the Magic Pie, and how much it would cost to supply it separately.

Alan
 
« Last Edit: July 13, 2023, 11:21:17 AM by Bikemad »

Offline GM Canada

  • Super Gary
  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 1,544
Re: Undocumented MagicPie behaviour
« Reply #16 on: April 30, 2010, 02:23:32 AM »

"True Torque Sensor Pedelec" I wonder what that really means and if its for sale seperately?


I'll look into that...

Gary

Offline Geoff

  • Confirmed
  • New Member
  • *
  • Posts: 18
Re: Undocumented MagicPie behaviour
« Reply #17 on: April 30, 2010, 03:58:56 PM »
Quote
The more recent Pies have a different controller which can be programmed (using the optional interface lead and free software) to allow the selection of Low, Medium or High Pedal Assistance, but apparently there seems to be a problem getting the controller and PC to actually communicate with each other.

So how do I know if my MP's will work with this controller? They were ordered from GM on Feb 22 2010.

Offline muzza.au

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 156
Re: Torque sensing chainwheels
« Reply #18 on: April 30, 2010, 10:50:37 PM »
"True Torque Sensor Pedelec" I wonder what that really means and if its for sale seperately?

Geoff, it basically means the power provided by the motor is directly related to the force applied to the pedals, the harder you pedal, the more the motor will assist. The torque is measured using permanent magnets and hall sensors contained within the housing on the back of the chainwheel.

I've only seen these units fitted to single chainwheels, so it might be a problem for anyone using double or triple chainwheels.
I've got one of those on my bike. Although its disconnected and I don't use it. It came fitted on the bike I bought.

It was only 24V with a geared hub motor. So I fitted a direct drive 48v 1000w motor and 60v worth of batteries.
It looks like this now.


But anyway, the pedals seem to be spring loaded. When you push down with your foot the pedals turns a few degrees before cog starts turning. When I'm pedalling it feals strange due to the springyness. But with 60v of power, I don't pedal too often. ;)

Muzza.au
« Last Edit: July 13, 2023, 11:22:15 AM by Bikemad »

Offline GM Canada

  • Super Gary
  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 1,544
Re: Undocumented MagicPie behaviour
« Reply #19 on: May 02, 2010, 04:27:00 AM »

So how do I know if my MP's will work with this controller? They were ordered from GM on Feb 22 2010.

Unfortunatly you would need an MP2 for that and they are not released yet. >:(

Gary

Offline Leslie

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 2,047
Re: Undocumented MagicPie behaviour
« Reply #20 on: May 03, 2010, 02:15:25 AM »
The pie has worked other controllers and will work with most GM controllers for Ebikes with 120 deg phase angle.

The pie has an internal controller and if you want to use the interface you need to replace this, or wait and see if GM makes an interface for MP1.

Similarly to slow the regen, place in series on your battery output lead, a low drop high current diode to allow power through to run the motor and block regen from getting to your pack.  

Some resistors or a regulator to bypass the reverse current across the diode.

Like this.


Edited:

Battery output +|---->|--| Controller + input
Battery output +|----w---| Controller + input

The diode and resistors will allow much current through it one way and only allow current through the resistors when regen is charging tha pack the other way.
« Last Edit: May 03, 2010, 02:29:11 AM by 317537 »

Bring it on

Offline gf3

  • Confirmed
  • Magic Undergrad
  • ***
  • Posts: 62
Re: Undocumented MagicPie behaviour
« Reply #21 on: May 03, 2010, 10:42:30 AM »
I had been thinking of doing that but I wouldn't have a clue what size resistor to use. also I would be a bit worried about to many volts on the controller in regen. I understand that you should not disconnect the battery when using regen as this can damage the controller to high a resistor may have the same effect. I did wonder if a zener diode across the pairs may prevent damage.

Offline Geoff

  • Confirmed
  • New Member
  • *
  • Posts: 18
Re: Undocumented MagicPie behaviour
« Reply #22 on: May 03, 2010, 12:28:54 PM »
Quote
Unfortunatly you would need an MP2 for that and they are not released yet.

sigh

I'll learn to live with it.

Offline Leslie

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 2,047
Re: Undocumented MagicPie behaviour
« Reply #23 on: May 03, 2010, 04:25:37 PM »
I had been thinking of doing that but I wouldn't have a clue what size resistor to use. also I would be a bit worried about to many volts on the controller in regen. I understand that you should not disconnect the battery when using regen as this can damage the controller to high a resistor may have the same effect. I did wonder if a zener diode across the pairs may prevent damage.

Thats easy.
E/I=R


Your pack voltage at full charge divided by your desired current.

Say 54v/5 amps is 10 ohms.

The regulator works well here.

The LM338 can limit the can limit the current by limiting the voltage when the load creates a voltage drop over a resistor on output and its adj leg.



I would limit the current to 4.5 amps per chip but here it states with a big heat sink it will take 8 amps.

http://www.reuk.co.uk/LM317-Current-Calculator.htm

However I'm unsure how the LM338 output is going to take the the battery input.  So a Schottkey diode between the LM338 output and pack may be a good thing.

The above circuit is a current following mode design.  A way to impede energy and power from regen fet to pack, and heat can be created away from the main circuit.

Works good for the 28" wheel that gives high current and lower RPM regen voltage,  

A 16" wheel would benefit from a voltage regulator.

A more efficient approach would be to use an inductor.  The motor is inductive power source and pulses energy power into the pack.

Boosting the voltage by creating magnetic fields from excess current can work as a current converter for regen to get the volts up to actually charge the pack.


And bucking can convert voltage into current.

Say a 16" wheel is spiking the fets with high volts in regen.  You may need the topology right.  So you put a buck on the phase wires to only work in regen.

Or the 28" wheel is creating too much current and its hitting on the motor, a boost can get your voltage from current.

How does regen work.

Interesting how even when the motor isnt spinning fast enough to create a viable charge voltage for the pack, it still causes resistance on the motor.

Wouldnt the lower RPM/voltage of regen in this situation cause current to still flow from the pack into the motor and regen causes current to flow from the motor to the controller?

IMO something in between is going to cop it.

Voltage only travels down hill regardless of the presence of current.  And the current has nowhere to go unless it has a lower voltage before it.  Yet we still see regen resistance on the motor at a snail pace.

Where is this current going if its not going into the pack?

This is where the NChannel may lets us down, It has a diode that provides a path the ground even when its off or on or reversed.
 

Using a Pchannel fet for regen may separate the motor from the pack when the regen voltage is lower, as the circuits path to ground should be blocked by the diode before the motor not after.
 .  
Something in the below picture doesnt look right.

Between the motor and pack there is a 16v difference and the fet when closed is allowing current to flow to ground.  The voltage must manifest on the N channel gate or in the motor coil.

The resistance of the fet is lower than the pack and higher than the motor coils and the 120 amp fet should take much more current than the motor.  I vote the coils are going to cop it.


This is set regen.  So should it not deliver the same amps at low RPM but at a much lower voltage?

Im trying to understand the picture I drew below, can anyone fill in the blanks.



« Last Edit: May 03, 2010, 06:03:24 PM by 317537 »

Bring it on

Offline Leslie

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 2,047
Re: Undocumented MagicPie behaviour
« Reply #24 on: May 03, 2010, 06:50:09 PM »
I had been thinking of doing that but I wouldn't have a clue what size resistor to use. also I would be a bit worried about to many volts on the controller in regen.

Yes.

The volts can get up over pack voltage in the controller if the resistor isnt allowing the pack to beat down regen voltage.

The issue at hand must be understood.

Is it voltage spikes, require voltage regulation or too much current requires current limit?

I understand that you should not disconnect the battery when using regen as this can damage the controller

this is why I am working on this.



Its only in flow plan ATM but I am starting to see the idea of having regen braking as a different part of the whole thing.

IMO regen belongs to the battery not the controller, it just so happens you don't need the controller to make power from the motor.


Bring it on

Offline gf3

  • Confirmed
  • Magic Undergrad
  • ***
  • Posts: 62
Re: Undocumented MagicPie behaviour
« Reply #25 on: May 03, 2010, 06:57:05 PM »
Thanks for the reply. Your knowledge on this surpasses mine, I think I will just letting my pie cool down for a while when it over heats.

If you do make a working regen control device I would be Interested.  
« Last Edit: May 03, 2010, 07:12:03 PM by gf3 »

Offline Leslie

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 2,047
Re: Undocumented MagicPie behaviour
« Reply #26 on: May 04, 2010, 03:28:56 AM »
Thanks for the reply. Your knowledge on this surpasses mine, I think I will just letting my pie cool down for a while when it over heats.

If you do make a working regen control device I would be Interested.  

Thanks for the thanks and your compliment. But this is all still new to me really. Often my long posts contents are too much to respond to and often filled with flaws.  I like people to tell me I am wrong as I learn nothing if I think I am always right.

Take a talented musician that has been into audio tech for 25 years and give him an E-bike and I am the product.

I want to able to build a controller and I'm not even scratching the surface of a PCB yet.

BLDC was invented by the mid 70's, I don't think anyone has a total grip on every aspect of this tech, I think Phillip Yao has some to do with this development too.  40 years has seen much change and really its not even one mans life time. ICE tech is way more developed in comparison and it is a century more mature.

I still ask a lot of question that often I have to find the answer by myself, but I am often unsure that I am right.

So many GM owners have good experiences.  We don't always see this here because they are too busy riding their bikes and what-not .  We do see the few people turn up here on the worst day of their lives.

I do tend to get caught up trying to help those and find myself working on project for no reason..  

However the regen module is a great idea and worth the effort.

How can switching a controller off in regen effect the controller if its part of the battery and always connected? Separating the two functions, regen and controller, we can allow a delay of 30 seconds or more to a relay for regen to switch off.

You can use a 12v supply through the brake to switch the controller off and power the regen fets so you cant operate regen without the brake switch wire switching the controller off first .

The only thing regen needs to relate to the controller with is the brake switch.

With a depletion mode fet you don't need PWM for regen and there is not much to be gained with PWM with regen anyway.  PWM is a good way to control the amount of regen,  so too can a depletion mode fet with variable 12v rail voltages at the gate can control the amount of regen.

I do believe that the phase angle detection isnt needed to get regen.

The old method of variable regen by backing off throttle is fine to assist brakes but hall sensors for electronic braking in the throttle can not be legally trusted exclusively for braking. Audio engineer sliders used on pro mixing desks last for decades of heavy use, beer, idiots sliding them hard and fast.  I even cleaned out a slider pot that had sand jam it up and it still works, so maybe my idea is a step closer to reliable electronic brakes.


Communities like this,  V is for voltage, Endless Sphere and a few other places are divine, They aid accelerating the development of EV tech.  Bravo to all the ev peeps. We have our own non profit organisation here in Australia that is dedicated to the EV cause of making this great method of transport commercial viable.

GM may find an Aussie dealer here. Please find an Aussie dealer GM. ;)

http://www.aeva.asn.au/
http://www.aeva.asn.au/forums/
« Last Edit: May 04, 2010, 03:31:03 AM by 317537 »

Bring it on

Offline sdaniels

  • Confirmed
  • Junior Member
  • **
  • Posts: 26
Re: Undocumented MagicPie behaviour
« Reply #27 on: June 09, 2010, 10:17:14 PM »
yep, I agree, exactly the same thing on my pie. I would like to have more control on the amount of assistance. I don't like the current implementation of kicking in to full speed and after pressing the brake it kicks in right away again. And after stopping to pedal it does not stopp for another 6 seconds.

btw: I have also the 6 beeps for no reason just after a 2 minutes ride and I would like to know what it means.




Its not much point trying to convince me on the facility of PAS or the desirability of turning it off. Its a given for me that it work as advertised.

I've ridden other bikes where the PAS works very well. It was part of the MP feature set that helped me make my purchasing decision.

Currently it doesn't work as advertised. I'm wondering if anyone knows if there is a reason why this is the case and if there is a way of making it work properly.

Switching it on and off is one solution, but a kludge.

Making it work as advertised, (ie turn on by pressing Cruise twice and off by cycling power) would be better.

Best of all would be finding a way of changing the amount of assistance it provides.

Has anyone else noticed this behaviour and interested and wanted it to work properly?