XPD: open-source keywin e-bike lab replacement

Get all your technical information about electric bikes here.
User avatar
stancecoke   10 kW

10 kW
Posts: 896
Joined: Aug 02 2017 2:56pm

Re: XPD: open-source keywin e-bike lab replacement

Post by stancecoke » Sep 26 2017 2:12am

I just bought this controller from aliexpress.

Edit: The processor is a 16bit NEC:
D79F9211
1635EB40x

Is there any experience with this controller and the XPD software?

Regards
stancecoke

edit: here are some pictures of the circuit board:
Image

Image

Image

Galvo   100 µW

100 µW
Posts: 9
Joined: May 01 2017 8:28am
Location: Singleton WA

Re: XPD: open-source keywin e-bike lab replacement

Post by Galvo » Sep 30 2017 4:39am

Cowardlyduck wrote:It's not exactly related to the XPD software, but I had some issues using it after upgrading to Windows 10 recently.

The issue turned out to be with my USB to Serial chip. Apparently Prolific (the makers of most of the chips used in USB to Serial converters) no longer support the 2303 chip on Windows 10.
After doing some digging I came across the blog post below that outlines how to install an older driver from 2008 that makes it work on Windows 10.
http://leftbraintinkering.blogspot.com. ... evice.html
After installing the old driver I was able to run XPD and upload new settings to my controller (18fet EB3) again. :)

Cheers
Yay I cannot believe how much I have read to finally find the the answer to my issue been on it for about 6hrs :) Thank you Cowardly Duck so much.
The program finally recognizes the serial port im using. Ok Ive read heaps but Im a dummy so going to ask anyway as I didn't see my controller. Its a 12fet 3077 mosfets 48v Max 60v can some one please give me an idea of what the settings should be for regen? I had the bike wired for a test run and regen was like changing from 5th to 4th gear and I have been told regen is strong on this controller? I am running a 52v setup. I do have a broken wire that needs mending on the 3 speed switch could that be affecting regen?
Also a quick question. Can you see the settings that are already in your controller? when you plug in the cable does it register the settings? I would like a copy of what it is set at in case I do something undesirable. My controller is below.
Attachments
22046480_10155993551039683_1617251809533252855_n.jpg
22046480_10155993551039683_1617251809533252855_n.jpg (68.13 KiB) Viewed 1559 times

User avatar
Cowardlyduck   10 MW

10 MW
Posts: 2429
Joined: Jun 26 2011 8:41pm
Location: Canberra, ACT, Australia

Re: XPD: open-source keywin e-bike lab replacement

Post by Cowardlyduck » Sep 30 2017 5:59am

Hi Galvo, glad that info was helpful! :)

To increase the regen, make sure you set it to Strong or Unlimited in the Regen setting, and also make sure the upper voltage limit is your batteries fully charged voltage. Also be aware that the EB3 controllers have a bug where if you set the max regen voltage to about 58.4V they will actually set it lower by about 2-3V. You either have to accept this lower value, or set it higher. I found setting it to 58.6V+ usually fixed it and I just accepted the small risk to my battery (it's really not that bad anyway as you will use that excess power soon after anyway).

To answer some of your other questions. Your 3 speed switch won't be affecting regen. You cannot read the settings already set from the controller (it's just not possible with these controllers).
For the most part, the pre-set configurations that come with the XPD software are acceptable for a regular hub motor setup so if you screw it up, just start again from one of those.

Cheers
High Power LiPo wiring harnesses - 4P - XT90, HXT4mm, 5.5mm. 200Amp+ capable. Global shipping.

Modified Stealth Fighter - Force air cooled motor @ 6KW, Heat-sinked Adaptto Mini-E. 49AH, 52V 18650 - 2.5Kwhr
Cowardlyducks - Stealth Fighter Videos

BikeE recumbent commuter - 9C, 6Fet Grinfineon, internal 17AH, 52V, + on-board solar.

The stuff I make and modify.

Galvo   100 µW

100 µW
Posts: 9
Joined: May 01 2017 8:28am
Location: Singleton WA

Re: XPD: open-source keywin e-bike lab replacement

Post by Galvo » Sep 30 2017 6:08am

Thanks Cowardly
Apparently I need the KH612 infinion 4
So got that sorted.
Regen is not shown as strong or low etc on this setting it shows it as Force i.e 40 then theres ebs limit voltage so I guess I just keep increasing the force ( May the Force) until im happy. I cant believe I played and read for 3 nights until I saw your post hahaha

User avatar
Htfan   100 W

100 W
Posts: 131
Joined: Oct 24 2014 12:10am
Location: So Cal

Re: XPD: open-source keywin e-bike lab replacement

Post by Htfan » Sep 30 2017 7:58pm

jerome_speedy wrote:Hi all,

I tried to use the XPD program, which seems so much more simple to use than the Keywin software, but I have several problems....

First of all, my Xie Chang controller (supposedly on ver 6, which infineon number does it equate to ?) was delivered with a 5 pin MALE JST plug, which is unsual
P1060128.JPG
Also, my USB-TTL cable, bought from Lyen, doesn't have the same colour order from the picture 2 posts before,and the cable loop is not on the same pin number, which is a bit puzzling.
P1060126.JPG
As for the software itself, XPD used under Linux runs well but didn't recognize my controller (not surprising given the wire problem discussed above).
On Windows XP, XPD 3.3 doesn't even start, although all the packages from Sourceforge were installed (Python 2.7 is in the programs menu and the programs launchs).

Any suggestion ? I only want to program the regen braking on my controller, nothing more ! Thanks
I didn't see an answer to the lyen programming cable compatibility question. I have a lyen 12 Fet and his cable does not seem to successfully upload to the controller. (download seems to work)

Thank you
"Try not to become a man of success, but rather try to become a man of value."

- Albert Einstein

User avatar
MrDude_1   100 kW

100 kW
Posts: 1015
Joined: Aug 17 2012 3:07pm
Location: Charleston, SC

Re: XPD: open-source keywin e-bike lab replacement

Post by MrDude_1 » Oct 16 2017 11:25pm

Galvo wrote:
Cowardlyduck wrote:It's not exactly related to the XPD software, but I had some issues using it after upgrading to Windows 10 recently.

The issue turned out to be with my USB to Serial chip. Apparently Prolific (the makers of most of the chips used in USB to Serial converters) no longer support the 2303 chip on Windows 10.
After doing some digging I came across the blog post below that outlines how to install an older driver from 2008 that makes it work on Windows 10.
http://leftbraintinkering.blogspot.com. ... evice.html
After installing the old driver I was able to run XPD and upload new settings to my controller (18fet EB3) again. :)

Cheers
Yay I cannot believe how much I have read to finally find the the answer to my issue been on it for about 6hrs :) Thank you Cowardly Duck so much.
The program finally recognizes the serial port im using. Ok Ive read heaps but Im a dummy so going to ask anyway as I didn't see my controller. Its a 12fet 3077 mosfets 48v Max 60v can some one please give me an idea of what the settings should be for regen? I had the bike wired for a test run and regen was like changing from 5th to 4th gear and I have been told regen is strong on this controller? I am running a 52v setup. I do have a broken wire that needs mending on the 3 speed switch could that be affecting regen?
Also a quick question. Can you see the settings that are already in your controller? when you plug in the cable does it register the settings? I would like a copy of what it is set at in case I do something undesirable. My controller is below.
And your quote of his post helped me! :lol:
Warning:This post is being read via light, a substance known to the state of California to cause cancer.

inetchik   1 µW

1 µW
Posts: 3
Joined: Mar 25 2017 3:24pm
Location: Russia, Saint-Petersburg, 60.041778, 30.423250

Re: XPD: open-source keywin e-bike lab replacement

Post by inetchik » Apr 23 2018 7:53am

Hello, Andrew.

V0.4.1a working GOOD in XP.
Thanks for READ Mode.
anpaza wrote:
Jul 23 2017 10:48am
New version for public testing: 0.4.1 alpha.....
....... * XPD for Android (from scratch in Java) (not finished yet, so, no test builds for now)
How to install XPD (not finished) to Android devices and connect to controller via PL2303HxD+OTG, it's possible ?
Maybe you have a Command List (Get...., Set.....) for working (reading and writing) with controllers via Serial Terminal for Android devices
Screenshot_2018-04-23-16-15-43.png
Screenshot_2018-04-23-16-15-43.png (75.09 KiB) Viewed 766 times
with application PL2303HxD ?

Best regards,
Last edited by inetchik on Apr 23 2018 8:38am, edited 3 times in total.

hypertoric_amplituhedron   100 W

100 W
Posts: 151
Joined: Dec 02 2016 7:57pm
Location: Land of the Florida Man

Re: XPD: open-source keywin e-bike lab replacement

Post by hypertoric_amplituhedron » Aug 11 2018 1:21pm

I have an issue installing python 2.7.1 on a new mac with windows 8 bootcamp. The installer quits prematurely, citing some error that I will update later with a screencap. Python 3.7.0 will install fine, but won't recognize the older files for XPD. So I'm stuck!

Anyone have or troubleshot this issue yet? My options are to get a small windows based tablet, use a pc not at home, or maybe this android XPD version is the way to go.
There are two types of people in this world.

1. Those who can extrapolate from missing information.

Post Reply