Go to Post NEMO is a virtual organization with a virtual headquarters and virtual bank account. - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2010, 02:34
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
I2C for NXT sensors

I've been told that the I2C on the Digital Sidecar is compatible with the NXT sensors (or at least the connector is).
Today I tried it with the Ultrasonic Sensor. I made a For loop to try every one of the 256 device addresses, and none of them worked.

I realize that the NXT I2C is slightly different from standard I2C, but I can't even open a reference?

How is the NXT I2C meant to work?
__________________
-- Marshal Horn
  #2   Spotlight this post!  
Unread 18-01-2010, 03:13
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: I2C for NXT sensors

I don't have any experiance using the I2C on the robot, but you may want to start by reading the code for the HiTechnic Compass.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 18-01-2010, 09:35
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: I2C for NXT sensors

Last year, (team 809) got a HiTechnic Compass working over I2C using the built-in code (if I remember, we had to modify it a bit, but the general connection premise is there.)

Jacob

Edit: W00T post 1234!!!
  #4   Spotlight this post!  
Unread 18-01-2010, 17:23
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: I2C for NXT sensors

I looked at a bunch of the hitechnic code, and the all seem to use the same template.
I still haven't managed to get a single reply from it.
When I'm reading data from a device, I write to it and read from it, but this is all done in the "I2C read" VI, correct?
What is the "Data sent high"?
__________________
-- Marshal Horn
  #5   Spotlight this post!  
Unread 20-01-2010, 01:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: I2C for NXT sensors

The ultrasonic sensor that Lego sells is not actually I2C compatible. It will not work with the Digital Sidecar. All HiTechnic sensors that have been tested have worked with the Digital Sidecar.
  #6   Spotlight this post!  
Unread 24-02-2010, 09:29
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: I2C for NXT sensors

Quote:
Originally Posted by jhersh View Post
The ultrasonic sensor that Lego sells is not actually I2C compatible. It will not work with the Digital Sidecar. All HiTechnic sensors that have been tested have worked with the Digital Sidecar.
... ok, the Lego ultrasonic may not be I2C compatible ... what about the other ones? Are any of the Lego NXT sensors I2C compatible? I'm primarily curious about the Light/Color sensor.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
  #7   Spotlight this post!  
Unread 24-02-2010, 10:18
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: I2C for NXT sensors

The light sensor, sound sensor, and touch sensor are all analog.
(however, the touch sensor has only two states: on (4.3v) and off (0v))

If you would like I2C compatible sensors, hitechnic.com has a wide selection. (They even have LabVIEW code that you could convert to work with the cRIO)
__________________
-- Marshal Horn
  #8   Spotlight this post!  
Unread 24-02-2010, 10:51
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: I2C for NXT sensors

I've looked at the Hitechnic website ... nice stuff in there. I just thought I'd ask since I'm in possession of an NXT kit, and would have to order one from Hitechnic.

Are the Analog specs available for the NXT sensors?

When I've used the color sensor on my Lego kit, the sensor was always within an inch of the ground. I wonder how it'd perform if it was more like 4-5" high ...
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
  #9   Spotlight this post!  
Unread 24-02-2010, 11:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: I2C for NXT sensors

Quote:
Originally Posted by Ziaholic View Post
When I've used the color sensor on my Lego kit, the sensor was always within an inch of the ground. I wonder how it'd perform if it was more like 4-5" high ...
I have had much more experience with the RCX light sensors and their weaker LED, but my guess is that it will become much more sensitive to changes in ambient lighting conditions as you move it off the ground.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #10   Spotlight this post!  
Unread 24-02-2010, 22:24
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: I2C for NXT sensors

Try looking in the NXT hardware developer kit. (it's a PDF)
I was going to give you a link, but I couldn't find it. I thought it was somewhere on the LEGO site.
Here's a pdf-javascript version hosted on another site:
http://www.docstoc.com/docs/20929335...-Developer-Kit
__________________
-- Marshal Horn
  #11   Spotlight this post!  
Unread 25-02-2010, 04:14
janey9 janey9 is offline
Junior Member
no team
 
Join Date: Feb 2010
Location: usa
Posts: 1
janey9 is an unknown quantity at this point
Re: I2C for NXT sensors

The light sensor, sound sensor, and touch sensor are all analog.
(however, the touch sensor has only two states: on (4.3v) and off (0v))

If you would like I2C compatible sensors, hitechnic.com has a wide selection. (They even have LabVIEW code that you could convert to work with the cRIO)
  #12   Spotlight this post!  
Unread 25-02-2010, 23:02
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: I2C for NXT sensors

If you have the LabVIEW toolkit for NXT, it shouldn't be hard to make a data logging application.
I think the voltage out from the light sensor is directly proportional to the intensity of light in, but I wouldn't count on it. (I don't even know whether that's on a logarithmic scale or not) I do know that the value back from the "light sensor" VI is directly proportional to the voltage in.
Your best option really would be to make a jig and do repeatable tests.
(If you want to do some advanced stuff, you could even use the Direct Control VIs)
__________________
-- Marshal Horn
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
i2c output virtuald Programming 16 18-01-2009 19:20
LabVIEW with NXT sensors gabrielse National Instruments LabVIEW and Data Acquisition 13 05-01-2009 02:02
special NXT Licensing for FLL? Joohoo Lego Mindstorm Discussion 0 07-08-2008 19:55
I2C tutorials John Gutmann Electrical 3 30-07-2005 10:44
I2C? John Gutmann Electrical 3 19-07-2005 22:52


All times are GMT -5. The time now is 21:29.

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