Hi,
My grandson & I have finally tried our new 4TRONIX ULTRASONIC DISTANCE SENSOR BREAKOUT (CE07356) with our BitBot XL & MicroBit. We cannot figure out how to get it working & are starting to wonder if it’s broken. Basically it always seems to think there is something right in front.
Running this program:
forever
show string read sonar as cm
The microbit just displays “1” all the time - whether it is plugges into the BitBot or not. If we read the sonat in usecs, it displays 46.
Do you have the correct Bit Bot model selected in setup? Also, are you using a Micro:bit V1 or V2? Here’s some sample code which I believe should work:
That’s unusual, I’m not sure what’d be causing that issue with the sensor software-side. If you can please reply to the order confirmation email with some pictures of the setup that you have at the moment and a screenshot of the errors in the output you’re getting we’ll do some more troubleshooting with you, and get the appropriate returns and refunds policy sent through for you to get this fixed as soon as possible. Have a great day!
Without checking against a new version of the ultrasonic sensor in your setup it’s hard to tell what’s causing the issues, as the new beta should have resolved the previous bugs that were occurring on the board. I’ll get back to your email now and see what we can do to fix this up