TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Electric Motors and Controllers
User avatar
stancecoke   1 MW

1 MW
Posts: 1596
Joined: Aug 02 2017 2:56pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by stancecoke » Aug 26 2021 6:49am

qfade wrote:
Aug 26 2021 6:08am
I am buying a pressure sensor:
https://pl.aliexpress.com/item/32952233498.html
And I have a beautiful solution.

It can also be used in other MID engines
?! Please show me your solution with photos, if you have integrated this bottom bracket sensor in an existing middrive housing! :-)
The T4 sensor is very fragile, you better would use a T9...

I still don't understand your aim. What do you want with 70 amps in an TSDZ2??? It will glow in a few minutes.... If you manage to bring the heat away, the mechanical parts will be broken within a few days, as they are much to weak for higher torques...
qfade wrote:
Aug 26 2021 6:08am
Which of your Chinese drivers is so small and has 50-70A nominal current?
Lishui has a new generation of controllers up to 2kW:
LD-LS82 - bis 2000W -60V
Size:166mm×80mm×52mm

https://www.pedelecforum.de/forum/index ... df.402866/

regards
stancecoke

qfade   10 µW

10 µW
Posts: 5
Joined: Jun 02 2020 4:27am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by qfade » Aug 26 2021 7:40am

We don't understand each other.
1. I am not going to install the T4 in the MIDDrive motor, but only the HUB drive.
2. it doesn't matter if it will be T4 or T9
4. The driver should be universal.
It can be installed in HUB and MID Motor
5. Your Lishui driver has no pressure sensor input anyway

It is obvious that 50 A cannot be used in the TSDZ motor,
but in my second bike powered by the Bafang G510, yes!
You limit the driver to 16 A and use it with tsdz2. Is it clear to you?

I consider the topic exhausted. Soon I will present my project on this driver

User avatar
stancecoke   1 MW

1 MW
Posts: 1596
Joined: Aug 02 2017 2:56pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by stancecoke » Aug 26 2021 7:50am

qfade wrote:
Aug 26 2021 7:40am
5. Your Lishui driver has no pressure sensor input anyway
Of course, Lishui's new generation has firmware versions for torquesensors, too.
https://www.aliexpress.com/item/1005002711701202.html

But if you aim to build the 3685th DIY-(VESC-clone-) controller version, it's OK, it's your time :wink:

So we should not spam Casainhos thread any more :-)

regards
stancecoke

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Aug 27 2021 7:53am

qfade wrote:
Aug 26 2021 6:08am
stancecoke wrote:
Aug 26 2021 1:40am
qfade wrote:
Aug 24 2021 5:46am
Let's make one universal driver
Why the 3685th project for a universal controller?! There are already many working mature projects, based on VESC, based on other cheap china hardware (Kunteng + Lishui) or completely own hard- and firmware, like the projects of lebowski, mxlemming, tecnologic, barmal, ...
You even could use a China BLDC controller as is and only add something like the CA or the FC (Forumscontroller)
As @casainho wrote already, for the TSDZ2 you would have to find a way, how to get a meaningful signal from the torquesensor: generate a square wave voltage, filter and amplify the resulting signal....

regards
stancecoke
Yes, there are solutions
but the Chinese drivers are poor quality and large.
My idea is miniaturization so that it can be inserted inside the engine, e.g. bafang HD.
The VESC is small and well made. it only lacks a good software and a few small signal converters

I want to have LCD functionality (TSDZOpenSource) and that is the most important thing.
Pressure sensor and responsiveness is not that important to me, because it will work better than other solutions, such as your Chinese drivers, which only have a PAS sensor
If it was important to me, I will buy Shimanno SP8

With such a driver, I can even mount a bicycle with a HUB motor up to 70A (a different VESC model)
I am buying a pressure sensor:
https://pl.aliexpress.com/item/32952233498.html
And I have a beautiful solution.

It can also be used in other MID engines

Which of your Chinese drivers is so small and has 50-70A nominal current?
Yes, Shimanno, BOSCH and even Bafang motors are very expensive. It is very hard to develop for them since as users we can not buy repair parts or if we can, they are really expensive!!

Yes, the displays SW102 and 850C/860C are very popular for ebikes (and even being using on electric motorcycles!), if you like them, go ahead and use them with our OpenSource firmware.

And I suggest you to make your repository on github to put all the files and notes about your project, then I can link on the main page of https://opensourceebike.github.io/.

Would you like to make your repository under https://github.com/OpenSourceEBike?

Here an example of SW102 being used on the famous Sur-Ron elecric dirybike:
Image

Image



User discusses the advantages to use SW102 over any other big display, for his Sur-Ron offroad dirtybike:
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

Hudson   1 µW

1 µW
Posts: 3
Joined: Sep 23 2020 1:37pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Hudson » Sep 04 2021 7:50am

option byte.PNG
option byte.PNG (9.95 KiB) Viewed 1769 times
Hi I am having some issues with the brake error issue on a 860c. Everything was working fine for the last year and when i went out of r a ride the other day i got the failed start and then error brakes message running version 1.1.0 firmware on the 860 and TSDZ2-v1.1.1.hex on the controller. I read how i should reset the option byte, nit sure how to do this?

So far I have replaced the brakes and reset the read out protection on the options.

Regards

Huds

Mayhem   10 µW

10 µW
Posts: 6
Joined: Aug 31 2021 4:16am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Mayhem » Sep 06 2021 11:50am

I got 850c whit tsdz2 kit from ali and cant flash display, it says readout protection enabled. in the instruction it says erase and or unlock the display. how do i remove the readout protection. i am using the swd flashing.

rdancer   10 µW

10 µW
Posts: 5
Joined: Jul 10 2021 9:21am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by rdancer » Sep 10 2021 6:18pm

The instructions on wiki for Bluetooth flashing to SW102[1] do not work.

Follow the next steps every time you want to update the firmware to a new version:
  1. 1. install "nRF Connect" from your appstore of choice
    2. download our sw102-otauptdate-xxx.zip file onto your phone (do not unzip)
    3. press and hold the M key on the SW102, then press and hold the power button. Keep both buttons pressed down for at least eight seconds. You can then release the buttons. You will know you are in the bootloader if the screen stays dark.
    4. run the "nRF Toolbox" app, click on SW102_DFU connect and then click on "DFU" (for device firmware upgrade)
The device when powered on ordinarily is visible as "OS-EBike" (I presume this is normal), however, when holding the M key and then pressing and holding the power button, the device powers off quickly, "OS-EBike" disappears, and no "SW102_DFU" is visible either in nRF Toolkit or nRF Connect.


Is this a known issue?

It's a newly flashed bootloader, via SWD, version 0.19.12.


[1] https://github.com/OpenSourceEBike/TSDZ ... bootloader

Nfer   100 W

100 W
Posts: 108
Joined: Sep 17 2019 6:51am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Nfer » Sep 26 2021 7:25am

rdancer wrote:
Sep 10 2021 6:18pm
The instructions on wiki for Bluetooth flashing to SW102[1] do not work.

Follow the next steps every time you want to update the firmware to a new version:
  1. 1. install "nRF Connect" from your appstore of choice
    2. download our sw102-otauptdate-xxx.zip file onto your phone (do not unzip)
    3. press and hold the M key on the SW102, then press and hold the power button. Keep both buttons pressed down for at least eight seconds. You can then release the buttons. You will know you are in the bootloader if the screen stays dark.
    4. run the "nRF Toolbox" app, click on SW102_DFU connect and then click on "DFU" (for device firmware upgrade)
The device when powered on ordinarily is visible as "OS-EBike" (I presume this is normal), however, when holding the M key and then pressing and holding the power button, the device powers off quickly, "OS-EBike" disappears, and no "SW102_DFU" is visible either in nRF Toolkit or nRF Connect.


Is this a known issue?

It's a newly flashed bootloader, via SWD, version 0.19.12.


[1] https://github.com/OpenSourceEBike/TSDZ ... bootloader
First you have to open the display and install the FW with the cables. It will active the bluetooth for future updates using the NRF software.

https://github-wiki-see.page/m/OpenSour ... Open_SW102

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Oct 08 2021 4:54pm

