Sandroforms
100 mW
- Joined
- Jan 8, 2023
- Messages
- 39
despite using the same protocol as sw102, for some reason it would not be advisable to use it
You would have to port the LunaCycle files to MakerX hwconfig, like I've done it for the Flipsky.How would I program this to work with my MakerX G300
No, it must work out of the box. Have you cross checked the App settings in the VESC tool? Make sure, that it is set according to #9!or do I need to flash SW102 and upload another hex file
Ok thanks a lot I will try to do this.No, it must work out of the box. Have you cross checked the App settings in the VESC tool? Make sure, that it is set according to #9!
regards
stancecoke
Have you managed to get it working?Ok thanks a lot I will try to do this.
Unfortunately, it has not been possible to start it yet, I wonder if it's a problem with the controller because I have a Flipsky vesc 75100, or maybe it should be makerbase75100, according to the diagram, everything is OK, I also set the vesc tool as it should be, but I have error30 ( apart from sw102 I tried on dz40 there is the same error) I swapped tx and rx It didn't help either, I checked the cables with a multimeter to see if there was a connection and there was. I don't know where I'm making a mistake, but I'll keep looking.Have you managed to get it working?
If you have a USB-UART converter, please listen to the tx data stream of the display (1200 BAUD) with your laptop first.I don't know where I'm making a mistake, but I'll keep looking.
11 0A
11 11
16 1A F0 20
11 08
16 0B 00 21
11 0A
11 11
16 1A F0
11 20
11 08
16 1F 03 1B 53
11 0A
![]()
VESC_BLDC/hwconf/flipsky/luna_display_serial.c at cfa7b645de98242b26a08e6f0fd281f48818bfde · stancecoke/VESC_BLDC
The VESC motor control firmware. Contribute to stancecoke/VESC_BLDC development by creating an account on GitHub.github.com
Hello stanecoke. Will your firmware work with Innotrace X1 controller for Bafang m620 UART? Innotrace is based on VESC.I can provide the .bin file also, if that helps. It is generated anyway during compiling.
But I had no problem with flashing the .hex file with the 6.06 BETA VESC tool.
regards
stancecoke
Have you seen the thread on the vesc-development Discord?My Innotrace X1 controller STM32 chip is dead and I need firmware for that chip but unfortunately Innotrace is out of business and the controller developer does not respond.
You use 4 wires from the torque sensor while the sensor has 6 wires. Other two wires have no functions or it is not necessary to use those to make it works?The Flipsky 75100 is available at a very reasonable price and in a pedelec-compatible housing. However, the VESC is hardly suitable for e-bikes due to the lack of display and torque sensor support. This has challenged my tinkering instinct
Luna Cycle has already implemented the Bafang protocol for its BBSHD controller, so I “only” had to port it to the Flipsky hardware.
For the torque sensor I put the PAS signal on the servo input and the torque signal on ADC2.
The VESC tool still works for setting up the motor, but the app setting must not be done with the VESC tool at the moment, as it does not (yet) know the new functions.
Currently it only runs on the test bench, the torque sensor signals are emulated by a blackpill board.
Next I have to install the controller in my tinker bike and do a real test ride
Commits · stancecoke/VESC_BLDC
![]()
A little teaser on Youtube:
regards
stancecoke
The Bafang sensor uses more wires than the ERider sensor. I've analyzed both in detail.But how the rest correlates with your torque sensor wiring
regardsFurthermore, a direction/speed signal is output. At crank standstill 0V at backward pedaling 4V and at forward pedaling an analog signal, which is not proportional to the cadence according to the first rough measurement. Why there is this signal is a mystery to me, the information is already contained in the other signals....
Hm, for a middrive it might make sense, as you need no cadence information, because the motor rpm is always in a constant ratio to the cadence. So the cadence is canceled out of the formula for calculating the motor power proportional to the riders effort. For a hub motor you would need the PAS-signals for getting the cadence to calculate the riders effort, as the ratio from cadence to motor rpm is not constant due to the gearshift.Does it make sense?
No and if it does you'll get weird readings because spintend used different hardware. Also you'll probably want phase filtering. You should recompile the firmware with the correct HW settings from here; I get mine next week and will be able to tell you more by than.Hello!
I am a newbie in VESC and I have several questions:
Will this firmware work for Single Ubox 100V 100A?
Will it work with the 750C Bluetooth screen, or are there other, more interesting options.
And is it possible to use the motor temperature sensor input as an external speed sensor input?
Tried this today - compiles just fine (couple of warnings in the luna code) and seems to work although the t17 torque sensor behaviour could use some tweaking. Working on porting the KT display code from the ebics source to this one now since I miss my temperature reading on bafang displays.The Flipsky 75100 is available at a very reasonable price and in a pedelec-compatible housing. However, the VESC is hardly suitable for e-bikes due to the lack of display and torque sensor support. This has challenged my tinkering instinct
Luna Cycle has already implemented the Bafang protocol for its BBSHD controller, so I “only” had to port it to the Flipsky hardware.
For the torque sensor I put the PAS signal on the servo input and the torque signal on ADC2.
The VESC tool still works for setting up the motor, but the app setting must not be done with the VESC tool at the moment, as it does not (yet) know the new functions.
Currently it only runs on the test bench, the torque sensor signals are emulated by a blackpill board.
Next I have to install the controller in my tinker bike and do a real test ride
Commits · stancecoke/VESC_BLDC
regards
stancecoke
I'm not familiar with lisp scripting and I'm not planning to learn itShould we translate this into a script
Seems a bit harsh. The embedded lisp terminal offers a very nice way to tinker around without rising to crash the whole thing, and without the hassle of a complete dev environment. I think it has a lot of potential, though as said, I don't follow the choice of lisp.I'm not familiar with lisp scripting and I'm not planning to learn it
I prefer Lishui controllers, they are of much better quality than this Flipsky stuff. I only had the tinkering ambition to get the torque sensor and the display on the VESC working. An implementation in the VESC tool to make the sensor and display selectable as an option for any dumb user, did not generate any response in the VESC community, I have already made several attempts on Discord.
Using lisp script will remain a solution for freaks.
If someone would develop the ESC firmware and the VESC Tool, to work generally on all hardware, then B. Vedder won't reject a pull request, I guess.
For the ESC firmware it would be quite easy, as the functions are implemented already, you only would have to move the source files to a common folder, not to the hardware definition. But the VESC Tool source code is just a mess for me. I won't waste my time, even trying to setup the IDE for it...feel free to do so
I tried to change the firmware for myself, but errors appeared during compilation. Apparently, I didn't understand something somewhere)No and if it does you'll get weird readings because spintend used different hardware. Also you'll probably want phase filtering. You should recompile the firmware with the correct HW settings from here; I get mine next week and will be able to tell you more by than.