Search found 39 matches

by pawepie
Sep 28 2018 11:06am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

casainho! Love all the value your open source firmware is giving to this motor and all these users! Your trip looks gorgeous too - thanks for sharing those photos! I'm wondering if for the next version of the firmware, someone could add "human power" in submenu 9 (option 5), to the main display, whe...
by pawepie
Aug 09 2018 8:36pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Thanks Casainho! Excited for this code upgrade on the Open Source Firmware! I got the following error trying to flash the hex: stm8flash -c stlinkv2 -p stm8s105?4 -w main.hex Determine FLASH area Due to its file extension (or lack thereof), "main.hex" is considered as INTEL HEX format! Address bff9 ...
by pawepie
Aug 08 2018 7:40am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

I recall pointing that out: I will try to add that when I get a chance (hopefully this evening!)! I was unable to flash the v5 firmware (improved original hex) as i want lights and human power functionality back until the open source firmware can support it. I could probably figure out to code/copy ...
by pawepie
Aug 07 2018 9:51pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Anyone else having problems flashing the .hex files?

On Linux, using stm8flash I get Error while parsing IHEX at line 1, and in Windows I get "Error : FILE : line 1: Not in Intel Hex format!" under STVP. :(
by pawepie
Aug 07 2018 9:08pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Love the photo of your girlfriend tucked screaming down the road, and of you pouring water on the motor. Could this give you some insight as to the equation? From: http://www.ebikes.ca/tools/simulator.html http://www.ebikes.ca/simulator1/img/efficiency_equation.gif The efficiency is calculated from ...
by pawepie
Jul 30 2018 9:18pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

So cool! Glad to hear about your adventures and experience. I too have loaded your open source firmware and updated LCD3 onto my bike and love the features - I did ruin my blue gear though - most likely not down shifting before I stopped (I was a bit sleepy this morning). I am wanting to plug in my ...
by pawepie
Jul 29 2018 6:32pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

I haven't looked at the the LCD3 schematic for any further info..but potentially the internal one could also be extended to the casing. I don't have a photo where I put in my sensor, but following the idea on what hot rodders have done for the BBS02, I used silicone caulk to glue the sensor (see pho...
by pawepie
Jul 28 2018 8:51pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

the LCD3 is able to read temperature values...though I don't know how exactly. Perhaps adding in a temperature probe and cutting off/reducing the maximum power when it reaches a certain level? I have a tank thermometer sensor I affixed into the motor casing with silicone caulk, but I haven't been cr...
by pawepie
Jul 25 2018 9:24pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1411
Views: 44308

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

Don't forget you need to flash the correct option bytes to remove read/write protection and get the correct signals! I only have the file in .bin, and I don't know enough coding to get it in hex. I think it might be in Stancoke's instructions somewhere. Casainho suggested I can ask about development...
by pawepie
Jul 23 2018 9:10am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

:shock: :shock: :cry: .. that is a seriously BAD IDEA !! Do not ride like that. You have strapped the motor casing to the swing arm which moves independent to the bbracket to which the rest of the drive is fixed . [/quote] Thanks for pointing that out! The swing arm distance travelled there is smal...
by pawepie
Jul 22 2018 9:17pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

This is my solution to mount to the frame when the stock solution doesn't fit: I had a sideways hose clamp for a while, and it worked great, just changed to this setup, as I realized it was possible - will update if this doesn't work, but currently trying to get the open source firmware working on m...
by pawepie
Jul 22 2018 9:08pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Hi Casainho! I'm really excited to try out your Open Source Firmware with LCD3 - I compiled the latest firmware and flashed the controller and the LCD3. When I first plugged it in, it kept running the motor until the max speed (which it then reduced): throttle worked and brakes stopped everything, b...
by pawepie
Jul 12 2018 10:28am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

casainho - just about to test the WH feature on the LCD3, here's a short writeup of my understanding of the secondary menu (quickly looking at your code markups) Hold POWER to get into the secondary menu 0 state (UP/DOWN to disable (0) or enable (1) WH display in lower right-hand corner) POWER for n...
by pawepie
Jul 06 2018 4:18pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Sorry Azur - I meant STVP (ST Visual Programmer) Remember, use the STM8S105x4 for the TSDZ2 Controller and the STM8S105x6 for the LCD3 I used Casainho's link and did the following (both under windows using STVP and linux using the toolchain) • Purple wire connect to STLinkV2 RST pin • Orange wire co...
by pawepie
Jul 04 2018 5:20pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

I've been able to flash both the TSDZ2 controller and the LCD3 using Windows and Linux. Are you using ST Visual Developer? STM8S105x4 for the TSDZ2? Do you have the controller powered on, or are you using the 5v pin and powering the chip via USB? I've been using the later method more often as I find...
by pawepie
Jul 01 2018 8:55am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

There are things asked over and over again on this thread, as new users arrive. To improve this, I suggest to create a FAQ wiki page on github and so new users should first read that page and will find that content when searching on google. Volunteers to maintain this page?? It can be created on gi...
by pawepie
Jun 28 2018 6:56pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Do we really have to install Linux ? No other way to flash using a PC surely.... Just ordered all my gear so getting excited :) you can flash on a PC...I just wanted to be able to compile and had problems doing it on my PC and it was easier to figure out the full toolchain in Linux. You can use the...
by pawepie
Jun 28 2018 6:26pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Thank you Casainho! Switching the wires at your suggestion works *perfectly*! The LCD3 is a *huge* upgrade with all the information. Cleaner and tidier setup...this motor is a dream :) It's so cool to have motor watts *and* calculated human power at the same time. Love it! Thanks for the feedback!!...
by pawepie
Jun 28 2018 6:12pm
Forum: E-Bike Technical
Topic: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3
Replies: 90
Views: 4672

