Search found 5328 matches

by casainho
Jun 11 2021 7:43pm
Forum: EBike Non-hub Motor Drives
Topic: Bafang M620/G510 (and all other Bafang motors) now on CAN-BUS (2021+) rather than UART (2018-2020)?
Replies: 14
Views: 1196

Re: Bafang M620/G510 (and all other Bafang motors) now on CAN-BUS (2021+) rather than UART (2018-2020)?

it should be pretty straightforward to make one as DIY project. I've already programmed some commands of the BAFANG CAN communication with a cheap blue pill board + CAN transceiver module . So you can get the necessary hardware for less than 5$. The relevant commands for the system settings should ...
by casainho
Jun 11 2021 8:11am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

@abrainer, on your notes about the pins, you refer that there are inputs for measurements of shunt resistor and also to the 3 motor phases resistor, although I just find measurements to only 2 motor phase resistor: I am pretty sure that the pinout is correct, otherwise the Infineon FOC control woul...
by casainho
Jun 11 2021 6:12am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

@abrainer, on your notes about the pins, you refer that there are inputs for measurements of shunt resistor and also to the 3 motor phases resistor, although I just find measurements to only 2 motor phase resistor: - LM258 : 1. opamp working as unity gain buffer, providing at output a 2.5 volts sign...
by casainho
Jun 11 2021 5:55am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

So, why would they use two MCP6022 and a LM256 to do the same function, while they could use instead the same MCP6022 or the same LM256?? Well, because I was wrong. LM256 as one opamp working as unity gain buffer, providing at output a 2.5 volts signal for the other opamps with a voltage offset of ...
by casainho
Jun 11 2021 5:14am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

// LM258 // opamp pins 1, 2 and 3, is configured with as a unity gain buffer, providing at output a 2.5 volts signal (probably for the offset voltage used on the other opamps measuring the phase currents) As we can see on this LM258, pin 1 and 2 are shorted. Pin 3 has 2.5 volts, provided by the 2 ne...
by casainho
Jun 11 2021 4:18am
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

