There has to be a better way.
Figured out one way to use the joystick
TinyPirate
#3
This worked, but I’m sad there isn’t a “cleaner” way to do this that I can explain to my kid easily
Correction, the bot constantly turns right - it still is controllable, but either the joystick is sending erroneous entries or I’ve messed up the program, heh.
TinyPirate
#4
Here’s my simple program you can use that makes the mbot wired joystick control the mbot (with colors by my boy).
coms4kids
#5
I worked out how to use the joystick on mBot Ranger. Feel free to adjust for mBot, but the principle is the same. You need to use consecutive embedded if-then statements with the last one setting the motors to ‘0’