:thumb: :thumb:Nick said:So for all people who are interested, I lost some words about setting up the development environment on Windows:
https://github.com/OpenSource-EBike-firmware/SW102_LCD_Bluetooth/wiki/Setup-IDE-(Windows)
If something missing, please give us a hint.
Nick said:You can flash the code with the openOCD configuration. You just need a ST-Link v2 clone for this.
The "official" way (Makefile targets) uses nrfjprog from Nordic but this program needs a Segger J-Link probe.
Yes, I bought the version that says has no Bluetooth. The hardware should be the same but Bluetooth is firmware.bart1006 said:Maybe this questions is asked before but can't find it somewhere:
Does the "chinese" sw102 (say around 50-60 dollar) also have the Nordic microcontroller with Bluetooth (nRF52)?
bart1006 said:Nick said:You can flash the code with the openOCD configuration. You just need a ST-Link v2 clone for this.
The "official" way (Makefile targets) uses nrfjprog from Nordic but this program needs a Segger J-Link probe.
Do you have a picture of how your lcd is connect to pins on the stlink clone?
I couldn't find it on the wiki's. Do you let the lcd power from the "normal" connection or do you use the 3.3v on the printboard?
Any tips on where to buy the sw102 lcd in Europe (if possible)?
Thanks.
I like a lot the spirit of Arduino and I know it since the begin however, it used to lack good IDE and support for debugging, also C++. It can also be not good for pur limited memory size, I guess.Nick said:Arduino IDE seems quite interesting to me! The sandeepmistry repo looks up-to-date. There is also a bootloader on this older repo based on S130 softdevice and OTA support.
SH1107 is supported by the U8G2 library.
If you don't like the IDE, you can also use Eclipse.
Should we give it a try?
BTW:
I'm struggling integrating Softdevices to the project. I read that S110 support was canceled somwhere prior to SDK v11 and the S130 is supported up to SDK v12.3. So I think I was wrong just to use the latest version which states "all platforms" but rather use some hidden deep links on the homepage to get the right SDK version (did I already mention I don't like the SDK? :wink: ). I think we have to switch from current SDK version back to SDK v12.3.![]()
OTA bootloader what means? Is that different from the one provided by Nordic?Nick said:But imho we really need a working OTA bootloader running on the SW102 before we continue! This means a decision which SDK version and Softdevice version to use!
Nick said:I created a new branch named SDK_12.3.0 with the "new" SW102 example code based on the SDK v12.3.0 and S130 Softdevice.
The Eclipse project inludes:
- New Build Targets among others: flash_softdevice: flash the S130 to the SW102 via openOCD/ST-Link clone, flash_program: flash the example code via openOCD/ST-Link clone (you have to set the path to your local openOCD installation in the Makefile).
- Some examples how to use custom fonts.
- ble example which establishes a UART over BLE. Advertisement is working and I also could trigger RX/TX. You can test with nRF Connect / nrf Toolbox apps under Android. Very basic proof of concept right now.
I am being traveling with my bike far from home and once I have time I want to test all the changes you did, which seems great!!Nick said:Its just the basic BLE feature. Data transmission has yet to be implemented. I don't know how long this will take. Time is the very limiting factor for me![]()
Nick said:Its just the basic BLE feature. Data transmission has yet to be implemented. I don't know how long this will take. Time is the very limiting factor for me![]()
Nick said:Because we already did some steps with the official SDK, advantages are maybe not that huge.
On a fresh start, Arduino IDE would have the advantage of easy setup, easy library integration, huge set of libraries (ready to use LCD gfx lib f.i.) and it is also more beginner friendly.
But no problem to stick to nrf5 SDK here.
Nick said:But imho we really need a working OTA bootloader running on the SW102 before we continue! This means a decision which SDK version and Softdevice version to use!
I agreeNick said:As I already mentioned, I would keep the software on SW102 simple, stupid. If we need some advanced features this can be done on the Smartphone App which remote controls the SW102 (f.i. heart rate sensor bound to the mobile app which sets assist levels on the SW102).
I (partly) disagreeNick said:(f.i. heart rate sensor bound to the mobile app which sets assist levels on the SW102).
Yes I think.Zelenaar said:Casainho,
Do you think the Motorhandling part and the common data structure (L2,L3) are easily portable from the 850c code to the sw102 ?
Any pitfalls you can think about?