Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Electric Motors and Controllers
geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

0.19.10 Alpha 10 released

Post by geeksville » Aug 15 2019 3:24pm

(yep - for sw102 code you should for the time being use a 0.19 release of the motor firmware)

hi ya'll,

Not a crucial update, but you should probably install it - otherwise there is a chance your display controller might show a fault code:

https://github.com/OpenSource-EBike-fir ... /issues/22

Currently there are no remaining open bugs (please file any you find). Our remaining task list is here:

https://github.com/OpenSource-EBike-fir ... er/TODO.md

But we will probably be working on some internal refactoring for about a week before we do another release of the SW102 code.

Get the bins here: https://github.com/OpenSource-EBike-fir ... ag/0.19.10

Nick   1 W

1 W
Posts: 63
Joined: Jan 11 2019 5:24pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nick » Aug 16 2019 10:26am

Wiki updated with a solderless programming mehtod I used with great success:

https://github.com/OpenSource-EBike-fir ... debug-pads


Greetings
Niklas

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by geeksville » Aug 16 2019 12:30pm

yah - I think the solderless way is the best approach for anyone just now tuning into the SW102 channel ;-).

If you don't have 2mm headers (because you are in the USA and we are anti-metric cavemen, I'm sure you can cheaply get them from amazon).

Nick   1 W

1 W
Posts: 63
Joined: Jan 11 2019 5:24pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nick » Aug 16 2019 12:41pm

Yes, just google them. I found it on eBay/China.

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by geeksville » Aug 16 2019 7:42pm

Alpha 11 is out with some minor GUI improvements, instructions and changelog here:

https://github.com/OpenSource-EBike-fir ... ag/0.19.11

jimmyfergus   100 mW

100 mW
Posts: 40
Joined: Jul 17 2018 4:19pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by jimmyfergus » Aug 17 2019 4:23pm

I assume a slight bending to some inch-based ones could do it well enough?

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by geeksville » Aug 17 2019 5:18pm

jimmyfergus wrote:
Aug 17 2019 4:23pm
I assume a slight bending to some inch-based ones could do it well enough?
I think possibly. For me I found getting the bends just right was challenging enough I opted to tack solder the wires instead.

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 17 2019 5:22pm

geeksville wrote:
Aug 17 2019 5:18pm
jimmyfergus wrote:
Aug 17 2019 4:23pm
I assume a slight bending to some inch-based ones could do it well enough?
I think possibly. For me I found getting the bends just right was challenging enough I opted to tack solder the wires instead.
I want to share more pictures of the alternative way of cutting on the right side. In the end I glued with black silicone and I am pretty sure the SW102 is again water resistant as original -- this is a big plus.
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: 678
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by eyebyesickle » Aug 18 2019 4:07am

Just marking my intentions - I am about to bulldog these folks about the SW102 bluetooth firmware update... I am arrogant, but highly confident we will make 'this' happen - 'this' being updates with fresh SW102 displays, no initial hack job needed! I would say let's hope this doesn't take me 6 months like with the 850C- but I have already been working on it for quite some time... :roll: although I think with a little direction from you folks (which has already been given,athankyou) - it will greatly expedite the process... You probably already know this casainho (by how I would not shut up about it for so long), but the SW102 is my favorite display =) I use it on my BBS AND my TSDZ2 bike already =) I am super excited to be able to use it with the open source firmware though... oooooh man! :mrgreen:

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 18 2019 4:13am

eyebyesickle wrote:
Aug 18 2019 4:07am
I use it on my BBS AND my TSDZ2 bike already =) I am super excited to be able to use it with the open source firmware though... oooooh man! :mrgreen:
You can use it right now, the process to open it from lateral, let you glue back the removed lateral with black silicone and will have a nice finishing and also watter tight like original.
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: 678
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by eyebyesickle » Aug 18 2019 4:34am

casainho wrote:
Aug 18 2019 4:13am
eyebyesickle wrote:
Aug 18 2019 4:07am
I use it on my BBS AND my TSDZ2 bike already =) I am super excited to be able to use it with the open source firmware though... oooooh man! :mrgreen:
You can use it right now, the process to open it from lateral, let you glue back the removed lateral with black silicone and will have a nice finishing and also watter tight like original.
Yes I took a look and you actually did a great job opening it up like that... Clean with the cuts etc... Nice. I figure while there is still a bit of work being done on the code, I will work on the easy upload!

I'm not riding toooo horribly much right now these past couple weeks, as I have not been commuting since I have to carry a trunk full lately, and I've been running a bit for excercise since finally after a couple bad disc herniations I have regained feeling in my foot! So I can be patient and hope it all comes together with perfect timing. I will say though, I am very impressed with the progress I see so far.

