HELP - EB306 Programming [SOLVED]

adrian_sm

1 MW
Joined
Feb 22, 2009
Messages
2,429
Location
Melbourne, Australia
------------------------
[EDIT: 2012-12-04 - SOLVED]
Problem solved for my issue. The wiring was wrong. The correct wiring is document here.

Huge thanks to "crumly" for posting the picture that helped me resolve this.
-------------------------
Okay I received some brand new EB306-C-6 6fet sensorless controller kits from Keywin. No FETS. And I am really struggling to get them programmed.

I have the old Lyen programming cable, which requires an adapter cable to make work.
References:
http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&p=643165&hilit=Programming+Adapter#p643165
http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&start=270#p621878
http://www.endless-sphere.com/forums/viewtopic.php?f=2&t=42386&p=619465#p621458

I made mine slightly differently, but should be electrically identical. Please correct me if I am wrong.
EB306 cable.jpg

When I use the "Lyen Mark 2 Controller" software from here: http://www24.brinkster.com/lyen/product/controller/Sensorless_Mark_II/
- I successfully install the 64bit drivers, all four OCX files register properly, the device manager shows the device is installed properly, and the correct COM port.
- Run the software, select EB306 from the drop down, adjust the parameters, select the correct COM port, hit "Start Transmit", hold the button on the cable, and I get the transmit gauge fill up.

But then I receive a "No responce" error in the dialog area. Arrgghhhh.

Similarly if I use the XPD software v0.3.1 from here: http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&hilit=Programming+Adapter
All seems fine, I enter the parameters I want, save the file, select the right COM port, hit Apply get the "Waiting for controller" message. Hold the button on the cable and get the "Waiting ackonwledgement" which never goes away.

Arrggghhhh.

This happens on both controllers I tried, one that I have fitted with all the missing components (FETs, LM317, & R01), as well as one untouched board missing those components. I have spent half the day trying different drivers, programs, computers, etc, to get this to work with out any luck. I must be missing something simple.

What should I try next? I am running out of ideas.

- Adrian
 
Just posting the various adapter cables side by side incase I see something I missed before.
Source: Kingfish
Lyen.ProgrammingAdapters.jpg

Source: anpaza
file.php

Source: tourtoe
2011-11-30200938.jpg


And Mine:
file.php
 
Relevant pins outs

Lyen Programming cable pinout
Source: http://www24.brinkster.com/lyen/product/controller/Sensorless_Mark_II/
Pin 1: Red = +5v Feed
Pin 2: Red = +5v
Pin 3: Black = Ground
Pin 4: Green = Transmit
Pin 5: White = Receive

EB306 Programming Header
EB306 - Programming Header.jpg

So here is the way I have my pins mapped

Lyen Cable -> Adapter -> EB306
Pin1: Red (5v) -> NOT USED (This looksthe same as Kingfish's image)
Pin2: Red (5v) -> +5v
Pin3: Black (GND) -> GND
Pin 4: Green (TX) -> RXD
Pin 5: White (RX) -> TXD
Pin 5: White (RX) -> RESET (This is what the yellow jump wire does in the adapter cable)

Looks right to me........ :?
 
Update

Both controllers are now built up and spin up motors. So I haven't killed them.

But I still can't program them.

:(
 
Hello Adrian,

have you fixed the problem?

Maybe, i have a similar problem, but until yet, no solution.

So, if i want to program an EB306-C-6 controller (new from keywin with new cable in Oct. 2012), it doesn´t work.

I always get the message: "no response". I have tested it with different computers, programs (incl. XPD), but it doesn´t work.

Has somebody a solution?
 

Attachments

  • eb306.jpg
    eb306.jpg
    57.1 KB · Views: 4,172
  • cable.jpg
    cable.jpg
    53.2 KB · Views: 4,172
No I still haven't programmed it, until just now. :D

I noticed something different between your wiring and mine.

You have the yellow connected to SDA pad on the EB306
I had mine connected to the RESET pad on the EB306.

I swapped it over, and it programmed first try. Wooo hoo.

So the correct wiring is
RESET -> unused
+5v -> 5V (RED)
GND -> Ground (BLK)
RXD -> TXD (Green)
TXD -> RXD (White)
SDA -> RXD (White)

So problem solved for me. But that doesn't help you, as your wiring is correct as far as I can tell.

I saw mention of issues with different drivers for the programming cable, you could perhaps try one of the alternatives if you are not sure, or if Keywin did not provide you with the driver.

Lyen provided quite nice instructions on setting up the software, which I used and can now confirm works. Might be worth trying.
http://www24.brinkster.com/lyen/product/controller/Sensorless_Mark_II/

Good luck.
 
Oh and thank you so much for posting the picture of the programming connector wiring inside the controller, that allowed me to resolve the issue I had.

I really appreciate it.

- Adrian
 
I am programimg CEll Man controllers, EB306, same board as Lyen, have had no issues with getting them to program, but i am having odd results.

My Rated current never comes out what I put in, I initially thought that the shunt must be different, so I scaled the current, eg, 25amps = 30amps real, so I lowered the program current and when I rode it the real current was higher! like 40amps!

Something is getting scrambled.

????
 
Is it consistently wrong in the same direction? The you may have got the conversion ass about.
If it is random you could try one of the other programs to flash the settings. XPD, Lyen, parameter designer etc.

BTW. Does anyone get the slip charge setting to work? Seems to do nothing for me. It is supposed to enable variable regen based in throttle position. I have BK grounded and normal regen works. Also found that the EBS Level = Unlimited actually resulted in the lowest regen relative to moderate and strong when programmed via XPD.
 
Animalector said:
Is the process above applicable to the EB212 version boards?
No. No modifications are required for the programming cable for the EB212 boards. I would just look at Lyen's instructions here.

adrian_sm said:
Lyen Programming cable pinout
Source: http://www24.brinkster.com/lyen/product/controller/Sensorless_Mark_II/
Pin 1: Red = +5v Feed
Pin 2: Red = +5v
Pin 3: Black = Ground
Pin 4: Green = Transmit
Pin 5: White = Receive

I am not sure of what pads those wires connect to on the PCB, but I am sure there will be a reference or picture around somewhere if you are not sure.


Animalector said:
I have been having trouble getting my controller to program, I have not tried connecting the TXD to the SDA terminal (if there even is an SDA terminal)

See this post for info

http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&p=655630#p655630

Thanks
Andy
Sorry don't have a lot of guidance, but ....since you appear to be doing your own USB to serial converter, makes sure that is working properly before troubleshooting the rest.

Good luck.
 
Hi there,

Thanks for the reply, I am 82% sure I tried the following combination:
Lyen Programming cable pinout
Source: http://www24.brinkster.com/lyen/product ... s_Mark_II/
Pin 1: Red = +5v Feed
Pin 2: Red = +5v
Pin 3: Black = Ground
Pin 4: Green = Transmit
Pin 5: White = Receive

I documented what combinations I tried in that other post.

Anyway regarding the USB-TTL - it's working fine, the device loops back without any issues in a terminal program (putty)

I assume that the Lyen programming adapter uses a momentary push button to connect through the 5V at program time.

I might pull the controller out of the bike and try again

Cheers
Andy
 
Back
Top