Ultrasonic obstacle code does not work


#1

How do you find mblock or Aduino
Code for ultrasonic obstacle avoidance? The firmware does not work.

My ultrasonic sensor might be bad?


#2

Hi WillysUncle,

Which robot do you use with the Ultrasonic module?
Please “Upgrade Firmware” for the main Board and then try the follow program to test the Ultrasonic module (here the Ultrasonic module is connected to Port 3 on the main Board)

Check if there are different value read from the Panda on the mBlock software. If it keeps saying 400, please try the following two points:

  1. Change the RJ25 cable between the Ultrasonic module and main Board.
  2. Connect the Ultrasonic module to Port 4 instead port 3, then modify the above program to Port 4 and see if there is valid data from Ultrasonic module.

If you use mBot, refer to this instruction to Upgrade Firmware for main board.7. How to Upgrade Firmware for mBot.docx.zip (406.5 KB)


#3

How do I get a replacement ultrasonic sensor? Mine does not work.


#4

Hi WillysUncle,

Please contact tec-support@makeblock.com with details about where & when(the date) you bought the Ultrasonic sensor , and send the receipt for recording.


#5