e3s   10 W

10 W
Posts: 73
Joined: Jan 08 2018 12:40pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by e3s » Aug 18 2019 7:19am

Congratulation for the huge work. I have a question: Which is the max voltage supported for this lcd? I read the wiki but I haven't found this info. Xl7005 supports up to 80v, I read that there's also a voltage divider 300k-16k, 17 times more or less, a bit confused...

Nixunen   1 mW

1 mW
Posts: 18
Joined: Aug 27 2018 11:54am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nixunen » Aug 18 2019 8:26am

In Eggrider max voltage is 62v.

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 18 2019 8:33am

e3s wrote:
Aug 18 2019 7:19am
Congratulation for the huge work. I have a question: Which is the max voltage supported for this lcd? I read the wiki but I haven't found this info. Xl7005 supports up to 80v, I read that there's also a voltage divider 300k-16k, 17 times more or less, a bit confused...
You can use from 7S up to 14S (24V up to 52V) battery pack. I am being using a 14S.

I will put this information on the wiki, thanks for reporting this.
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.

e3s   10 W

10 W
Posts: 73
Joined: Jan 08 2018 12:40pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by e3s » Aug 18 2019 11:49am

Thanks. Can be loaded with some mods with more voltage?

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 18 2019 12:13pm

e3s wrote:
Aug 18 2019 11:49am
Thanks. Can be loaded with some mods with more voltage?
Read more on the wiki.
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: 678
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by eyebyesickle » Aug 21 2019 3:49am

Well, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore :lol:

https://drive.google.com/a/eco-ebike.co ... p=drivesdk

I can't wait until we have some strong versions of the OSF out for this thing...

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by geeksville » Aug 21 2019 3:53pm

eyebyesickle wrote:
Aug 21 2019 3:49am
Well, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore :lol:

https://drive.google.com/a/eco-ebike.co ... p=drivesdk

