Using an On/Off-Momentary Push Button Switch that’s normally open to replace a hall throttle.

TommyCat

10 kW
Joined
Jan 22, 2018
Messages
930
Location
North-west Illinois, USA





How to make a Momentary push button switch work for throttle operation...
How hard could it be?


An informational thread by Tommycat.
July 7th, 2024


This thread is in response to several requests specifically for a single push button throttle, typically for lower powered bikes.
But you can also use the information that follows to create a "walk" speed switch or button for something similar.

As the title suggests, this thread will concentrate on what is required to have a momentary push button switch in the normally open configuration, take the place of a hall sensored throttle. In a strictly full off, to full on (or to the choice of motor speed you desire when pressed) manner.

Notice the recommended choice of momentary button switch for the activating component, which requires manual operation to keep the throttle engaged.
If you're thinking about a rocker or toggle type On/Off Switch... consider safety here. A typical "cruise" controller holding circuit will give multiple inputs to disable it. I.E. Braking electrical cut-out switch, cruise button press, or change of throttle position for examples.

So having the throttle manually stuck in WOT may not be a wise choice. :oop:

Please make sure your mechanical brakes and brake electrical cut-out switches are working properly at all times.

For more on the safety aspect of working with hall sensor throttles, with information on how, when, and why they work...
As well as importantly showing you how to test voltage and current readings, please read thru this thread first.

Guide to Hall Sensor Throttle operation, testing, and modification. - Electricbike.com Ebike Forum

I recommend that during all testing fully SECURE your bike from moving with the drive wheel free. This is important with all, but with heavier higher powered hub motors that will induce torque jolts... take no chances.

Make sure you understand and respect all the consequences and hazards of working on your bike's throttle input before trying any recommendations.

Remember, there are EXCEPTIONS to everything in the wide world of E-Bikes. In the following thread I'll be speaking in general terms on typical settings and setpoints, and doing a bit of rounding for currents, and voltages ECT.

Also specifically using the data points from my Magic Pie V5 internal controller as examples to illustrate throttle to controller operation. With information that will help you do the same with your specific system.


  • On/Off... What's so hard about that?
It's all the controller's fault! :)

Your typical hall sensor controller is looking for a throttle input signal of less than 1vdc at the home or off position. Up to WOT (Wide Open Throttle) signal of around 4.2vdc, or in my Magic pie's case, 3.6vdc.

A typical hall sensor throttle will output .8vdc @ Home, up to ~ (around) .9 volts LESS than the Vcc input voltage to the hall sensor when at W.O.T. Often controllers will have a Vcc pad just for the throttle that may output 4.3vdc or so, which is less than a typical 5vdc regulated control output. I've seen some throttles that also incorporated a resistor on the voltage input wire to the throttle's hall sensor that reduces the voltage provided to the hall sensor to a lower amount.

Controllers may also include lock-out safety protection features if it thinks that the throttle signal inputs it is receiving are abnormal, or out of range of valid voltage signals. Possibly caused by an incorrect throttle type being used (I.E. Potentiometer type), damaged throttle, or somebody monkeying around with the throttle signal. ;)

Here is a graphic that illustrates these several points, that one may have to consider depending on your controller.


I recommend you make a chart like this, or at least write down its operating characteristics to give you a clear and straightforward picture of your controller's throttle input requirements and behavior.

Using the single circuit wiring diagram shown further down below as reference and with your normal throttle removed. Use a 200K ohm mini-pot and momentary push button switch (Normally Open) in series between your testing voltage power supply's output and controller's throttle input.
I recommend testing the current draw of this test circuit before use on your system to make sure that the wiring is correct, and no abnormal strain is on your power supply.
Then having your rig secured and testing circuit inline, power up your bike's system, and then your testing circuit's independent power.
From the highest resistance on two of the pot's legs, slowly reduce the resistance to increases the output voltage.
And while monitoring your output voltage meter, write down the important thresholds that you see. Throttle low voltage lock-out, motor starting voltage, motor maximum speed voltage, and throttle high lock-out voltage.
Cycling the momentary switch at all positions to check for proper motor start up in the operational voltage range. Making notes on problems if, when, and where they happen.



xFLxhKb.jpg

From this you can see what an On/Off circuit would need to emulate in order to be successful at fooling this controller.
Starting in the middle of the GREEN zone below and ending in the middle of the GREEN zone above.

Note: Some controllers with programmability may allow you to tweak these setpoints to your advantage if available.


  • O.K. What circuit can make this happen?
For a, "works with all controllers" solution, just a simple circuit with two resistors and momentary push button switch (Normally Open) should do nicely.

The trick is in finding the correct resistances for the resistors... :unsure:

In my case I like to use mini potentiometers and a breadboard circuit testing set-up to quickly and easily lay-out a working circuit that hits the setpoints established above. Using this testing circuit to replace my throttle by using my wiring schematic for the correct pin locations. And adjusting the potentiometers as needed to dial in the desired starting and ending voltages. For me was easy, precise, and no math. :)
It can be kind of a moving target, as one resistance will influence the other, and vice versa. This was done with the bike and controller powered up and operational as signal inputs will sometimes very between a powered controller, and one that is off. Especially if trying just a one resistor circuit. (See below...)

I also choose to use an external power source during testing as I have no desire to chance damaging the controller's 5vdc regulator. :mad:

I recommend monitoring these three things if possible while testing... input voltage, current into circuit, and output voltage.

Once having the potentiometers set to the desired results. I removed them and carefully take resistance readings for the individual resistors, so that these values could be passed along. Feel free to keep the pots in place and have the ability to vary the setpoints at any time, to what you may desire.
Note that when completed, one can also add this on/off circuit to an existing throttle. It's not a case of one or the other. In this case just the high voltage resistor and momentary switch would need to be added, with the throttle covering the home or low voltage requirement. (If needed)

In case you missed it and are interested, a bit more about double throttle operation can be seen here...
Guide to Hall Sensor Throttle operation, testing, and modification. - Electricbike.com Ebike Forum

With the values of the resistors determined I then made a model in LTspice to verify the voltages and current readings I was getting. This is where the circuit schematics below came from.

Here is a look at my typical test bench set-up.


Tommycat Test Bench Set-Up.jpg

For my specific controller, this is the solution for the resistors, and how I would enable them that I came up with.

For a TWO resistor circuit, that should work for most systems solution...

Double Low.jpg



Double HIGH.jpg


This circuit is tried and tested, and it works perfectly with my specific controller. By changing the R2 resistor, you can change the "high" speed to any voltage (speed) amount desired. Even to just above the motor start level, for say, to enable a "walk" speed. In this configuration there is no hesitation or issues in motor operation between switching between Off and On. (Or "low" and "high" voltage setpoints.)


  • How to customize or determine the resistor values for your specific controller, possible short-cuts.

Determine your exact controller requirements and determine resistor values as mentioned above...

Or if desired you could try a few short-cuts that may or may-not work. As your controller has internal resistance on the input signal's line, current will be kept at less that .4mA automatically. Sharp eyes will have seen this in the LTspice circuit schematics.

I would encourage you to test for this resistance before testing to verify.

With the battery removed, and the controller drained of all its stored capacitance voltage. Remove throttle and take a resistance measurement between the controller's throttle input signal and its throttle ground. Mine is 14.7K ohms. If you'd be kind enough to share your internal resistance reading, I'm curious if all controllers are somewhat similar.

With existing throttle removed, possible short cut examples or tests are...

For fun, grab a button cell 3vdc battery and using the correct input locations on your wiring for the throttle...
Wire the negative side of the battery (verify polarity, I find button cell batteries upside down.) ;) to the controller's ground. Then connect another wire to the controller's throttle signal input, and when ready to test, touch it to the positive side of the battery. This should signal the controller to run at just below top speed. On my rig, I would have to "bump" start... On/Off/ON in quick sequence in order to counter act the low voltage cut-out. Keep this possibility of hesitation in mind during testing. This test will give you a feel for how your rig will react, and give you experience modding the throttle signal.
This can also be used to verify that your controller is operational.

In case you missed it...
Guide to Hall Sensor Throttle operation, testing, and modification. - Electricbike.com Ebike Forum
op46I6T.jpg
(I remembered my button cell battery was partially depleted for this test, which explains the lower signal supply voltage.)

Or try switching the positive power provided (5 to 4.3vdc or there about) directly to the signal input. As mentioned above, I would use an external power source for all testing, but if your careful and don't short anything out... your call. If this works for you, terrific!


If still not satisfied, a single resistor in the R1 position as shown below approach can be tried...


Single HIGH Good.jpg

