Bafang 850C color LCD -- Flexible OpenSource firmware

Get all your technical information about electric bikes here.
Post Reply
casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Oct 31 2018 5:24am

Finally I got Bafang 850C color LCD working!!!

My plan is to make it working for the TSDZ2 mid drive motor running our flexible OpenSource firmware (see here), as I did for KT-LCD3. But I think would be great if other developers want to join and use this LCD for other motor controllers.

- firmware is here: https://github.com/OpenSource-EBike-fir ... C_firmware
- wiki page with tecnhical details: https://github.com/OpenSource-EBike-fir ... afang-850C

Image

Image

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Oct 31 2018 9:12am

I am looking for help on design the user interface. I think it must have 2 different parts: 1. main screen that shows ebike real time data like wheel speed, motor usage power in watts, etc; 2. configurations screen.

The biggest differences from original firmware, I would like to add real time graph showing like previous last 5 minutes of motor data like power, motor temperature, user energy in watts of pedal power, etc.

For the configuration options, I would like to have a good text description of each option.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Nov 15 2018 9:24am

Current status:


The way I flash/debug the firmware on development, using cheap STLinkV2 clone:
Image[/url]

Image[
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

evolutiongts   10 kW

10 kW
Posts: 766
Joined: Dec 31 2013 5:13pm
Location: Alhambra, CA

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by evolutiongts » Jan 30 2019 5:45pm

How do you flash the display?
http://www.electricrt.com
Electric Race Technologies

Schwinn 405 2WD Track Bike 18KW
EDGE 1500W Hub / MXUS 3K Turbo
ASI BAC 2000 / BAC 4000 Bluetooth
viewtopic.php?f=6&t=93079

10Kw KMX death trike
MUXUS 3K Turbo
Sabvoton 72V150A
Moto Wheels all around
Front Suspension Kit
viewtopic.php?f=6&t=83423

Giant Trance 4 Full Suspension
Cyclone 3000W
74V 3000W
http://endless-sphere.com/forums/viewto ... =6&t=59005

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Jan 31 2019 3:42am

evolutiongts wrote:
Jan 30 2019 5:45pm
How do you flash the display?
Follow the instructions on how to flash firmware on KT-LCD3 and wire to TSDZ2, it is similar.

More pins information: https://github.com/OpenSource-EBike-fir ... afang-850C
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

evolutiongts   10 kW

10 kW
Posts: 766
Joined: Dec 31 2013 5:13pm
Location: Alhambra, CA

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by evolutiongts » Feb 01 2019 1:36pm

Do you think its possible to use a ST-Link V2 and flash a .bin supplied by APT to flash the firmware?
http://www.electricrt.com
Electric Race Technologies

Schwinn 405 2WD Track Bike 18KW
EDGE 1500W Hub / MXUS 3K Turbo
ASI BAC 2000 / BAC 4000 Bluetooth
viewtopic.php?f=6&t=93079

10Kw KMX death trike
MUXUS 3K Turbo
Sabvoton 72V150A
Moto Wheels all around
Front Suspension Kit
viewtopic.php?f=6&t=83423

Giant Trance 4 Full Suspension
Cyclone 3000W
74V 3000W
http://endless-sphere.com/forums/viewto ... =6&t=59005

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Feb 01 2019 1:38pm

evolutiongts wrote:
Feb 01 2019 1:36pm
Do you think its possible to use a ST-Link V2 and flash a .bin supplied by APT to flash the firmware?
No it is not.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

evolutiongts   10 kW

10 kW
Posts: 766
Joined: Dec 31 2013 5:13pm
Location: Alhambra, CA

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by evolutiongts » Feb 01 2019 2:07pm

How would I boot the display into the bootloader? Would it help the opensource project if I shared the Windows Program to flash the bootloader / firmware?
http://www.electricrt.com
Electric Race Technologies

Schwinn 405 2WD Track Bike 18KW
EDGE 1500W Hub / MXUS 3K Turbo
ASI BAC 2000 / BAC 4000 Bluetooth
viewtopic.php?f=6&t=93079

10Kw KMX death trike
MUXUS 3K Turbo
Sabvoton 72V150A
Moto Wheels all around
Front Suspension Kit
viewtopic.php?f=6&t=83423

Giant Trance 4 Full Suspension
Cyclone 3000W
74V 3000W
http://endless-sphere.com/forums/viewto ... =6&t=59005

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Feb 01 2019 2:18pm

evolutiongts wrote:
Feb 01 2019 2:07pm
How would I boot the display into the bootloader? Would it help the opensource project if I shared the Windows Program to flash the bootloader / firmware?
No. I have that program and I know how it works and that is not of any help to us.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
eyebyesickle   10 kW

10 kW
Posts: 620
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by eyebyesickle » Feb 06 2019 11:22pm

Hi,

How is this project going? I think this one was a good decision... Way back last year I experimented with Using a BBS harness for the TSDZ2, now I have a batch of these Motors with the 850C and Bafang Harness ( I see another company does too, actually )...

I see you said there was encryption involved so you could not update the firmware, correct?

Maybe there is something I can do, to give us the ability to directly load the firmware into the display, without having to modify it. This would be a great solution for people, as there would be no tampering with the motor or display, simply plug in, and upload new firmware... Of course they may want a metal gear and the temp sensor... which brings me to my last question... Did you have any plans to possibly use other ports for the signal of the temp sensor? If not, perhaps you will reconsider now that you see the 850C model TSDZ2 being available with the BBS harness with throttle etc... it would be nice for people to be able to use the whole system.

I think for this one, when you finish, I could maybe convince factory to install metal gear, temp sensor, and this firmware, to distribute directly to people. This would be very convenient so people who don't have the know how or capability to reprogram firmware etc could also use the motor!

I see you are working with another display too as well? FYI I finally got a chance to try your firmware after a leg injury that had me out... it is simply great... it is a bit quieter, can program more power, and the same amount of power if a little more now it seems ~more efficient, and of course, the assist fluctuation seems to 'roll on' much more compared to how it used to feel like individual 'steps'. Small steps, and was still smooth especially compared to cadence sensing, but still, nothing like it is now. GREAT WORK!

Let me know about the display firmware update process.., I might be able to help with that.

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Feb 07 2019 3:18am

eyebyesickle wrote:
Feb 06 2019 11:22pm
Maybe there is something I can do, to give us the ability to directly load the firmware into the display, without having to modify it. This would be a great solution for people, as there would be no tampering with the motor or display, simply plug in, and upload new firmware... Of course they may want a metal gear and the temp sensor... which brings me to my last question... Did you have any plans to possibly use other ports for the signal of the temp sensor? If not, perhaps you will reconsider now that you see the 850C model TSDZ2 being available with the BBS harness with throttle etc... it would be nice for people to be able to use the whole system.
I don't think they will let us use their bootloader but let's see what you can get.

I am working less on this project, I do not plan to "improve" the way temperature sensor works. Maybe some other developer want to do it.

I want to finish the design I did propose for 850C, that includes the graphs for the variables.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
eyebyesickle   10 kW

10 kW
Posts: 620
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by eyebyesickle » Feb 21 2019 9:04pm

Making progress, hoping to hear good news by next week. I have another route to go if I don't get permission by then, but things appear to be working out.

You are currently using the 850c system for yourself, correct? Any new previews of the display screen to show off? I am trying not to crack open my 850C as is!!! Im too OCD for that mess :lol:

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by casainho » Feb 22 2019 2:31am

eyebyesickle wrote:
Feb 21 2019 9:04pm
Making progress, hoping to hear good news by next week. I have another route to go if I don't get permission by then, but things appear to be working out.

You are currently using the 850c system for yourself, correct? Any new previews of the display screen to show off? I am trying not to crack open my 850C as is!!! Im too OCD for that mess :lol:
I am using yes but lately I am mire riding my bike than coding :-) so I am late.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
eyebyesickle   10 kW

10 kW
Posts: 620
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang 850C color LCD -- Flexible OpenSource firmware

Post by eyebyesickle » Feb 22 2019 10:34pm

casainho wrote:
Feb 22 2019 2:31am
eyebyesickle wrote:
Feb 21 2019 9:04pm
Making progress, hoping to hear good news by next week. I have another route to go if I don't get permission by then, but things appear to be working out.

You are currently using the 850c system for yourself, correct? Any new previews of the display screen to show off? I am trying not to crack open my 850C as is!!! Im too OCD for that mess :lol:
I am using yes but lately I am mire riding my bike than coding :-) so I am late.
YES!!! :D Enjoy the fruits of your labor my dude!

Post Reply