So, there are 3 dual opamps. 2 of them are the MCP6022 and one of them is the LM258. This gives a total of 6 opamps available. I just checked the MCP6022 near the shunt resistor and I found: 1. one opamp is in the no inverting configuration with the gain of 11, measuring the shunt resistor (can only...
by casainho
Jun 10 2021 2:16pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

I just finished the notes for the shunt resistor input value, I added to pins.h file:

Image
by casainho
Jun 10 2021 1:48pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

.... So, if the opamp is really MCP6021, then pin 1 and pin 8 would be unconnected, but we see they are not... most probably the opamp is the MCP6022 and not the MPC6021, or am I missing something?? You know if pin 7 is also connected to Vdd. Unconnected does mean no internal connection, so you can...
by casainho
Jun 10 2021 1:05pm
Forum: Motor Technology
Topic: TSDZ2 48v 2020 new firmware
Replies: 163
Views: 6608

Re: TSDZ2 48v 2020 new firmware

I am start to look at the SHUNT resistor voltage amplification factor and signal, and I found something very strange - as seen on the picture, the opamp is the MCP6021 and the pin 4 is connected to GND and pin 8 to VDD: https://i.postimg.cc/pLCvS5sw/image.png However, the datasheet of MCP602x, shows...
by casainho
Jun 08 2021 6:03pm
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8744
Views: 959271

Re: New "TSDZ2 Torque Sensor Central Motor"

The displays are expensive and there are reports of suddenly fail /damage, and then you can not repair them. You can go wireless and use your mobile phone instead or alternatively use a cycling GPS as a display, like the Garmin Edge. You just need to use our cheap OpenSource EBike wireless controlle...
by casainho
Jun 07 2021 6:00pm
Forum: Motor Technology
Topic: 860C-850C OSF for Bafang BBSxx
Replies: 17
Views: 686

Re: 860C-850C OSF for Bafang BBSxx

AndZab wrote:
Jun 06 2021 6:00pm
Big problem remain that impossible VSC thing, really weird.
How can I fix that pseudo-IDE ?

As last chance, is it possible to import the project inside a normal Eclipse ?
What are the drawbacks to do so ?
You need to investigate by yourself, I can not help you as I do not use Eclipse now.
by casainho
Jun 06 2021 5:31pm
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8744
Views: 959271

Re: New "TSDZ2 Torque Sensor Central Motor"

Well done everyone, and greetings from Tasmania! It is always nice to see other builds and landscapes!! My tests end here. Listen here at Walking mode noise: BkQIjNWQXEY Thanks for that tests and let us know the results!! If I understand correctly on the video, the motor is very quiet with that &qu...
by casainho
Jun 03 2021 2:36pm
Forum: EBike Non-hub Motor Drives
Topic: Bafang M500/M600 thread
Replies: 601
Views: 71857

Re: Bafang M500/M600 thread

I did a search but I feel like it may have been too vague. I was ready to order this motor when I saw the battery needed a certain protocol? All my batteries are homemade, and I'm not sure I've ever seen a battery with a protocol. Am I misunderstanding something? It was my assumption I could purcha...
by casainho
Jun 03 2021 8:15am
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8744
Views: 959271

Re: New "TSDZ2 Torque Sensor Central Motor"

I think the idea of printing our own structure may be a little overkill, the basic shell doesn't weigh anymore than a printed version and in some ways will probably weigh less. So where's the weight saving to come from. The controller is a fixed weight, the torque sensor and axle is to be used agai...
by casainho
Jun 03 2021 6:05am
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8744
Views: 959271

Re: New "TSDZ2 Torque Sensor Central Motor"

I wounder if we could 3D print a TSDZ2, reusing the torque sensor, the motor controller V2 board but with following changes: 1. add a belt to have a silent motor 2. reduce the motor weight by using a smaller motor OR 3. increase the motor power by using a more powerful motor. What I wish to improve ...
by casainho
Jun 02 2021 5:38pm
Forum: EBike Non-hub Motor Drives
Topic: Bafang M500/M600 thread
Replies: 601
Views: 71857

Re: Bafang M500/M600 thread

General feedback of the reliability of the later units is very good, why would you want to change the complete firmware when in reality it just wants to be able to be user tweaked to our own personal settings. Because developing and repair the original motor controller and displays is very hard!! a...
by casainho
Jun 02 2021 4:45pm
Forum: EBike Non-hub Motor Drives
Topic: Bafang M500/M600 thread
Replies: 601
Views: 71857

Re: Bafang M500/M600 thread

Has anyone tried to run the motor with external motor controller like VESC and so fully unlock the motor speed and power? I've not done anything with this motor, but I have done exactly what you're suggesting with a Bosch Gen2 motor, using a Grin PhaseRunner & a V3 Cycle Analyst: Motor is simpl...
by casainho
Jun 02 2021 1:32pm
Forum: EBike Non-hub Motor Drives
Topic: Bafang M500/M600 thread
Replies: 601
Views: 71857

Re: Bafang M500/M600 thread

I am keep looking to this motors and it is not possible to buy parts for repair. Also seems it is impossible to unlock the motor for speed and the motor power - there are devices for speed unlock but they are very expensive like 200€ which may cost only 10€ in materials!! Has anyone tried to run the...
by casainho
May 31 2021 9:01am
Forum: EBike Non-hub Motor Drives
Topic: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource
Replies: 1557
Views: 58383

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

New release v0.8.0 -- https://github.com/OpenSourceEBike/TSDZ2_wireless/releases/tag/v0.8.0 Changelog: - Battery SOC now resets every time the battery voltage is over the configured value (previous was resetting only at wireless board power on) - corrected Battery Voltage field - added Motor Power ...
by casainho
May 31 2021 6:19am
Forum: Motor Technology
Topic: 860C-850C OSF for Bafang BBSxx
Replies: 17
Views: 686

Re: 860C-850C OSF for Bafang BBSxx

My first goal is very simple: Try to recompile 860C_v1.0.0-trip-bootloader.bin with no modifications, and upload it by serial wire to my 860C This is to test the development system only. No need to do any modification to source code, at this stage. Real learning will be after that. Usually this wou...
by casainho
May 31 2021 3:27am
Forum: EBike Non-hub Motor Drives
Topic: TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource
Replies: 1557
Views: 58383

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

e3s wrote:
May 30 2021 2:30pm
When tsdz2_vin is positive, bts4140n is on? Bts4140n enables bsp296, right? Is P1.00 positive?
Yes, P1.00 needs to be positive to enable the motor controller.
by casainho
May 30 2021 11:45am
Forum: Motor Technology
Topic: 860C-850C OSF for Bafang BBSxx
Replies: 17
Views: 686

Re: 860C-850C OSF for Bafang BBSxx

AndZab wrote:
May 30 2021 11:35am
Where do you suggest to copy your .vscode folder ?
I usually put on root on source of a project, but see for yourself where it makes sense for your project. You need to understand what is inside that folder and what makes more sense for your project organization.
by casainho
May 30 2021 6:08am
Forum: Motor Technology
Topic: 860C-850C OSF for Bafang BBSxx
Replies: 17
Views: 686

Re: 860C-850C OSF for Bafang BBSxx

Please can you confirm the right task manager extension is the "Zhang Shen" one ? You can see my current situation here (no listed tasks) : Maybe I missed some step, like to create a "json" file, or whatever. If you can point me on the right direction, then I'll write on the man...
by casainho
May 29 2021 1:28am
Forum: EBike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 8744
Views: 959271

Re: New "TSDZ2 Torque Sensor Central Motor"

My 36th birthday was yesterday and i am full of positive emotions which i like to share 🥳. And my bike is just reborn with this modification, as i expected! I'll be glad to answer any questions and share information, don't be shy, i like new people. Thanks for this thread 😊 Thanks for sharing and n...
by casainho
May 28 2021 3:40pm
Forum: Motor Technology
Topic: 860C-850C OSF for Bafang BBSxx
Replies: 17
Views: 686

Re: 860C-850C OSF for Bafang BBSxx

But I stopped myself, because a maybe important instruction picture is missing (flash_debug_1.png): My main problem is that, after I installed all the requested extensions, the Task Manager "Zhang Shen" do not show anything: Please can you help me to load the project and start compiling i...