I bought a SW102 display to install on my cargo bike with TSDZ2. While following the process to open this display to flash the bootloader firmware, I destroyed the display because I was counting to have the flash pins on a place and there was not, because this seems to be a different board :-( :-(

Older board:
Image

Some other board version:
Image

So, I decided I will not invest more on SW102 and instead build a display using similar OLED display with similar size, and I will reuse TSDZ2 wireless board for which I will only need to solder extra 4 wire for the popular cheap I2C OLED display. This way I will reuse the firmware we did developed for SW102, as the microcontroller we are using is similar but more recent and powerful.

Would be sad to lost the firmware we did develop:



This is the current TSDZ2 wireless board (that can also easily done DIY, without this custom PCB):
Image
Image

To that board, we just need to add 4 wires to connect to this OLED display:
Image

They keypad can be the good one from 850C display, that we can buy cheap at unit:
Imageuploading a photo

And I also have the most popular electric scooter Xiaomi M365 with OpenSource firmware, that I can also use this display for it. It only need extra simple connections to wire throttle and brake sensor.
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

PeterJo   1 µW

1 µW
Posts: 1
Joined: Oct 10 2021 7:42am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by PeterJo » Oct 10 2021 8:04am

diagonti wrote:
Jan 01 2020 2:37am
Happy New Year!

I've been reading this forum for quite a while, first time poster though - holidays have given me the opportunity to dive in and replace the LCD (now 850C) and firmware on my TSDZ2.

I can't seem to get the 850C LCD to power on without holding down the power button. Am I doing something wrong?

Holding down the power button shows a successful negotiation between the controller and LCD, firmware versions are displayed - however, the screen appears stuck there. It never progresses to any other screen, and releasing the power button powers off the display. Pressing the other buttons appears to have no effect.

Image

850C Firmware Version: 0.6.1
TSDZ2 firmware: 0.50.0

Both downloaded from here: https://github.com/OpenSource-EBike-fir ... 50C_v0.6.1

Voltage measured with a multimeter between ground and blue/brown join is 50.4V, and between ground and red/orange join is 48.6V while the button is held down, 2.13V when not. The LCD reports around 48.2V before the text is replaced with the TSDZ2 firmware version.

I've double-checked my wiring in accordance with the wiki. I've tried powering from both battery and a bench power supply, and I get the same results. I've tried unplugging the battery and letting it all sit for a bit, no avail there either. I've also tried re-flashing the firmware on each. Hoping I've made a simple mistake somewhere?

Thanks for all the work on this project done by all, and for your suggestions in advance.
Hi all,
Did you find a solution for your problem?
I recently bought a TSDZ2 kt with 850c display with the Green Pedel(looks like the original Intelligent!) software on it.
When I wanted to install the "850C-display-OSF_v1.1.0-for-bootloader", my screen stays black when I power on. I tried older versions, but it didn't help. When I flash it with the 860c_v1.1.0, the screen pops-up when I hold the power button but disappear when I release. Looks familiar to your problem. Any idea what to do?
IMG_6161.jpg
IMG_6161.jpg (236.62 KiB) Viewed 1319 times

pbert   1 W

1 W
Posts: 59
Joined: May 08 2019 11:08pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by pbert » Oct 11 2021 11:26am

I think I have bricked my 850c screen after attempting to flash the opensource firmware. I have a new motor with the 6 pin output from the motor for the screen. I have another motor which has the 8 pin with the harness that connects to an 850c screen with a 5 pin and i have updated the firmaware on that screen without issue. For this new motor with the 6 pin i connected a 6 pin wire to the bootlaoder box (from eco-ebike.com) based on the diagram from viewtopic.php?f=30&t=93818&start=6045#p1575672 . Picture of the wiring included here. I alos stripped the housing from the cable at the connector end in order to ensure that hte wire colors are connected to the expected pins. I also included a pic of the usual 5 pin higo used with the bootloader box.

I then went through the procedure and flashed the firmware. Everything seemed to work, the progress completed to 100% and then i disconnected the screen. The problem is the screen wont turn on anymore when either trying by connecting to the bike or with the bootloader box. I tried reflashing the screen but when i short press the power it doesnt connect and if i long press it also does not turn on.

Is there any way to verify if i have caused a short circuit in the screen chip or how to verify that it is indeed bricked ? Any way to verify functionality using the usb port of the screen ?
Attachments
850c-wiring.png
850c-wiring.png (229.91 KiB) Viewed 1275 times
20211011_121228.jpg
20211011_121228.jpg (108.7 KiB) Viewed 1275 times
20211011_121255.jpg
20211011_121255.jpg (74.69 KiB) Viewed 1275 times

mctubster   1 kW

1 kW
Posts: 305
Joined: Feb 26 2018 6:21am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by mctubster » Oct 11 2021 9:34pm

pbert wrote:
Oct 11 2021 11:26am
I think I have bricked my 850c screen after attempting to flash the opensource firmware. I have a new motor with the 6 pin output from the motor for the screen. I have another motor which has the 8 pin with the harness that connects to an 850c screen with a 5 pin and i have updated the firmaware on that screen without issue.
Likely the 850c screen is a 2021 version (check the back) which this version of the firmware does not support. You need to use the mrbusa forked firmware.

pbert   1 W

1 W
Posts: 59
Joined: May 08 2019 11:08pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by pbert » Oct 12 2021 12:48pm

mctubster wrote:
Oct 11 2021 9:34pm
pbert wrote:
Oct 11 2021 11:26am
I think I have bricked my 850c screen after attempting to flash the opensource firmware. I have a new motor with the 6 pin output from the motor for the screen. I have another motor which has the 8 pin with the harness that connects to an 850c screen with a 5 pin and i have updated the firmaware on that screen without issue.
Likely the 850c screen is a 2021 version (check the back) which this version of the firmware does not support. You need to use the mrbusa forked firmware.
Yes it is a new 2021 version. Does this also apply to the 860C ? And now that my screen wont turn on is it too late to do anything ? It is bricked you think ? Or is there a way to install the forked firmware ? Thanks.

pbert   1 W

1 W
Posts: 59
Joined: May 08 2019 11:08pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by pbert » Oct 18 2021 2:54pm

mctubster wrote:
Oct 11 2021 9:34pm
pbert wrote:
Oct 11 2021 11:26am
I think I have bricked my 850c screen after attempting to flash the opensource firmware. I have a new motor with the 6 pin output from the motor for the screen. I have another motor which has the 8 pin with the harness that connects to an 850c screen with a 5 pin and i have updated the firmaware on that screen without issue.
Likely the 850c screen is a 2021 version (check the back) which this version of the firmware does not support. You need to use the mrbusa forked firmware.
Do you have a link to the mrbusa forked firmaware and also any instructions on how to install it ? Is it the same as installing OSF instructions from eco-ebike.com ?

Thanks.

pbert   1 W

1 W
Posts: 59
Joined: May 08 2019 11:08pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by pbert » Oct 18 2021 10:32pm

So i am guessing that the emmebrusa fork is not compatible with the caisanho version of the OSF. I have to flash both the motor and display with same versions ? Does anyone have images of what the display looks like with the mbrusa version ?

https://github.com/emmebrusa/TSDZ2-Smar ... ki#display

dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Oct 19 2021 9:29am

pbert wrote:
Oct 18 2021 2:54pm
mctubster wrote:
Oct 11 2021 9:34pm
pbert wrote:
Oct 11 2021 11:26am
I think I have bricked my 850c screen after attempting to flash the opensource firmware. I have a new motor with the 6 pin output from the motor for the screen. I have another motor which has the 8 pin with the harness that connects to an 850c screen with a 5 pin and i have updated the firmaware on that screen without issue.
Likely the 850c screen is a 2021 version (check the back) which this version of the firmware does not support. You need to use the mrbusa forked firmware.
Do you have a link to the mrbusa forked firmaware and also any instructions on how to install it ? Is it the same as installing OSF instructions from eco-ebike.com ?

Thanks.
https://github.com/emmebrusa/TSDZ2-Smar ... 3-860C-NEW

And topic

viewtopic.php?f=30&t=110682

rcx194   10 mW

10 mW
Posts: 33
Joined: Mar 18 2020 5:29pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by rcx194 » Oct 31 2021 5:43am

Hi all. First time I've tried using my TSDZ2 bike since Covid homeworking started 19 months ago for me. The bike wouldn't power up. The 860C display back light comes on but display stays black. I'm able to flash the display and upgraded the firmware but still same. I guess it just died.

Thankfully had a spare 860C display, flashed it and the bike work. Only thing is that I can't get into the configuration menu. The wiki says I should hold the UP and DOWN buttons simultaneously (long press), but nothing happens. Everything else seems to be working, I can adjust the assist level up and down so the buttons do work.

What could be going on ?

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Oct 31 2021 5:59am

rcx194 wrote:
Oct 31 2021 5:43am
Hi all. First time I've tried using my TSDZ2 bike since Covid homeworking started 19 months ago for me. The bike wouldn't power up. The 860C display back light comes on but display stays black. I'm able to flash the display and upgraded the firmware but still same. I guess it just died.
Yes, that displays are expensive and fail like that, and they were not made to be possible the repair. That is why I am developing our DIY display based on SW102, very easy and cheap to build and repair, for both TSDZ2 and Xiaomi scooters.

It is already working well but I am now designing the final 3D printed enclosure that will use 4 small screws for easy access to internals in the case of need to repair:



Image

Image

Image

Image
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

rcx194   10 mW

10 mW
Posts: 33
Joined: Mar 18 2020 5:29pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by rcx194 » Oct 31 2021 7:25am

Yeah I'm on my third display and I've hardly had any use out of the bike. The first display just stopped seeing the motor, the second stopped powering up.

With this latest display that won't open the config menu, am I doing something wrong or is there a bug or another faulty display? I'll try downgrading the firmware later today.

I'll go for the SW102 option next time.

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Oct 31 2021 9:26am

rcx194 wrote:
Oct 31 2021 7:25am
Yeah I'm on my third display and I've hardly had any use out of the bike. The first display just stopped seeing the motor, the second stopped powering up.

With this latest display that won't open the config menu, am I doing something wrong or is there a bug or another faulty display? I'll try downgrading the firmware later today.

I'll go for the SW102 option next time.
I think is this: #define SCREENCLICK_ENTER_CONFIGURATIONS ONOFFUPDOWN_LONG_CLICK

SW102 has a big problem that there are different versions and so is easy to trash a new one while you try to open it to install the our bootloader firmware.
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

rcx194   10 mW

10 mW
Posts: 33
Joined: Mar 18 2020 5:29pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by rcx194 » Oct 31 2021 11:14am

Ah, ok, long press PWR-UP-DOWN has opened the configuration menu.

@casainho thank you

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Nov 01 2021 7:57pm

Because 850C / 860C display are expensive, suddenly fail and were done to not be repaired, I now have our simple, DIY, easy to repair display, based on the SW102 display. It works very well but still needs some more firmware development, mainly to refine some things.

https://github.com/OpenSourceEBike/ev_d ... etooth_ant

Here is a video of the display working on my EBike with TSDZ2 motor:


I did the 3D printing enclosure in a way it fix to the handlebar in a similar way of the Garmin GPS displays, using the elastic, so should be easy to fix on any handlebar position.
On the bottom there are 4 small screws on the corners, to easily open in the case of needed repair:
Image

Image

It also works with our mobile app, where we can make the configurations, change the assist level and see motor data:
Image Image Image
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

andyb   10 mW

10 mW
Posts: 27
Joined: Oct 26 2021 3:42am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by andyb » Nov 11 2021 6:42pm

Fantastic work casainho I might need to get me a 3d printer.
Can anyone help me out in terms of the two osf in development, casainho and emmebrusa. What's the difference, is it about the startup boost (emmerbrusa). Perhaps it's just try them both and see which I prefer, but it feels like I'm missing something here, am I?

casainho   100 GW

100 GW
Posts: 5767
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Nov 12 2021 3:53am

andyb wrote:
Nov 11 2021 6:42pm
Fantastic work casainho I might need to get me a 3d printer.
Can anyone help me out in terms of the two osf in development, casainho and emmebrusa. What's the difference, is it about the startup boost (emmerbrusa). Perhaps it's just try them both and see which I prefer, but it feels like I'm missing something here, am I?
I am not being developing my motor firmware, probably emmebrusa version has more features.

Pictures of a build with OLED 1.3 inches, the same size as SW102 screen:

Image

Image
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

anszom   10 µW

10 µW
Posts: 6
Joined: Nov 27 2021 9:43am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by anszom » Nov 27 2021 10:05am

Hello everyone.

I wasn't satisfied with the open source UI for the SW102 display, so I've made a different version. Functionally it's the same but it looks better IMHO. I encourage you to try it :)
It's mostly compatible with casainho's original code - you can switch between my version and the 1.1.0 release with OTA update and your settings will be preserved.

This is the addres of my github repo: https://github.com/anszom/SW102_LCD . You can find slightly more information there, including short usage and installation instructions. A prebuilt update image is available on the releases page.

Here's an animated demo of the firmware' s functionality (this was recorded with an "emulator" build. It's difficult enough to take good pictures of an OLED, let alone do it while riding a bike:). The real display runs as smooth as you can see in the gif. And below you can see some actual photos.
Image

Main screen. Please disregard the butchered display casing, I've had to entirely rebuild the damn thing after I've fried the CPU with wrong voltages.
Image

Config menu:
Image

Assist level configuration:
Image

Torque sensor calibration:
Image

As a bonus, it should be easy to port this to casainho's DIY display, as the electronics are quite similar.

Post Reply