Swapping in different resistance values for R1, in the vicinity of what I required, will hopefully get you where you need to go.

Some notable issues when using the single resistor circuit on my controller...

It will set an error code that will disappear when the button is pushed. (Throttle low-voltage error)
The resistances between a double and single resistor high voltage circuit are different. In the single resistor circuit, a higher voltage output (I.E. lower resistance) was needed for stable operation.
When testing single resistance circuit resistances providing voltages in the motor's operating range, yet below the motor maximum speed starting point, problems where encountered.
At these voltages an immediate switch to the higher voltage was NOT possible directly after first powering up the controller. Now it could be obtained by "double bumping" the throttle button on/off/on in a quick sequence. (possibly fooling the low voltage error cut-out...) But for me it would not be acceptable.

Hopefully this thread will have been of help in this particular pursuit.

Any questions or constructive criticism are certainly welcomed. But if not sure of any suggestions or wiring mentioned. Please ask BEFORE trying. :oop: Be glad to clarify or help if I can. Good luck and good modding.


Respectfully submitted,
Tommycat



Just some extra notes or thoughts if interested.

My controller's throttle voltage input was higher with regular throttle removed... 4.9vdc instead of 4.3vdc.
A hall sensor itself will consume ~6mA of power, but only about .05mA (Home) to .27mA (WOT) of current, on the signal line. (With controller energized)
It's been thought that perhaps such low current usage could/would be problematic. After testing with current levels far below these levels. I believe that is not the case. But for the same reason would recommend the best connections possible. (I.E. soldered)
Considered using the hall sensor's operational characteristic of allowing high voltage output when losing its ground.
But having to keep the throttle installed, need for a normally closed switch, possibly adding a resistor, and a possible fail-safe liability... I elected to pass.
 
Last edited:
You guys know how to make stuff complicated. On most controllers, if you want a push button throttle, all you need is a momentary switch between the 5v and the signal.

Why not use a thumb throttle. They don't take up much room and you get variable output.
 
Hello Tommycat. Thanks for putting this super helpful guide together. I have a question on the valid throttle ranges and how the guide should be used in different cases. My old KT controller shows a throttle range on the label that is 1V-4.2V. Looking at some Lishui controllers, and the labels I saw stated the range of 1.2V-4.4V. Should the guide be used differently in those cases, to set the high voltage end zone closer to those values?

PS. on my old KT controller, the lower undocumented zone below 1V would trigger variable regen down to around 0.1V or so before cutting out, which I could take advantage of with careful throttle control. I used a pushbutton and trim pot to keep the voltage above 0.1V then had variable regen using the throttle down to 2mph.
 
On most controllers, if you want a push button throttle, all you need is a momentary switch between the 5v and the signal.

How many controllers have you done this with? If you give me an accurate account of makes and models, perhaps we could save some individuals some unnecessary trouble by creating a list.


You guys know how to make stuff complicated.

Just trying to give the most accurate and straightforward testing information for everyone to achieve success.

Thread is open for business! :)
 
I have a question on the valid throttle ranges and how the guide should be used in different cases.

Is this still in question after completing the thread?

And I find your discovered variable regeneration feature interesting. Did you come up with a permanent control of it?
 
Is this still in question after completing the thread?

And I find your discovered variable regeneration feature interesting. Did you come up with a permanent control of it?
I think the thread is consistent in how the voltage lockout occurs since the voltage level is right around (just below) what I set my regen button to, to keep the throttle signal just above lockout. I'm not sure about the ranges, but I think the valid range was close to what the controller label stated.

I discovered the behavior accidentally while noticing some strange behavior with PAS where the motor felt like it was braking. I was also noticing how/when the controller would stop assist, then coast, but that didn't happen at the same time/throttle position. So where my KT had a 1V-4.2V throttle range per the label, it felt like there was some other behavior below 1V but before cutout, and the more I played with that region, I started noticing I could feel braking. So, when I setup the voltage divider and button, I kept tweaking the voltage to get above the cutout voltage, which set the voltage floor when the button was pressed. If I completely let off the throttle with the button pressed, I'd get full strength regen (like when I use the brake cutoffs), but with a little manipulation of the throttle, I could vary it. Interestingly, where my normal regen would stop regenning at around 8mph, the throttle regen would regen down to 4 mph.

I reference your throttle guide in my post lol.
 
Back
Top