Osx/bluetooth/ sensor not working?


#1

I have trouble using the sensors through a bluetooth connection.

Using the default factory setting, I checked that the sensors (line follower and ultrasonic sensor) do correctly work.

When using a simple program (for instance this one https://www.dropbox.com/s/aeatd036sr0uqxv/testSensor.sb2?dl=0) with the bluetooth connection, it seems that the line follower sensor always returns the same value (0) both when the blue light is actually on or off.

Other commands, for instance selection of the colour of the LEDs and the speed of the motors, correctly apply as well as the start/stop of the program using the key pressed on the keyboard of the macbook.

Any idea ? What should be the typical values returned by the ultrasonic sensor and the line follower ?

Since I’m having trouble with the upgrade of the firmware, I suspect this may also relate to driver issues.

thanks in advance, ronan


#2

Which version of macOS are you using?


#3

Hi rfablet,

Also, do you use the mBot?
You may disconnect the Bluetooth module and upgrade firmware for mBot first with USB connection.1. How to Upgrade Firmware for mBot.docx.zip (690.6 KB)

After that, plug back in the Bluetooth module and test the following program have a try: