View Single Post
  #3   Spotlight this post!  
Unread 01-02-2015, 00:01
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Devantech SRF08 device adress issue?

Sounds like you're wired to the roboRIO On-Board I2C bus (there's another one within the MXP).

It's sounding like you haven't set the sensor address. The example Front Panel "Device Address" selections (Dev0 - Dev15) correspond to I2C address values. You can view these assignments by opening the Device Address Type Def (right click menu), then selecting Edit Items (right click menu again, from the Type Def's control). One of those values, when expressed in Hexadecimal format, corresponds to your sensor (hopefully).

I'm not familiar with this sensor, but judging from the code design it seems that it is a device that has selectable hex I2C addresses (guessing).

Easiest way might be to run the example at each setting on Device Address.
Reply With Quote