Search found 69 matches

by mspider65
Nov 21 2020 3:53am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

@mspider65, many thanks for this Android app -- I just go it working for my configurations, that was my priority because as soon I have all of them implemented, I will be able to finally install the wireless board on my TSDZ2 and remove the big 860C display :-) Hi Casainho, glad to see that some pa...
by mspider65
Nov 03 2020 9:45am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

New Release: Small update for only ESP32 board firmware and Android App. As usual all the files could be downloaded from https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/tree/master/bin https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/blob/master/bin/Android/TSDZ2_ESP32v2.1.5.apk https://github.com/TS...
by mspider65
Oct 01 2020 9:08am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

You app is Android only? I am an Android user and I understand it is much more expensive to develop IOS. Did you though on IOS when you started this project?? No, i didn't. I don't have any knowledge about IOS. I think I will need soon to use the app, I will need an app to show me the available dev...
by mspider65
Sep 29 2020 2:54am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

But you process the input data twice than the output you generate for PWM, meaning it is useless to process twice, right? Since the value calculated for ui8_interpolation_angle is different in the two cases there is an impact. Since the calculated ui8_interpolation_angle is more precise, also appli...
by mspider65
Sep 29 2020 2:07am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

I understand that, and that is elaborated. But my question is because I think there is no advantage in processing twice the speed of PWM /output, the input data, because you simple do nothing in the output with that double of data, right? Also all HALL sensors related counters are updated twice eve...
by mspider65
Sep 28 2020 1:49pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

What I do not understand is possible advantages of read and process the inputs and, take action by writing the PWM, 2 times slower than that. The CPU is not fast enough to do all two times each PWM cycle, for this reason you have to split the algo between the two interrupt phases. At least 30/35% o...
by mspider65
Sep 28 2020 5:17am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

The implementation I did could also fire twice the interrupt - one question: what are the advantages to read hall sensors faster than acting on the PWM value? Hall sensor values are readed each PWM interrupt and this causes a potential offset error of 1/PWM frequency. In case of PWM=19KHz the max o...
by mspider65
Sep 28 2020 2:19am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

TSDZ2 Fluid Cooling I’ve been working with this all summer. With several different leaks , different pumps, different tubing, different fluid routing, different fluids, and other difficulties. I finally have a fluid made to fill-up brushless Motors and it is working the way I wanted to from the sta...
by mspider65
Sep 28 2020 2:17am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

Using battery current to be controlled is older approach I did, now is motor current instead because it represents the motor torque - much better felling when we ride!! I like the idea of low pass filter to try solve this issues, because low pass filter simple ignores fast changes / noise so will m...
by mspider65
Sep 27 2020 3:34pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

In my case , the noise I was experiencing was coming from a near by switching regulator (as I mentioned before my hardware is not the same). It introduced a noise on the current reading of around 10 kHz completely out of sync with the controller comutation cycle. No way to remove that kind of noise...
by mspider65
Sep 27 2020 1:12pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

Yes, i also experienced noise when reading battery current. In my tests also the noise seems to be lower when the battery current is sampled when TIM1 PWM counter is around zero value (middle od PWM cycle). In my current firmware the battery current is sampled in the middle of PWM cycle and motor.c...
by mspider65
Sep 27 2020 12:54pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

So my plan be to adjust only the SW102 code and make that compatible with your app and your controller code. So then people having the SW102 would not need the esp32. This is a good idea, I always wanted SW102 with a mobile app and since it has Bluetooth. For wireless EBike standard I am developing...
by mspider65
Sep 27 2020 12:49pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6444
Views: 471293

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

This may or may not help some of you guys. During my port of the code, I had a problem with the way motor current is calculated from battery current. In my setup I had a little too much noise on the current reading from battery (4 or 5) LSB and that stopped the duty cycle from ramping up. I'll expl...
by mspider65
Sep 22 2020 5:22am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

@mspider: I would be interested in adjusting your code to make the ESP32 compatible with the SW102. Bart made it such that he did not use the ESP32 at all (as far as I understood). I.e. I would like to make the ESP32 "talk" to the SW102 display. I think it should be not too difficult, see...
by mspider65
Sep 17 2020 5:25am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Already see that this is a bug with 2.1.2 and 2.1.3 Android app. With Android app 2.1.1 I was able to introduce the correct values for Battery cell overvoltage, it should be around 4.2V or 420 mV x 10, but with latest App it is out of the range, looks like it is expecting a overvoltage value for th...
by mspider65
Sep 15 2020 4:40pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

New Release: All the layers (STM8 Bike Controller, ESP32 board and Android App) should be updated. As usual all the files could be downloaded from https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/tree/master/bin Tour1.jpg The main new features are: Motor optimizations: + PWM Freq at 19Khz + better ro...
by mspider65
Sep 15 2020 4:26pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Is it possible to flash 0.20beta OTA in order to compare the firmwares? Most of the values should als show up fine in the app, right? I don't quite remember if I changed anything in the protocol, but it should probably work. Try and let me know. Also try the new version that I am publishing now. I ...
by mspider65
Sep 14 2020 11:04am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

mspider65 do you think making the cable to the lcd5 longer will affect anything? (like controller cable -> 1m cable to pcb -> 1m oem cable to LC5. i want also to have the pcb near the phone (inside a box on a phone holder for extra security) but dont want to splice the oem wiring (so i will have a ...
by mspider65
Sep 10 2020 7:57am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Hi, so I connected the pcb and tested it with ne new firmware for a couple of days. I love the instant response when starting to peddle and the overall agility! Also the field weakening works great (48v motor here) Best firmware I tried so far! I also have a couple of issues: - I feel like the moto...
by mspider65
Sep 03 2020 1:54am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

I tried another antenna which lead to the same behavior. Then I connected it to another 3,3V power source and everything worked as expected, so I guess something is not quite right with my FTDI. Very strange. Thanks for the hints, and for the update, btw! Can't wait to connect the PCB to the motor ...
by mspider65
Sep 03 2020 1:49am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Wimpy747 wrote:
Sep 02 2020 11:39am
I guess if I don't want to open the motor I can also place the board in the cable in a waterproof box, think this does not affect the behavior and functioning of the board?
Yes you can do it in this way too.
by mspider65
Sep 02 2020 1:31am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Hi guys, I fiddeled around a bit with the PCB and have the following Problem, which I don't know how to solve: When I connect to the PCB via bluetooth, without connecting an antenna to the IPEX port, it works perfectly. As soon as I connect the antenna and try to connect, it does not work. Connecti...
by mspider65
Sep 01 2020 4:44pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

Also removed my posts, I do love the project but would like to be able to use it with the sw102 display, because i actually like this display and also pefer the .20 firmware as the osf 1.0.0 is way to 'big' for me, do not need 20 assist levels for example. In the first post you were refering to thi...
by mspider65
Sep 01 2020 3:12pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

New Release: After several days spent on holiday in a mountain hut away from technology, today I finally published the new version with Field Weakening. Panorama.jpg All the layers (STM8 Bike Controller, ESP32 board and Android App) should be updated. As usual all the files could be downloaded from...
by mspider65
Aug 17 2020 7:01am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 140
Views: 11228

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

I was able to build using this "how to" https://makerdiary.com/blogs/news/how-to-use-nrf5-sdk-with-arm-gcc and TSDZ2 Wiki https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Development After building i run the script "release-SW102_ota" it successfully build an sw102-o...