Go to Post However, mentoring isn't for you. It's for the others. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2015, 16:20
TylerStaudigel's Avatar
TylerStaudigel TylerStaudigel is offline
Registered User
FRC #0144 (R.O.C.K)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2014
Location: United States
Posts: 39
TylerStaudigel is an unknown quantity at this point
Devantech SRF08 device adress issue?

Our team is attempting to use a Devantech SRF08 ultrasonic sensor for the first time. We are using the default example code and receiving the following errors in the dashboard, ERROR -44095 occurred at The I2C sensor identification string did not match. The expected sensor is not at the address and bus specified. The sensor was expected to return "
" but instead returned " "
WPI_I2CVerifyString.vi>>WPI_SonarSRF08_I2C_Open.vi >>Devantech SRF08 Sonar.vi>>Robot Main.vi
FRC: Invalid I2C sensor ID.
I have triple checked and had someone else check that my wiring was correct. Can someone explain to me what the problem is as well as possible solutions. And as always thanks for the help.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 21:17
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?

What language are you using? Which I2C bus (On-Board or MXP)? If LabVIEW, try running the I2C ENUM vi, which will discover all the devices by address on the bus. This way you can confirm that you're using the correct address (which is usually specified in hex), and that it's wired correctly.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 23:14
TylerStaudigel's Avatar
TylerStaudigel TylerStaudigel is offline
Registered User
FRC #0144 (R.O.C.K)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2014
Location: United States
Posts: 39
TylerStaudigel is an unknown quantity at this point
Re: Devantech SRF08 device adress issue?

Quote:
Originally Posted by Richard100 View Post
What language are you using? Which I2C bus (On-Board or MXP)? If LabVIEW, try running the I2C ENUM vi, which will discover all the devices by address on the bus. This way you can confirm that you're using the correct address (which is usually specified in hex), and that it's wired correctly.
I am using labview and the daventech is plugged into the i2c port in the roborio. I'll try and run the vi you suggest Monday when I can get back to the lab. I noticed that on the device data sheet the sensor was listed as having a hex address but when you call it out in labview it Eames a device number (ex dev0). What's up with that?
Reply With Quote
  #4   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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi