wayneandlayne / BricktronicsUltrasonic

Bricktronics library for ultrasonic sensor
4 stars 3 forks source link

Get Distance Function #3

Open VapidPythonn opened 6 years ago

VapidPythonn commented 6 years ago

The getDistance() function returns 255 almost all the time with the occasion (unrealistic) other answer.

I am running an Arduino Uno, and the Ultrasonic Sensor works perfectly fine with the Mindstorms NXT.

adamwolf commented 6 years ago

Hi! The most likely thing is that the Ultrasonic sensor isn't getting 7.2-9V. Please check the power supply and the jumpers, per https://www.wayneandlayne.com/bricktronics/sensors/.

If that solves it, awesome! If not, please email support@wayneandlayne.com.