View Single Post
  #6   Spotlight this post!  
Unread 01-02-2016, 13:35
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364