I’ve assembled my new mbot2 and tried building the obstacle avoidance program in this tutorial, but when I run the program the bot just runs forward and crashes into whatever’s in front of it.
Doing some debugging by displaying the ultrasonic distance on the screen shows that it’s always 0.0.
The LEDs around the ultrasonic sensors and on the line sensor aren’t lit. From clicking around it sounds like that means that they’re not connected correctly. Checking that they were wired up right, I realised that there’s a difference between the build animations in the makeblock app and the diagrams in the quick-start booklet.
The booklet has the connectors going from:
mbot2 shield mbuild port -> right port of ultrasonic sensor
left port of ultrasonic sensor -> left port of line sensor
The build animations in the makeblock app show the connectors going from:
mbuild port -> left port of line sensor
right port of line sensor -> left port of ultrasonic sensor
I’ve tried both, the leds haven’t lit up in either configuration. Can anyone tell me which is right? Could either one work?
The app says that the cyperpi firmware is up to date. Is there anything else I can try?
Thanks!