Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
0.19.10 Alpha 10 released
(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
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
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Wiki updated with a solderless programming mehtod I used with great success:
https://github.com/OpenSource-EBike-fir ... debug-pads
Greetings
Niklas
https://github.com/OpenSource-EBike-fir ... debug-pads
Greetings
Niklas
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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).

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).
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Yes, just google them. I found it on eBay/China.
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Alpha 11 is out with some minor GUI improvements, instructions and changelog here:
https://github.com/OpenSource-EBike-fir ... ag/0.19.11
https://github.com/OpenSource-EBike-fir ... ag/0.19.11
-
- Posts: 48
- Joined: Jul 17 2018 4:19pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
I assume a slight bending to some inch-based ones could do it well enough?
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
I think possibly. For me I found getting the bends just right was challenging enough I opted to tack solder the wires instead.jimmyfergus wrote: ↑Aug 17 2019 4:23pmI assume a slight bending to some inch-based ones could do it well enough?
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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.geeksville wrote: ↑Aug 17 2019 5:18pmI think possibly. For me I found getting the bends just right was challenging enough I opted to tack solder the wires instead.jimmyfergus wrote: ↑Aug 17 2019 4:23pmI assume a slight bending to some inch-based ones could do it well enough?
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
- eyebyesickle 10 kW
- Posts: 694
- Joined: Apr 07 2015 9:28pm
- Location: Nashville
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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...
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! 


Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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.eyebyesickle wrote: ↑Aug 18 2019 4:07amI 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!![]()
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
- eyebyesickle 10 kW
- Posts: 694
- Joined: Apr 07 2015 9:28pm
- Location: Nashville
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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!casainho wrote: ↑Aug 18 2019 4:13amYou 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.eyebyesickle wrote: ↑Aug 18 2019 4:07amI 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!![]()
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.
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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...
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
In Eggrider max voltage is 62v.
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
You can use from 7S up to 14S (24V up to 52V) battery pack. I am being using a 14S.e3s wrote: ↑Aug 18 2019 7:19amCongratulation 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...
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 displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Thanks. Can be loaded with some mods with more voltage?
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Read more on the wiki.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
- eyebyesickle 10 kW
- Posts: 694
- Joined: Apr 07 2015 9:28pm
- Location: Nashville
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Well, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore
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...

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...
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Oooh cool - no soldering connectors. Great work! (and I think your second wish has a good chance of success - we'll know soon)eyebyesickle wrote: ↑Aug 21 2019 3:49amWell, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore![]()
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...
- eyebyesickle 10 kW
- Posts: 694
- Joined: Apr 07 2015 9:28pm
- Location: Nashville
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
.geeksville wrote: ↑Aug 21 2019 3:53pmOooh cool - no soldering connectors. Great work! (and I think your second wish has a good chance of success - we'll know soon)eyebyesickle wrote: ↑Aug 21 2019 3:49amWell, we finally got it done... I've been working on this forever, and got it finished just in time to not matter anymore![]()
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...
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)
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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
I didn't know about TSDZ2 when I was building my ebike, experiencing really strong buyer's remorse right now
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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 displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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?)Rydon wrote: ↑Apr 18 2019 12:52pmThere 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.
-
- Posts: 80
- Joined: Aug 02 2019 6:44pm
Looking for an alpha tester for "totally bluetooth"
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
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
Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
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.geeksville wrote: ↑Aug 27 2019 8:23pmThat 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?)Rydon wrote: ↑Apr 18 2019 12:52pmThere 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.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).
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.
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.
-
- Posts: 106
- Joined: Jan 06 2019 4:29pm
- Contact:
Re: Looking for an alpha tester for "totally bluetooth"
Sure happy to try this once I receive my next device in the next few days.geeksville wrote: ↑Aug 27 2019 8:32pmSo,
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
Edit:
I have received a unit today!

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
www.empoweredpeople.co.uk