Search found 5338 matches

by casainho
May 19 2021 11:55pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

the motor is significantly quieter with the new controller! I can already say that. I tested the controller with the tft500 in one of my old motors. the unpleasant higher frequencies are gone. A lower consumption and therefore less heat generation and the performance of the mspider65 version would ...
by casainho
May 19 2021 4:36pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

A big issue is that I can not change / see anymore the configurations of the project, like I can't see the PWM configurations for instance Do you mean the App perspective or the related source code? for the App perspective go to Window-->Perspective-->Open Perspective-->Other-->DAVE CE This is the ...
by casainho
May 19 2021 4:27pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

I see the following disadvantages: 1. 8 bits VS 32 bits microcontroller, meaning the old code is optimized (I mean all the code, not only the motor code) for 8 bits and that would be a limitation (in quality output) for the new motor controller. 2. The compiler SDCC for the old one is more limited ...
by casainho
May 19 2021 1:26pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

Have been thinking about how to manage the two codebases to keep features common with a minimum of legwork; Idea was to refactor the existing motor controller code slightly - move anything hardware specific out of ebikeapp.c and into a hardware abstraction class that reads things like torque sensor...
by casainho
May 19 2021 8:17am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

A big issue is that I can not change / see anymore the configurations of the project, like I can't see the PWM configurations for instance Do you mean the App perspective or the related source code? for the App perspective go to Window-->Perspective-->Open Perspective-->Other-->DAVE CE I mean the a...
by casainho
May 19 2021 3:15am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

I found the code builds and works until I do the PWM_Init(): Hm, @abrainer got his motor spinning with the last commit I pushed to github. So it might be a matter of your compiler settings, I can post the makefiles from the DAVE IDE, if you are interested. But I can't debug, as I have no hardware. ...
by casainho
May 18 2021 7:43pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

@stancecoke, I found the code builds and works until I do the PWM_Init(): if (init_status == DAVE_STATUS_SUCCESS) { /** Initialization of PWM APP instance PWM_0 */ init_status = (DAVE_STATUS_t)PWM_Init(&PWM_0); } For some reason, PWM_Init is making the code failing, it not even goes to main(). C...
by casainho
May 18 2021 3:22pm
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8789
Views: 962862

Re: New "TSDZ2 Torque Sensor Central Motor"

So try to change that both limit values... and I hope you are in SI units.

Also may help to reset the display, as all the variables will have the default values.
by casainho
May 18 2021 2:34pm
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8789
Views: 962862

Re: New "TSDZ2 Torque Sensor Central Motor"

So I finally got around to installing the temperature sensor. I had to use the alternative ground connection because my controller doesn't have the ground wire that was marked on the schematic. Before closing it all back together, I powered it on to check all was working. The display could read the...
by casainho
May 18 2021 9:53am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

@abrainer and @stancecoke and other developers, I have a very simple code that only reads the throttle ADC - I commented all the code for the motor control and the ADC throttle reading, but I added a throttle ADC code that I found on web and works. Currently my Makefile is as shown bellow and the AD...
by casainho
May 18 2021 9:04am
Forum: EBike Non-hub Motor Drives
Topic: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource
Replies: 1557
Views: 58932

Re: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource

I still have a question about nRF programming. is the given programming sequence is good? 1. STLink - TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex 2.nRF Connect - TSDZ2_wireless-bootloader_ota_update-v0.9.0.zip 3.nRF Connect - TSDZ2_wireless_ota_update-v0.7.0.zip question 2: nRF will show up in bt ...
by casainho
May 17 2021 3:14pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

Have been thinking about how to manage the two codebases to keep features common with a minimum of legwork; Idea was to refactor the existing motor controller code slightly - move anything hardware specific out of ebikeapp.c and into a hardware abstraction class that reads things like torque sensor...
by casainho
May 17 2021 7:29am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

