![]() |
Maxbotix not working well with RoboRIO?
Hi,
We are trying to use the Maxbotix 1013 ultrasonic sensor but when we put it on the Rio, the range of values we get is just 233 to 350. On our arduino, we get a range of about 58 to 400ish. We were using the analog inputs on the arduino and on the Rio. All we are doing is analog.input() on the Rio. We are using pin 3 on the maxbotix sensor. Is that the actual range of the sensor? Or am I doing something wrong. Thanks a bunch in advance! |
Re: Maxbotix not working well with RoboRIO?
Post some code?
You can find the actual range limit and the width of the ultrasonic soundwaves when you look at the data sheet for the sensor. |
Re: Maxbotix not working well with RoboRIO?
Quote:
Code:
#in init code |
Re: Maxbotix not working well with RoboRIO?
Quote:
|
Re: Maxbotix not working well with RoboRIO?
Quote:
|
Re: Maxbotix not working well with RoboRIO?
The RoboRIO has a 12-bit ADC, not a 10-bit ADC. The RoboRIO's ADC count value can range from 0 to 4095. You can right shift that value by 2 to get a value in the range from 0 to 1023.
Each count will relate to 5mm of range. So multiply that output by 5mm to get the correct distance. The beam pattern of that ultrasonic sensor is wide. That means that anything near it's cone will cause a reflection. The floor or table counts. |
| All times are GMT -5. The time now is 00:39. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi