Throttle interface for sensitive high power setups

Get all your technical information about electric bikes here.

Re: Throttle interface for sensitive high power setups

Postby zombiess » Tue Apr 17, 2012 11:06 am

Connectors aren't much of a worry yet. I just need to make sure the darn thing works as I expect it to. Then onto phase 2 :) Connectors will be phase 3 or 4.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby neptronix » Tue Apr 17, 2012 11:53 am

IMHO...

Sell them to optibike as well. Their throttle response is awful. It suffers the same problem as early BMC/MAC controllers - it's basically an on/off switch.
ES facebook group: http://facebook.com/#!/home.php?sk=group_125035107565566&ap=1

The all-arounder: 8T MAC motor on a Trek 4500.
The girlfriend bike: 350W front MAC on a 700c Trek.
The wheelie machine: 20" Rear Magic Pie II on a Trek 4300 MTB
The Bus: ??? on a 'da bomb' cargo bike frame

Pro-tips for noobs: Avoid BMS Battery like the plague | Charge RC Lipos to 4.15v, stop discharging at 3.5-3.6v | Use torque plates/arms! | Rear mounted hubs are always best
User avatar
neptronix
100 GW
100 GW
 
Posts: 10287
Joined: Tue Jun 15, 2010 5:56 pm
Location: Salt Lake City, Utah

Re: Throttle interface for sensitive high power setups

Postby Tench » Tue Apr 17, 2012 12:14 pm

The exponential ramp up of the voltage to the controller would be brilliant, i would be up for a few of these too.

I believe the Stealth uses the Crystalyte type connectors.

Simon.
Project Two viewtopic.php?f=6&t=37489
Project one viewtopic.php?f=28&t=20304&hilit=tench

The uk's first Stealth Bomber
Tench
1 kW
1 kW
 
Posts: 423
Joined: Tue Jul 13, 2010 12:48 pm
Location: UK

Re: Throttle interface for sensitive high power setups

Postby snellemin » Tue Apr 17, 2012 5:31 pm

I wouldn't mind buying a "kit" format for my bike. Will help a lot with my 22S sensorless setup.
49.6mph EVG SX w/24S2P, 12fet Lyen sensorless ESC, Magic Pie II
32mph Fuji MTB w/14s1p 6fet Lyen sensorless ESC, GNG+LR kit, Zombie throttle interface
User avatar
snellemin
1 kW
1 kW
 
Posts: 438
Joined: Sun Apr 03, 2011 12:24 am
Location: Tomball TX

Re: Throttle interface for sensitive high power setups

Postby ZOMGVTEK » Tue Apr 17, 2012 8:20 pm

Neat. This looks like it's working quite well.

I don't see connectors being an issue. This isn't really useful on low power bikes, since a few hundred unintentional watts is barely noticeable. People using several kW setups should be able to solder 3 wires. Plus, it will make it cheaper and easier to stock/order.
ZOMGVTEK
100 kW
100 kW
 
Posts: 1193
Joined: Sat Jun 06, 2009 1:40 am

Re: Throttle interface for sensitive high power setups

Postby zombiess » Wed Apr 18, 2012 1:21 am

I didn't get to test it on my bike tonight, but not for lack of trying. I'm missing one stupid connector to connect up the throttle (and am not going to cannibalize any of my working stuff for it). Got the one made and installed, hot glued the important parts to the breadboard so nothing comes loose during testing and then couldn't find the female molex connector I use on my throttles. Drove to Fry's Electronics who has them in stock and forgot my darn wallet. Gave up for the night because I got there right before they closed. Should be testing it tomorrow and posting results good or bad after I pickup the correct connector when I'm done with work unless forces conspire against me. I'm anxious to test this out. Might not be as good as a Sevcon with it's awesome throttle I've tried on Farfle's 2Pi, but it's gotta be better than stock at my power level.

If this works I'll get some test units made for others to try out and review.

I'm also wondering if this will help improve WH/Mi when making small speed changes by preventing the amps from shooting up while trying to reach the new target speed. I'm hoping I can get good enough throttle response that I can always run around on high power and not have to worry about switching modes as often as I do, that would be fun.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby zombiess » Thu Apr 19, 2012 1:15 am

Finally got the unit on the bike and tested it tonight. Short version, it makes a huge difference in how much throttle control you have, especially in the low range. I had no problem at all starting from a dead stop and taking off smoothly while running 7000 watts. It also gave me a larger throttle range with no dead zones because I could use the trim pots to set the start and end voltage. I don't need to run a power selector switch if I don't want to because the throttle control is that good when starting from a stand still even on 105% throttle. It is also 100% compatible with the 3 speed selector switch settings, worked as expected in every setting.

Now the long version for those interested. The delay function works but not the way I want it to. After letting off the throttle it tends to make the throttle too laggy if it's set too high. I have a solution for this I'll try to implement over the next few days. With or without the delay the mid range is a little on the touchy side still but I have several idea on how to solve that now that the interface is working. It could also be because I didn't have my throttle range set correctly so I need to double check that.

First problem I encountered was that I forgot to set the some variables to zero on initialization so the wheel would start spinning. I fully expected this to happen and had the bike upside down so it wasn't a surprise. Quick program change and that problem was solved. The second problem is the throttle seemed to be glitchy which seemed strange to me since it was so smooth on the bench. I figured it was noise on the throttle line so I added in a 0.1uF decoupling cap from the throttle signal input to the microprocessor to ground on an educated guess and that solved that problem; nice and smooth throttle response from then on. My EB318 controller has a very small voltage range over which it operates. With the controller hooked up the motor starts to turn at about 1.4V and is full throttle around 3.3V so that's where I set my controller to with it inline between the throttle and controller. When I took the interface off the bike and measured the range with it on the bench my throttle range reads 1.85V to 4.42V using the same settings but not connected to a controller. This surprised me, there must be some resistors that place a load on the throttle signal line, my output isn't buffered through an op amp, it's just a digital 10k ohm potentiometer so there might be some interaction going on. I'll probably try adding an LM358 op amp as a buffer to see if it makes any difference. The actual throttle itself when supplied with 5V has a low voltage of 0.83V at the minimum position and 4.29 at the max position, this is the same on or off the bike.

A little more work through next week and I should have something I consider solid to make a test batch of and send out to others to get their thoughts on it. I'm extremely happy with the results so far and with some of the changes I have in mind it should get even better.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby lostrack » Thu Apr 19, 2012 2:47 am

Zombiess, this is fantastic work. Anks for developing something all of us high power users have been crying out for.

I for one will be glad to see one of these if you reach production stage soon. Throttle averaging would be fantastic on the bumps too.mas long as you say, it can release instantly (or you can install a throttle interrupt switch, activated by ebrake or similar, that instantly cuts to zero)

Nice work

Tom
User avatar
lostrack
100 W
100 W
 
Posts: 228
Joined: Sat Nov 12, 2011 4:23 pm
Location: London, UK

Re: Throttle interface for sensitive high power setups

Postby Tench » Thu Apr 19, 2012 5:17 am

I am in awe of you guys on here that have this level of understanding of electronics! 8)
I would really like to try one of these on my mid mount when you have a few made, it is only 3Kw but on the bighit chassis with long travel suspension i get squat at the rear on the initial take up as the power does kick in a little more ferocously than i would like unless a lot of care is taken, any amount of care though is sometimes not enough when off roading on rough ground. This makes standing up in lower gears when doing technical riding a bit of a challenge, i shant stop in my quest to make my bike more user friendly untill it becomes the very capable off road bike i know it can be. I think the exponential voltage rise is the answer to an e-bike that "carburates" less than perfectly with the off the shelf throttle and controller setups that we currently use, i have allready trimmed the the throttle voltage to eliminate the dead spot which improved it a lot :D

I am also planning an RC build and have a cyclone equipped bike that lacks some finess in the initial take up so i would be happy to buy 3 of these off you when you have cracked the design.

Simon.
Project Two viewtopic.php?f=6&t=37489
Project one viewtopic.php?f=28&t=20304&hilit=tench

The uk's first Stealth Bomber
Tench
1 kW
1 kW
 
Posts: 423
Joined: Tue Jul 13, 2010 12:48 pm
Location: UK

Re: Throttle interface for sensitive high power setups

Postby zombiess » Mon Apr 30, 2012 2:44 pm

Here is an update.

I had a problem with the way I was calculating the exponential curve and not getting a true exponential curve causing some over sensitivity in the mid range I didn't like (but way better than stock). I believe I have that solved now. I'm building a version of this that I can install on my bike tonight. I want to start commuting with it this week to make sure all is well before I do the first run of prototype boards.

I haven't done much with it this the past week besides think of solutions to some problems since my Fiance moved in with me last weekend so we have been reorganizing the house so she's feels more at home :D I'm also studying for a Microsoft cert I have to get really soon so I can get a contract position. Once that's out of the way I'll be a lot less stressed. Haven't been enough hours in the day lately.

I'm trying to come up with a slightly better throttle algorithm, but I might just release it as is for now since I want to get this out there. Just converting the input to an exponential curve makes a huge difference in how easy it is to control your bike when using a Xie Chang based (Lyen, ebikes.ca, etc) controller.

I own both EB2XX controller and EB3XX controllers and this is compatible with both.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby zombiess » Wed May 02, 2012 1:59 am

Got the circuit built into a much more stable platform instead of on the bread board. It's now built on perfboard so I can install it on my bike for further tweaking. Next up is a quick batch of demo boards I can send out to a few people to test after I ride with this on my bike for a few days to check for bugs. This is a product I also plan to continue to improve on if I can find ways that make it nicer. I should have it installed tomorrow night and ride to work with it on Thursday.

Any feature requests? Right now these are the features:
Exponential throttle curve so there is more range at the low end and mid range
Set low voltage output minimum
Set high voltage output maximum
Set averaging filter & delay that can be turned off, (combined together and I'll probably limit the delay to a max of 0.5S, but test riding will let me know)
Settings are done with 3 trimmer pots to keep setup simple
Dual buffered throttle outputs so you can run two controllers off a single throttle, no more need to hack things together and splice wires.

It's pretty basic but it works much much better than stock. I can hand my 12KW bike to someone on the high setting and they have no problems starting off.
Last edited by zombiess on Wed May 02, 2012 10:58 am, edited 1 time in total.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby Paul_G » Wed May 02, 2012 6:47 am

If possible you could build it right into the throttle and sell throttles at a far higher price/profit.

If you do that just remember I hate a 1/2 size throttle but thumb or full is fine....hehe
Paul_G
1 kW
1 kW
 
Posts: 312
Joined: Mon Feb 28, 2011 8:42 am
Location: Bronx, NY

Re: Throttle interface for sensitive high power setups

Postby zombiess » Wed May 02, 2012 11:05 am

Paul_G wrote:If possible you could build it right into the throttle and sell throttles at a far higher price/profit.

If you do that just remember I hate a 1/2 size throttle but thumb or full is fine....hehe


I'd have to have custom entire throttles built with enough room for the circuitry (even a surface mount version), that's not going to happen. Seen way too many bad things come out of China and money wasted (that I don't have to spare) on first and second attempts. First version is going to be all through hole components. Probably going to leave it up to the end user to enclose it, at least initially. An epoxy potted version would be good as well. All stuff to worry about after it's working the way I want. One step at a time.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby neptronix » Wed May 02, 2012 1:34 pm

Hurry up bro, i need my front wheel on the ground over here when i hit my throttle :mrgreen:
ES facebook group: http://facebook.com/#!/home.php?sk=group_125035107565566&ap=1

The all-arounder: 8T MAC motor on a Trek 4500.
The girlfriend bike: 350W front MAC on a 700c Trek.
The wheelie machine: 20" Rear Magic Pie II on a Trek 4300 MTB
The Bus: ??? on a 'da bomb' cargo bike frame

Pro-tips for noobs: Avoid BMS Battery like the plague | Charge RC Lipos to 4.15v, stop discharging at 3.5-3.6v | Use torque plates/arms! | Rear mounted hubs are always best
User avatar
neptronix
100 GW
100 GW
 
Posts: 10287
Joined: Tue Jun 15, 2010 5:56 pm
Location: Salt Lake City, Utah

Re: Throttle interface for sensitive high power setups

Postby binlagin » Wed May 02, 2012 1:43 pm

I want in on this!
Greyborg Motor, 18-FET Lyen Controller
Turnigy 20C @ 30S x 2P
Giant Team DH Bike, Kiwi Dropout adapters
100km/h+
binlagin
100 W
100 W
 
Posts: 193
Joined: Thu Oct 06, 2011 11:55 pm
Location: Ottawa, Ontario, Canada

Re: Throttle interface for sensitive high power setups

Postby zombiess » Thu May 03, 2012 1:11 am

Ran into a little bit of a snafu in the design. It appears my circuit is unable to feed the full WOT voltage to the controller when I use the op amp buffer due to the voltage drop associated with it and the fact drawing any power from the throttle line drops the 5.0V supply down to 4.3-4.6V. This only allows me to output about 3.1V from the op amp and I need to get 3.35V in order to reach full throttle. To fix this I have two solutions. Run a separate power supply for the op amp or just eliminate it. The controller works perfectly fine running off the resistor so I'm most likely going to take this approach unless I find a low voltage drop single power supply op amp. I like to buffer signals, especially those coming from a resistive output, but it works OK without it and drops my part count by one IC. It also loses the ability to drive two controllers, but that's not that big of a deal to me, just thought it would make a nice extra. I don't think it's going to be worth adding the extra complication since resistive throttles have proven to work just fine.

I also swapped from a 10k potentiometer to a 50k to see if there was any difference and the performance is the same, so that's good news.

Was hoping to ride it tomorrow, but now I have to wait and make the decision on what to do for the design.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby zombiess » Fri May 04, 2012 12:42 am

Made the decision to drop the op amp from the circuit. Rode the bike tonight on just the resistive setup. Immense improvement in throttle control down low, but the mid range is still quite sensitive if you let off the throttle an then re-engage it at the same speed. I'm going to go ahead with the first prototype circuit boards, but I'm going to work on some code to hopefully allow smoothing when re-engaging the throttle after coasting. Of course it could just be that my muscle memory is so use to the normal throttle that I just don't know where the right spot is. I'll try to think up an algorithm for it over the weekend, I already have a few ideas in mind. Might require an adjustment of 4 potentiometers total. Either way, I'd still rather ride my bike with this interface than not, low speed control is soooooo easy now.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby binlagin » Fri May 04, 2012 12:25 pm

I appreciate this work your doing Zombiess!

But... I feel the mid range application of throttle is really the most important.

Getting on the throttle mid-corner right now is a butt-puckering experience... and that's really where I feel I loose out on a lot of speed. Not being able to apply the throttle to re-distribute weight and hit the apex through the corner.

Currently... with my crappy suspension and this twitchy throttle.. I slide my rear on any corner with speed(very dangerous). My suspension replacement is in the mail.. so hopefully that'll help it, but I really feel the motor could turn on little smoother through the corner.

Just my 2 cents... I'm sure anything is better then what we have to deal with now!
Greyborg Motor, 18-FET Lyen Controller
Turnigy 20C @ 30S x 2P
Giant Team DH Bike, Kiwi Dropout adapters
100km/h+
binlagin
100 W
100 W
 
Posts: 193
Joined: Thu Oct 06, 2011 11:55 pm
Location: Ottawa, Ontario, Canada

Re: Throttle interface for sensitive high power setups

Postby zombiess » Fri May 04, 2012 1:24 pm

Binlagin, I completely agree and have the exact same issues as you, the mid range is where it needs most of the work. I'm happy with the low and high ranges, now I just need to tweak the mid range. I'm working on it.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby zombiess » Tue May 08, 2012 1:59 am

Still working on this and making good progress. Made a ton of changes this weekend but it's going to be a little while until I can wrap this up. At first I thought this project was going to be a simple conversion of the throttle input to a exponential output, some filtering, maybe a delay and it's done. It turns out that was pretty easy to do but does not solve all the issues I want solved. I've thought up some creative ideas on how to solve several issues I'm trying to implement now. Hopefully the wait will be worth it. I'm going to be working on this all this week, so much for a quick simple program. What looked good on my simulator worked just as expected, but not exactly the way I wanted once I tested it in actual hardware.

This is why things always need to be field tested. The original version that converts the throttle input to an exponential curve and does some filtering is on my bike now and I ride with it so I'm still field testing and the results have been great. No hiccups with the hardware, behaves just as expected on my EB318 controller.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby Lebowski » Tue May 08, 2012 5:32 am

you need to get started with my controller IC, then you don't need this :D

Am working on a PCB for my controller...
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Throttle interface for sensitive high power setups

Postby zombiess » Tue May 08, 2012 2:24 pm

Lebowski wrote:you need to get started with my controller IC, then you don't need this :D

Am working on a PCB for my controller...


yes, I do need to start working on your controller because it's how I'd like to drive my mega power stage (which also needs to a PCB to be finished, I also need to build and test out my driver setup and have the PCBs for that done), but I need to start making money too and this is a useful device to many people so it's got my priority at the moment. I don't have the most secure job situation and now I have two people living on my income and my fiance/very soon to be wife is not legally allowed to work yet, so I have to maintain some priorities.

So many cool projects to work on, just need more time (and now some of my free time is spent with her, just as it should be).

I just passed my MCTS for Microsoft Hyper-V Virtualization so I should have some more time now since I needed a cert to land a part time contract gig I want. Maybe some time will free up in the near future and I can make even more progress.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

Re: Throttle interface for sensitive high power setups

Postby lostrack » Mon May 14, 2012 9:38 am

Any news zombie?
User avatar
lostrack
100 W
100 W
 
Posts: 228
Joined: Sat Nov 12, 2011 4:23 pm
Location: London, UK

Re: Throttle interface for sensitive high power setups

Postby Alan B » Mon May 14, 2012 5:33 pm

lostrack wrote:Any news zombie?


He got married and received a shipment of Cromotors, so he's been busy...

Edit - apparently I misunderstood, sorry.
Last edited by Alan B on Mon May 14, 2012 9:56 pm, edited 1 time in total.
-- Alan W6AKB Cromotored FS GreyBorg, Novara MTB 9C, eBikeE Bent BMC, myEbikeWeb and Thanks to Justin at ebikes.ca for rescuing this forum!
User avatar
Alan B
1.21 GW
1.21 GW
 
Posts: 3877
Joined: Sat Sep 11, 2010 7:43 am
Location: San Francisco Bay Area, USA

Re: Throttle interface for sensitive high power setups

Postby zombiess » Mon May 14, 2012 7:48 pm

Not married yet, but soon. Just started a new part time job, got laid off from my regular one and converted to contract. Ive been so busy at the new part time job they havent even been able to give me an orientation and ive been there 3 days now.

Project is on hold until i can get some stability back in my life.
Greyborg Hub Motor, Lyen 18FET, Customized full suspension kids MTB. Top Speed 61 MPH
9C 8x8, 24S2P LiPo, Lyen 12 FET, Diamondback Recoil Comp. Top Speed 42 MPH
GreyborgUSA Dealer
zombiess
1 MW
1 MW
 
Posts: 1505
Joined: Tue Feb 01, 2011 2:16 am
Location: Ventura

PreviousNext

Return to E-Bike Technical

Who is online

Users browsing this forum: ken1645, kentlim26 and 13 guests