I can't wait until we have some strong versions of the OSF out for this thing...
Oooh cool - no soldering connectors. Great work! (and I think your second wish has a good chance of success - we'll know soon)

User avatar
eyebyesickle   10 kW

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

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by eyebyesickle » Aug 21 2019 11:44pm

geeksville wrote:
Aug 21 2019 3:53pm
eyebyesickle wrote:
Aug 21 2019 3:49am
Well, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore :lol:

https://drive.google.com/a/eco-ebike.co ... p=drivesdk

I can't wait until we have some strong versions of the OSF out for this thing...
Oooh cool - no soldering connectors. Great work! (and I think your second wish has a good chance of success - we'll know soon)
.
Oh yeah, it's just simple Bluetooth update of firmware for Stock TSDZ2... Just took a while to get all the functions working, and it to look like I wanted... Even though I'd prefer a voltage readout, among other things... Been flashing Bluetooth between BBS etc for months ..

But if I get my second wish.... I'll be very happy. And likely have a third wish (for more wishes)

perpleks   1 µW

1 µW
Posts: 1
Joined: Jul 02 2019 3:57am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by perpleks » Aug 22 2019 6:54am

Sorry for a dumb question, but will this firmware work with BBS02 or is it exclusively for TSDZ2 motor?

I didn't know about TSDZ2 when I was building my ebike, experiencing really strong buyer's remorse right now

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 22 2019 7:34am

perpleks wrote:
Aug 22 2019 6:54am
Sorry for a dumb question, but will this firmware work with BBS02 or is it exclusively for TSDZ2 motor?

I didn't know about TSDZ2 when I was building my ebike, experiencing really strong buyer's remorse right now
This LCD is sold as for Bafang although we developed our own firmware so it works with TSDZ2, also running our own developed firmware.

This LCD could work for KT motors controllers, mainly for our own OpenSource firmware or Bafang and other motor controllers, but for that there would be needed developers interested in developing it, that are usually users of the system.

So currently no, it does not work with Bafang nor there are any plans to implement that.
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.

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by geeksville » Aug 27 2019 8:23pm

Rydon wrote:
Apr 18 2019 12:52pm
There is a discussion going on in the Eggrider facebook group about simplifying and making the text bigger and more readable for the critical functions. There have been many complaints and of course, there are always a lot of tradeoffs and opinions regarding what information is critical, keeping it simple and making such a tiny display able to be read while riding. Here is one proposal that I like a lot.

57118232_10217618180099475_899070610787794944_n.jpg

The light and dark background on the assist level is a stealthy way to communicate road/off-road mode. I like having the volts but I think % could be graphical.
That would be a fairly easy change for our codebase. If anyone wants to work on adding it I'm happy to give them pointers on github, or one of the existing devs (casainho, lowperformer or me) can probably get to it at sometime after the other items in our queue have been addressed (2-3 months?)

geeksville   1 W

1 W
Posts: 60
Joined: Aug 02 2019 6:44pm

Looking for an alpha tester for "totally bluetooth"

Post by geeksville » Aug 27 2019 8:32pm

So,

Thanks to eyebysickle talking to the mfg and getting us some key data we've now made changes that have a pretty good shot of allowing 'solderless/no need to even open the SW102' bluetooth initial installation. However, in making these changes I've now changed the device eyebysickle gifted me with that I can no longer test a 'from scratch' installation. I think it has a very good chance of 'just working' on a virgin device from their factory, but I can't promise it.

So. If any of ya'll are interested in using a SW102 and you are comfortable with using our existing instructions (i.e. open the unit and use an ST-LINK for the initial load) but haven't yet tried it: We are looking for someone willing to try our new wireless update instructions instead. Note: It is possible this update won't work and at that point you would need to open the unit and install the conventional way (thus the possibility that you still might need to open the unit if this approach fails).

It might be that all SW102s support this wireless update? but we know for sure that the semi-custom units made for eyebysickle & eggrider do have this feature. So if you have been wanting to buy one, you might want to buy it from either of them.

If you are willing to be a trailblazer and try this, the basic instructions are here. But I'm happy to chat with anyone who wants to try this for us: https://github.com/OpenSource-EBike-fir ... -525492910

casainho   1.21 GW

1.21 GW
Posts: 3528
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Aug 27 2019 11:33pm

geeksville wrote:
Aug 27 2019 8:23pm
Rydon wrote:
Apr 18 2019 12:52pm
There is a discussion going on in the Eggrider facebook group about simplifying and making the text bigger and more readable for the critical functions. There have been many complaints and of course, there are always a lot of tradeoffs and opinions regarding what information is critical, keeping it simple and making such a tiny display able to be read while riding. Here is one proposal that I like a lot.

57118232_10217618180099475_899070610787794944_n.jpg

The light and dark background on the assist level is a stealthy way to communicate road/off-road mode. I like having the volts but I think % could be graphical.
That would be a fairly easy change for our codebase. If anyone wants to work on adding it I'm happy to give them pointers on github, or one of the existing devs (casainho, lowperformer or me) can probably get to it at sometime after the other items in our queue have been addressed (2-3 months?)
After that previous message, I updated the design file and I think it follows this ideas. I think we just need to implement the design.
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.

perryscope   100 W

100 W
Posts: 102
Joined: Jan 06 2019 4:29pm
Contact:

Re: Looking for an alpha tester for "totally bluetooth"

Post by perryscope » Aug 28 2019 2:55am

geeksville wrote:
Aug 27 2019 8:32pm
So,

Thanks to eyebysickle talking to the mfg and getting us some key data we've now made changes that have a pretty good shot of allowing 'solderless/no need to even open the SW102' bluetooth initial installation. However, in making these changes I've now changed the device eyebysickle gifted me with that I can no longer test a 'from scratch' installation. I think it has a very good chance of 'just working' on a virgin device from their factory, but I can't promise it.

So. If any of ya'll are interested in using a SW102 and you are comfortable with using our existing instructions (i.e. open the unit and use an ST-LINK for the initial load) but haven't yet tried it: We are looking for someone willing to try our new wireless update instructions instead. Note: It is possible this update won't work and at that point you would need to open the unit and install the conventional way (thus the possibility that you still might need to open the unit if this approach fails).

It might be that all SW102s support this wireless update? but we know for sure that the semi-custom units made for eyebysickle & eggrider do have this feature. So if you have been wanting to buy one, you might want to buy it from either of them.

If you are willing to be a trailblazer and try this, the basic instructions are here. But I'm happy to chat with anyone who wants to try this for us: https://github.com/OpenSource-EBike-fir ... -525492910
Sure happy to try this once I receive my next device in the next few days.

Edit:

I have received a unit today! :) so will try this later and let you guys know how I get on.
PS this is the Ali Express seller I ordered my unit from. https://www.aliexpress.com/item/4000054 ... 4c4drTZe5H about 10 days delivery to the UK.
Last edited by perryscope on Aug 28 2019 6:09am, edited 2 times in total.
Empowered people support rider and trustee
www.empoweredpeople.co.uk

Post Reply