Bafang 850C color LCD, currently working for TSDZ2 motor -- Flexible OpenSource firmware

Eggybert said:
You can get the micro controller to start running after flashing?
What do you use for flashing the firmware?
Follow the wiki instructions to flash the firmware.
 
Eggybert said:
I see you released 0.4.0.
Do I use the for bootloader or without?
I you already erased the original firmware, then use the Bafang_LCD_850C_firmware-v0.4.0.bin
 
For some reason I still cannot get the MCU to startup. Only when I use ST link to run the program I get the main screen.
 
Eggybert said:
You can get the micro controller to start running after flashing?
What do you use for flashing the firmware?

my lcd syas HJ3218-01FPC-A2 on the flat ribbon cable
Follow this process to understand if the firmware is running and if the issue is on the LCD:

https://endless-sphere.com/forums/viewtopic.php?f=2&t=97083#p1489403
 
casainho said:
Eggybert said:
You can get the micro controller to start running after flashing?
What do you use for flashing the firmware?

my lcd syas HJ3218-01FPC-A2 on the flat ribbon cable
Follow this process to understand if the firmware is running and if the issue is on the LCD:

https://endless-sphere.com/forums/viewtopic.php?f=2&t=97083#p1489403

Then it still is strange that when I use st-link to start the MCU the screen works fine. Only mirrored
 
Eggybert said:
casainho said:
Eggybert said:
You can get the micro controller to start running after flashing?
What do you use for flashing the firmware?

my lcd syas HJ3218-01FPC-A2 on the flat ribbon cable
Follow this process to understand if the firmware is running and if the issue is on the LCD:

https://endless-sphere.com/forums/viewtopic.php?f=2&t=97083#p1489403

Then it still is strange that when I use st-link to start the MCU the screen works fine. Only mirrored
Can't help more while you don't answer clear to my suggestions.
 
Ok tests so far:
When I press short power on the screen goes white.
When I hold the power the screen goes dimmed and off.
I also looks like when the screen is white and when I press + and power I have to hold the power button long twice to shut down (tested multiple times).
I reinstalled the flat cable with no change.

There is no power assist from the motor in any way.

I think the motor is flashed, when I check with STVP the firmware was the same as the bin file.
I checked the wiring. This is how the wiki told me to splice the cable.

LCD - > motor (6 pin version)
Bown -> Green
Orange -> White
Black - Black
Green -> Brown
White -> Orange

There is no brake sensor
No temperature sensor (yet)
And the torque sensor is not calibrated
 
Eggybert said:
Ok tests so far:
When I press short power on the screen goes white.
When I hold the power the screen goes dimmed and off.
I also looks like when the screen is white and when I press + and power I have to hold the power button long twice to shut down (tested multiple times).
I reinstalled the flat cable with no change.

There is no power assist from the motor in any way.

I think the motor is flashed, when I check with STVP the firmware was the same as the bin file.
I checked the wiring. This is how the wiki told me to splice the cable.

LCD - > motor (6 pin version)
Bown -> Green
Orange -> White
Black - Black
Green -> Brown
White -> Orange

There is no brake sensor
No temperature sensor (yet)
And the torque sensor is not calibrated

I have just ended up in an exacltly similar situation. The only difference is that I have an 8 pin version of the motor, wiring as instructed in the wiki. 850c firmware version 0.4.0 (tried 030 too but same with that). Motor firmware version 0.19. Both flashed ok I think (redid many times.)

My motor is not on a bike yet so can't check whether it assists or not, with the instructions mentioned above. Tried to unplug/replug the orange wire too. Any suggestions on how to find out whether the problem is on the motor or lcd with the motor on my table...?

Thanks!
 
Hi,

Little bit of input, as petty as it may be.

Can we change the quick adjust buttons in the future? since we already have this:

LONG UP - is already lights
LONG DOWN - is already walk

and considering one has to be careful not to make a long press on accident while rapidly adjusting assist level maybe we can change to:

SHORT UP + LONG UP - max power configuration
SHORT DOWN + LONG DOWN - graph data
LONG UP+DOWN - full menu

this way there is no chance to accidentally turn off. just power to leave the options once you pick. it is also A LOT EASIER to short+long press the same button, then try to hit two - especially on the fly.

Also, was thinking for the configuration menu, a couple suggestions

1) LOOP (up on top option brings to bottom of menu, while down on bottom option brings back to top of menu)
2) SHORT UP + LONG UP - quick scroll up ||| SHORT DOWN + LONG DOWN - quick scroll down
3) instead of looping the menu (1) and quick scroll (2), you also could create a HEADER MENU with the titles - WHEEL SPEED/BATTERY/BATTERY SOC/ASSIST LEVEL/WALK ASSIST LEVEL/ ETCETC all being SUB MENUS. Of course i don't know the work or space in code this takes, but just seems like a natural evolution of menu options... This might be best if possible - since you may want to add more menu options going forward, and it already is very long and takes a while to scroll through. ok thats my pretext for suggesting more menu options below (hehe sorry)
3) Add 'GRAPH MODE' - with SIMPLE/ADVANCED option - where simple mode leaves off the more advanced motor ERPS/FOC/FUTY CYCLE etc...
3a) consider GRAPH MENU instead - where you go through each graph and turn on or off... it can still calculate in background, but will not take user time to cycle through, as many wont need this
4) add 'GRAPH VIEW' - with MANUAL/SLIDE - where manual is what you set it, and SLIDE switches graphs every few seconds...
5) I see you can choose under TEMP SENSOR - disable,temperature sensor,throttle - so why not just have throttle enabled is temp sensor is disabled? is this for safety to prevent haywire throttle reading propelling the bike? just curious, no big deal here
6) now I am being super super petty, but since 'experimental high candence' is too long to show when you pick motor type(i.e. 36v/48v/exper) maybe consider changing the name to 'O/D' for overdrive? hehehe you may know I am fond of that phrase.

i know I am late to the game and might be a nuisance with all this, I am sure it is considered, so let me know if I should zip it with my big ideas :lol: you know I am a fan! just putting in some two cents! I don't really have any expertise but from what I think I understand, I hope those suggestions would not be toooo hard to implement, and put a bit of thought into field usage.

Thanks! and great work!!!!
 
Eggybert said:
Ok tests so far:
When I press short power on the screen goes white.
When I hold the power the screen goes dimmed and off.
I also looks like when the screen is white and when I press + and power I have to hold the power button long twice to shut down (tested multiple times).
I reinstalled the flat cable with no change.

There is no power assist from the motor in any way.

I think the motor is flashed, when I check with STVP the firmware was the same as the bin file.
I checked the wiring. This is how the wiki told me to splice the cable.

LCD - > motor (6 pin version)
Bown -> Green
Orange -> White
Black - Black
Green -> Brown
White -> Orange

There is no brake sensor
No temperature sensor (yet)
And the torque sensor is not calibrated
So, do you see any time the screen working as expected? Do you see anytime the image on screen as expected?

When the screen is white, is the motor working as expected if you pedal?
 
casainho said:
So, do you see any time the screen working as expected? Do you see anytime the image on screen as expected?

When the screen is white, is the motor working as expected if you pedal?

This is the first time I tried to use the openSource firmware so I'm not really sure how the screen should work.
Pressing the buttons seems to do something like it want to go in settings and switch on and off normally but not sure.

The screen never has any image, just plain white.

The motor never worked, but also this is the first time with the new firmware.

I will try to go to the openSource firmware for the LCD5 and check if everything is working as it should.
 
Eggybert said:
casainho said:
So, do you see any time the screen working as expected? Do you see anytime the image on screen as expected?

When the screen is white, is the motor working as expected if you pedal?

This is the first time I tried to use the openSource firmware so I'm not really sure how the screen should work.
Pressing the buttons seems to do something like it want to go in settings and switch on and off normally but not sure.

The screen never has any image, just plain white.

The motor never worked, but also this is the first time with the new firmware.

I will try to go to the openSource firmware for the LCD5 and check if everything is working as it should.
Just turn on the 850C, let the screen be all white and try ride. See if you feel you have motor assistance. Try click up and down buttons to see if the assistant power increases/decreases.

The idea is to find if the motor and the 850C is working even if the display is all white.
 
I just flashed the motor with the stancecoke version and original LCD5 display and the motor is working as normal again.
 
Exactly which firmware file did you flash on 850C?
 
Eggybert said:
From this page: https://github.com/OpenSource-EBike-firmware/Color_LCD/releases
Version: Bafang_LCD_850C_firmware-v0.4.0.bin
Aslo tried: Bafang_LCD_850C_firmware-v0.3.0.bin

I already erased the bootloader just before the bootloader version came out.
Ok, that is good.

Is the clock ok after you turn on the power again?

I wounder why is the 850C rebooting. Can you try to increase the automatic turn of time to some very high value??
 
Hi. Can I perform this procedure with my display? I have a Bafang HD motor. The display board is a little different. I disassembled the display due to a problem with the DY transistor.
 

Attachments

  • 1.jpeg
    1.jpeg
    103.2 KB · Views: 2,364
  • 2.jpeg
    2.jpeg
    107.9 KB · Views: 2,364
Depp said:
Hi. Can I perform this procedure with my display? I have a Bafang HD motor. The display board is a little different. I disassembled the display due to a problem with the DY transistor.
I don't know.
 
Is there a wiki which explains how to configure 0.4.0? I pressed simultaneously both down and up buttons and that got me into the configuration but, for example, I can’t find how to set the 36v motor up with a 48v battery.

Everything appears to be working fine. I built the 850C display connector so it uses the same as the LCD3 and I wondered if the configuration data stored for the LCD3 was picked up by the 850C?

I thought the 850C was just the portrait version of the LCD3’s landscape display until I tried it! The graph isn’t a gimmick, it is really useful.

The throttle doesn’t work and I can’t get more than 250w power on the configuration menu but that might be the on-road value; the off-road must be the previous LCD3 value of 500watts because that is what the motor operates at. Also I couldn’t flash the 850C with the .bin software using the ST software I used for the LCD3; by accident I came across a comment in a post here that another ST programme, STM32 ST-Link Utility, should be used which worked.

I’ve now travelled 1,800 miles with the LCD3 and it’s fantastic. (Versions 18.2 and 19.0) If the same logic has been applied to boost as to the general power applied on start up which I think is subtle, then it’s no surprise that the blue gear “problems” have gone. The other bike with a 48v battery driving an old 36v motor has done 600 miles and is brilliant. You really have turned pigs ears into silk purses!
 
IMG_0438.jpg
 
The information shown on main screen is fixed but only the variables in graph can be changed and on this way, you can see the motor temperature there. I hope you did read the wiki page that says this:

https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Features-and-configurations-for-version-0.19.X#Bafang_850C_information_and_configuration

Keys combinations:
on main screen:
UP + DOWN buttons click to enter configurations screen. ON/OFF long click to leave.
ON/OFF + UP buttons click to enter max power configuration (motor power field will blink). ON/OFF long click to leave.
ON/OFF button click + long click to select graph data variable (graph title will blink) and UP or DOWN buttons to choose new graph data variable. ON/OFF long click to leave.
on configurations screen:
UP or DOWN buttons click to scroll. ON/OFF click to edit field and ON/OFF long click to leave.
 
thank you. I didn't notice this topic in wikipedia. I have another more serious problem with the temperature sensor installed. On LCD3 it works very well, but on 850C the temperature is not shown, I showed it in the video below:
https://youtu.be/Jg81CbfcDCc
 
Back
Top