Re: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3

Thanks for all your help: found my error (clearly due to my limited knowledge of linux) when installing https://stm8-binutils-gdb.sourceforge.io/, my mistake was below: ./patch_binutils.sh ./configure_binutils.sh cd binutils-2.30 ***don't do ./configure again!!! - this caused my error**** make make ...
by pawepie
Jun 27 2018 7:11pm
Forum: E-Bike Technical
Topic: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3
Replies: 90
Views: 4672

Re: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3

what did you do to solve the problem? (I had the SRC problem, then the pathway problem as you did, but can't get further than this) I think is wrong sdcc version. Do this: sdcc --version SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.7.0 #10231 (Linux...
by pawepie
Jun 27 2018 4:37pm
Forum: E-Bike Technical
Topic: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3
Replies: 90
Views: 4672

Re: KT LCD3 firmware -- Flexible OpenSource firmware for Kunteng KT-LCD3

allright i finally got everything build and can flash firmware! how did you end up doing this? I was once able to compile on another machine (similar toolchain for KT-S controllers), but can't get past my block. I have the latest SDCC 3.7.0.0. (IIRC) and I think my paths are correct now, but I get ...
by pawepie
Jun 23 2018 1:02pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

I had this issue before with the VLCD: it would give readouts of 99km/h very quickly and stop the motor. Now when I line it up and change the distance, it cuts off the motor over 15km/h, torque or throttle. The speed readout seems to be accurate. I'll do some more distance fiddling. I do recall that...
by pawepie
Jun 22 2018 1:21pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Thank you Casainho! Switching the wires at your suggestion works *perfectly*! The LCD3 is a *huge* upgrade with all the information. Cleaner and tidier setup...this motor is a dream :) I have a curious situation I'm trying to solve. With the speed sensor hooked up: I'm getting a cut-out of the motor...
by pawepie
Jun 19 2018 11:18pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

Hmm....I downloaded the latest v3 LCD3 firmware (thanks!), flashed successfully, and then made sure to flash my TSDZ2 controller as follows below (I actually edited a value in the eeprom to work with 52V). Same result :( (throttle and brake work, but display is all on (no backlight this time)): does...
by pawepie
Jun 19 2018 12:54pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4074
Views: 277873

Re: New "TSDZ2 Torque Sensor Central Motor"

hmm...just did this: echo "00 00 ff 20 df 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > option_bytes_pwm_n_channels_enabled.bin sudo stm8flash -c stlinkv2 -p stm8s105?6 -s opt -w option_bytes_pwm_n_channels_enabled.bin Determine OPT area Due to its file extension (or lack thereof), "option_bytes_pwm_...