I wrote a simple Makefile to build the code inside DAVE_FOC_PROJECT. I can run and debug the code as seen on the following image. The idea is the tweaks to motor FOC code can be done on DAVE tool and other code can be added manually by us. My next step is to get brake sensors working (to block FOC i...
by casainho
May 16 2021 6:20am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 253
Views: 20046

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

I was surprised about that too. Especially because most cheap microcontrollers tolerate 5V. But as also mentioned at the end of the linked side: maybe it's because the ESP is so modern and highly integrated the chip die is not build to deal with higher voltages at all. The quick and dirty solution ...
by casainho
May 15 2021 3:00pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 253
Views: 20046

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

Beli wrote:
May 15 2021 2:45pm
casainho wrote:
May 15 2021 2:35pm
Are you sure?
Yes:
https://esp32.com/viewtopic.php?t=877#p56956
Ok, I would no expect that "weakness" from a modern microcontroller as ESP.
Thank you for the clarification.
by casainho
May 15 2021 2:35pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 253
Views: 20046

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

We are using ONLY a very small DC-DC and 2 MOSFETs for turn on/off the motor controller and no level shifter at all!! ESP32 has no protection at the IO ports and can't be used without level shifters! Are you sure? Because I see that protections on the motor controller side. 850C, 860C, SW102 displa...
by casainho
May 15 2021 2:22pm
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 253
Views: 20046

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

Of course you additionally would need a DC/DC converter for power supply and a level shifter for the serial ports (ESP32 ports working at 3.3V, TSDZ2 at 5V). We are using ONLY a very small DC-DC and 2 MOSFETs for turn on/off the motor controller and no level shifter at all!! The circuit is very sim...
by casainho
May 14 2021 12:30pm
Forum: EBike Non-hub Motor Drives
Topic: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource
Replies: 1557
Views: 58932

Re: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource

Since one of my EBikes with 860C display stopped to work suddenly (860C display do not work anymore), I built another TSDZ2 EBike wireless controller and all went perfect as expected - this time I used thin wires:

Image
by casainho
May 14 2021 10:49am
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8789
Views: 962862

Re: New "TSDZ2 Torque Sensor Central Motor"

We have a Nihola cargo trike with the TSDZ2 and a Nexus 8 speed IGH. No problems with that combination whatsoever in approx 650km so far. Total weight of rider/bike/dog is about 135kg, only paved roads/trails so far and we do take care to not shift under load. The Alfine 8 speed hub is supposedly e...
by casainho
May 14 2021 9:08am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 186
Views: 7595

Re: TSDZ2 48v 2020 new firmware

@casainho, I don't know which pin the throttle is connected to in the stock firmware. The analogue input P2.5 is connected to the pads J7. See picture: P2_5_Input.PNG Thanks!! That position seems similar to controller V1 throttle pad. Do you know if there is any extra analog pad we can use for temp...
by casainho
May 14 2021 7:29am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6579
Views: 505213

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

I'm getting the Brakes Error message but I do not run brake sensors. My bike was running great for several weeks after installing a new TSDZ2 and 860c but it quit on my ride today and I tried doing a reset. Tried unplugging everything but I get nothing. Just the start up screen then after a few min...
by casainho
May 14 2021 1:24am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6579
Views: 505213

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

I have the same problem. After disconnecting the battery for charging and reconnecting it, the display shows e: brakes. I checked the higo 8pin cable with a multimeter, verified the display-cable connections. I'm using SW102. Today I will connect VLCD5 and verify. I will add that STLink works. If i...
by casainho
May 14 2021 1:17am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6579
Views: 505213

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

I have the same problem. After disconnecting the battery for charging and reconnecting it, the display shows e: brakes. I checked the higo 8pin cable with a multimeter, verified the display-cable connections. I'm using SW102. Today I will connect VLCD5 and verify. I will add that STLink works. If i...
by casainho
May 13 2021 5:15pm
Forum: EBike Non-hub Motor Drives
Topic: Linux and Windows Toolchains for use with Open Firmware EBike code
Replies: 8
Views: 289

Re: Linux and Windows Toolchains for use with Open Firmware EBike code

I do not know why the 5 and how to solve, but I know the code works for me like that.
by casainho
May 13 2021 5:12pm
Forum: EBike Non-hub Motor Drives
Topic: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource
Replies: 1557
Views: 58932

Re: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource

@casainho Not helpful and actually, quite insulting. :( Sorry. What I wanted to say is that instructions for developers do not need to be perfect because they are used to figure out what tools to install as also adapt the paths. You can just ignore the Visual Code Studio errors, I think me and othe...