Thank you for helping me. I guess buying these controllers from Aliexpress is like russian roulette. You hit or you miss.

Thank you for helping me. I guess buying these controllers from Aliexpress is like russian roulette. You hit or you miss.
stancecoke wrote: ↑Jan 28 2020 7:43amhave you checked the voltage of the brake-signal wire? It has to have 5V (pullup from processor) otherwise the processor stops during booting.
regards
stancecoke
OK, you don't use the latest version of the java configurator from github?!
No. But now I think I should update.stancecoke wrote: ↑Jan 28 2020 8:32amOK, you don't use the latest version of the java configurator from github?!
Yes, there is;stancecoke wrote: ↑Jan 28 2020 9:34amhave you checked the log in the cmd window while compiling and flashing? Is there any error?
regards
stancecoke
OK, but this should be no problem, the log looks fine.
It connects and sends numbers:stancecoke wrote: ↑Jan 28 2020 10:08amOK, but this should be no problem, the log looks fine.
Have you tested the Diagnostics mode? Does the controller send any information in this mode? Use e.g. Blueterm for logging.
regards
stancecoke
Code: Select all
printf("%u,%u, %u, %u, %u, %u\r\n", ui16_control_state, ui16_setpoint, ui16_motor_speed_erps, ui16_BatteryCurrent, ui16_sum_torque, ui16_momentary_throttle);
Like this? (line 193)stancecoke wrote: ↑Jan 28 2020 12:14pm
OK, that looks like normal operation.
Code: Select all
printf("%u,%u, %u, %u, %u, %u\r\n", ui16_control_state, ui16_setpoint, ui16_motor_speed_erps, ui16_BatteryCurrent, ui16_sum_torque, ui16_momentary_throttle);
You can put in (uint16_t) uint32_current_target instead of ui16_sum_torque (line 193 of the main.c), to see if the controller gets the command to produce power.
Code: Select all
printf("%u,%u, %u, %u, %u, %u\r\n", ui16_control_state, ui16_setpoint, ui16_motor_speed_erps, ui16_BatteryCurrent, (uint16_t) uint32_current_target, ui16_momentary_throttle);
Oh, the throttle wasn't connected. Only the bluetooth module and battery were. I plug everything to the controller and try again with this main.c line edit.Are you sure, that you plugged the throttle to the right connector? The throttle singal line should have 0V if unconnected, and the adc shows 0 for the throttle channel (last number)...
Very good! So nothing's wrong with the controller
Sequence is ok. So I just have to try different motor specific angle parameters and see what works?stancecoke wrote: ↑Jan 28 2020 2:06pmIf the sequence is OK, you have to find the right motor specific angle.
Yes, try to add/substract 64 to/from your recent value (64 is 90 degree as 256 is 360 degree)
stancecoke wrote: ↑Jan 28 2020 2:40pmYes, try to add/substract 64 to/from your recent value (64 is 90 degree as 256 is 360 degree)
Or just increase/decrease in steps of 15 and check what happens...
Make sure, that you use the latest BlueOSEC-version with the latest controller firmware version!
Yes, I am. My hub motor shows wrong speed. I cannot drive without offroad because the motor starts pulsating power as if when limiting speed. It shows Something like 248km/h with offroad. Also shuts the offroad mode back to normal when the load gets too much. Even though set to 10A blueosevc only shows 8.2A max when resisting the wheel with hand. Very low torgue before motor starts "jittering". Maybe my speed hall sensor is wrong type or some settings are wrong. I set gear ratio 10 because I counted 20 magnets at the hub. Is this correct? Also how does high speed motors operate? Could this be high speed motor (unknown chinese front hub motor with a 36v250w label)? My limits are 80km/h and no pas connected.stancecoke wrote: ↑Jan 29 2020 2:37amMake sure, that you use the latest BlueOSEC-version with the latest controller firmware version!
https://github.com/Xnyle/bluosec-apk
regards
stancecoke
For a direct drive it is OK, if it's a geared motor, you have to multiply the 10 with the mecanical gear ratio.
Ok, so as it seems I have 21 teeth on the drive gear and 36 teeth on each driven gears. Their ratio is 36/21=1.7. And so multiplying that with the count of the aforementioned pole pairs is 10 x 1.7= 17. Is that the right way to calculate it?stancecoke wrote: ↑Feb 04 2020 2:59amFor a direct drive it is OK, if it's a geared motor, you have to multiply the 10 with the mecanical gear ratio.
regards
stancecoke
no, I guess, you have a planetary gear. So the number of teeth of the planet gears is irrelevant, important is the ratio from the sun gear to the ring gear.