Open EmerickH opened 5 years ago
wlecome back @EmerickH ! Areyou using machine protocol or ASCII mode?
Machine protocol, I also tested with the new NodeRed example, same problem...
What debugging capabilities do you have right now?
You can first try if setting PWM works for you. Maybe manually enforce enable=1 and input_timeout_counter=0 in the main? Also see if you can get ASCII commands to turn the wheels.
Sorry for the late reply... I started the robot today, and it's working fine! I've not changed anything, I've not changed anything! Weird but nice!
OK, after playing a little bit with it the problem come back sometimes, I need to restart the hb or wait a little bit for it to listen to my commands. It seems like when the wheels are not turning for ~30s it goes in a "sleep" mode and I need to send it a lot a commands before it "wakes up"
Ok I found something: this is happening when I write the max current limit flash value: even if I send the same value as it is by default, it's crashing... Also speed PID seems to do nothing, even with P=0 the hoveboard is moving!
Can you check if writing the set point by ASCII protocol has the same problems as with machine protocol?
Heyo, I seem to have the same problem. After updating the firmware, communication over machine protocol with usart2 is no longer working, although i receive an answer after using send or requestread from HoverboardAPI. I tried using the ascii protocol but all i get back is strange chars.
Are you using the same baud rate on both sides?
I actually found the problem... One of my jumper wire cables was broken. Btw thanks for the awesome HoverboardAPI :)
Thanks, you're welcome!
Hello everyone, I'm back and I see you made a lot of improvements! I updated today the firmware of my HB but I have a problem: Using
USART2_CONTROLLED
(or your predefined usart2 PIO env) I'm no more able to control speed or posn inc of the robot... The serial is replying correctly to test buffer, hall position request, ... but when I send a speed command nothing happens... Have you got any idea of what's not working? Also, the board is sending some [119,13,1] buffers ("Sensor (Hoverboard mode)" ?), maybe something it is going into hb mode even ifUSART2_CONTROLLED
is used? Thank you!