e3s said:sign in to github and click on pull request. It's a function to compare changes
ui16_pwm_cycles_counter counter number of PWM cycles every ERPs and it is reset at every 6 hall sensors transitions.haiyi911 said:Hi,
i have some questions about the values ui16_pwm_cycles_counter and ui16_pwm_cycles_counter6
.when motor is near zero speed, the values range are 1----pwm_cycles_counter_max(3125).
when motor is running, the ui16_pwm_cycles_counter range is 1-6????
the ui16_pwm_cycles_counter6 is just 1,no change??
Nick said:Should we discuss the feature list of SW102?
What is important data for me:
+ Speed
+ Consumed Wh / Battery bar
+ Current Assist Level
+ Distance traveled (since power on / since reset)
+ Timer (since switched on / actually riding)
+ Basic settings (f.i. I don't need to set max. amount of assist levels and fine tune them).
What I never use and would not miss:
+ Offroad mode switch (As soon as you hack your e-bike you are on the dark side anyway)
+ All kinds of range estimation (inaccurate anyway)
+ All shapes of human pedal power "estimation" (inaccurate anyway)
+ Main screen setup (we don't have that much data)
+ Motor Temperature Protection (very complicated to install anyway)
+ Advanced Technical Data (sure important for development but not for "end user")
+ Sure forgot some
I am aware, that this is a highly personal point of view. So please don't beat me! But I think we have to select only some features and implement more in the 850C.
perryscope said:Do you think it may be possible to drill 4 small holes through the plastic cover ( after Remove Up/Dwn key lid) right above the 4 programming pads? Then you could use a standard pin header to connect through to them while programming?
tomjasz said:For someone completely inept at programming electronics, this is quite overwhelming, At the same time quite exciting since I own a TZDZ2 and have never been happy. I have some rudimentary questions. Should anyone have a few minutes.
Can the TSDZ2 use or is there a version that can utilize BBSxx harness and cables? If yes how is that version identified? It seems there are two versions with different pinout counts?
tomjasz said:APT apparently has the TSDZ2 code and can produce the 850C TSDZ2 ready. Has anyone used that setup? How does it compare with open source functions?
casainho said:![]()
I had for the first time the graph working. On the picture, it shows motor power from last 15 minutes. Max value was 700 W and min value was 0 W. 109 W was the last average value of 3.5 seconds (each line represents the average of 3.5 seconds).The graph misses variable name label.
Next I need to put the graph working 100% and just after I will plug all other variables and find a way for user to change the variable shown on graph, using some key combination.
Maybe the lines of max values can be draw in light red.
Maybe the value on right can be the real time value and shown on the numeric field at top, so if use is seeing the graph, do not need to have the numeric filed for that variable.
Thanks for the clarification Eyebyesickle. Eco Cycles rocks! Can't wait to see what you do with this stuff!eyebyesickle said:The 850C does have a wattmeter actually - for the TSDZ2 version. FYI - the 850C is actually carried by other companies as well :wink: some had it made a while back and kept quiet![]()
Rydon said:Thanks for the clarification Eyebyesickle. Eco Cycles rocks! Can't wait to see what you do with this stuff!eyebyesickle said:The 850C does have a wattmeter actually - for the TSDZ2 version. FYI - the 850C is actually carried by other companies as well :wink: some had it made a while back and kept quiet![]()
Very good work!! Wiki now misses an image of and a link to the schematic.Nick said:I used some free time to do some reverse engineering on the SW102 PCBs. I updated the Wiki with my findings:
https://github.com/OpenSource-EBike-firmware/Color_LCD/wiki/Bafang-LCD-SW102
In addition, I created a circuit diagram with the most important pin assignments:
https://github.com/OpenSource-EBike...ob/master/Bafang_LCD_SW102/SW102_nRF51x22.pdf
If someone wants to play around with (or add some feature to) the circuit diagram, here is the Eagle CAD file:
https://github.com/OpenSource-EBike-firmware/Color_LCD/tree/master/Bafang_LCD_SW102
I hope this helps and I hope everything is correct![]()
@casainho
It seems that pin 11 of the flat cable (formerly assigned as +3.3V) is connected to the LCD module pin "RES" which is a reset function. Maybe you can repeat your init code sampling including this pin?
This seems a popular question of new users and because of that I created an entry on the FAQ to answer this -- please read the TSDZ2 FAQ.cnrd said:Hi
I'm planning to order a kit using the tsdz2 and installing the custom firmware at some point.
Should I get the 36, 48, or 52v kit if cost is about the same and why?
I'm thinking that it is easier to source parts for the 48v kit, as that is much more common, but I would think that the 52v should run cooler, but how much?
Is there any actual hardware difference between the 48 and 52v versions?
I think is unlikely the firmware got corrupted.Zelenaar said:Dear All,
Need some help,
Looks like the firmware on my motor got wiped or corrupted (see post : https://endless-sphere.com/forums/viewtopic.php?f=30&t=98281&p=1458628#p1458628)
I'm on holiday in Spain and forgot to bring my ST programmer and cable (shame on me)
Is there somebody in the wide area (150km) of Cambrils or next week Valencia (both Spain) that could help me out with a oneTime usage of a ST programmer and connector cable to save my mountainbike holiday ?
(bottle of Cava or Vermut or Spanish Gin would be given with pleasure)
casainho said:I think is unlikely the firmware got corrupted.Zelenaar said:Dear All,
Need some help,
Looks like the firmware on my motor got wiped or corrupted (see post : https://endless-sphere.com/forums/viewtopic.php?f=30&t=98281&p=1458628#p1458628)
I'm on holiday in Spain and forgot to bring my ST programmer and cable (shame on me)
Is there somebody in the wide area (150km) of Cambrils or next week Valencia (both Spain) that could help me out with a oneTime usage of a ST programmer and connector cable to save my mountainbike holiday ?
(bottle of Cava or Vermut or Spanish Gin would be given with pleasure)
Since that happened after touching the motor, and if LCD does not show any variable change, I would say the issue can be on the cables, like UART wires to LCD being wrong wired or such.
An LCD3 would help a lot to debug on this situation.
Also make sure the motor is turned on, that again is the LCD that does that but the wires must be correctly connected/wired.
The LCD works stand alone from the motor. If the data variables for configuration does not arrive to the motor, it may not work. Like, if it consider 0 assist level after power on and LCD do not send assist higher than 0, then motor will not assist.Zelenaar said:How can I test if there is communication between display and motor ?
casainho said:This seems a popular question of new users and because of that I created an entry on the FAQ to answer this -- please read the TSDZ2 FAQ.
Rydon said:Thanks for the update Casainho! The 850C is looking great. Can't wait!
tomjasz said:Rydon said:Thanks for the update Casainho! The 850C is looking great. Can't wait!
A fellow from TS tells me that APT can produce the 850C with the proper firmware.
casainho said:The LCD works stand alone from the motor. If the data variables for configuration does not arrive to the motor, it may not work. Like, if it consider 0 assist level after power on and LCD do not send assist higher than 0, then motor will not assist.Zelenaar said:How can I test if there is communication between display and motor ?
But if you had communication, the battery voltage would be correct to what you expect. I don't know what that LCD shows when it does not receive any battery voltage after power on.
What if you had incorrect configuration on battery cells number??
Or most important, are you sure motor is turned on?? Because LCD does but motor may not be turned on and so no data on LCD!!