ROBOTC.net forums
http://www.robotc.net/forums/

Port splitting
http://www.robotc.net/forums/viewtopic.php?f=41&t=1414
Page 1 of 1

Author:  andynalley [ Thu Apr 02, 2009 8:39 am ]
Post subject:  Port splitting

Hello all

Im trying to use two colour sensors in the same port. I bought a port splitter (Split-NX) from active-robotics (http://www.active-robots.com/products/m ... t-nx.shtml).

It says that to split a port:

"In your program, accessing the sensor is based on it's I2C address, (each sensor must have unique I2C address). Attach the port splitter to NXT on any port (say port 1).
In your program, use the respective sensor's icon (or API as the case may be), and for the parameters, use the port of the port splitter (port 1 in above example) and I2C address of the attached sensor from which you wish to take a reading."

I have no idea how to change the I2C address of a port and even if I can work out how to do that, how do I then define 2 different colour sensors off 1 port using robotC.

Please help....Andy

Author:  mightor [ Thu Apr 02, 2009 8:49 am ]
Post subject:  Re: Port splitting

Andy,

Which colour sensor are you using? The one from HT?

Regards,
Xander

Author:  andynalley [ Thu Apr 02, 2009 8:53 am ]
Post subject:  Re: Port splitting

Yes it is. Its the HiTechnic (NCO 1038) NXT Colour Sensor.

Author:  mightor [ Thu Apr 02, 2009 8:58 am ]
Post subject:  Re: Port splitting

Andy,

As far as I know, they cannot have their address changed. You could share the connection with an analogue sensor or a home brew sensor that uses a different address.

Regards,
Xander

Author:  andynalley [ Thu Apr 02, 2009 9:05 am ]
Post subject:  Re: Port splitting

Is it possible for a LEGO default analogue light sensor and HT digital color sensor to share a port?

Author:  mightor [ Thu Apr 02, 2009 9:09 am ]
Post subject:  Re: Port splitting

yes it should be. One is analogue and the other is I2C.

Regards,
Xander

Author:  andynalley [ Thu Apr 02, 2009 9:17 am ]
Post subject:  Re: Port splitting

The problem is that on the website it says the split-NX doenst support analogue sensors but it says it does support using a single ultrasonic sensor (which I thought was an analogue sensor). Does this mean that I can or cant use a single analogue light sensor and a single colour sensor through the same port.

Author:  mightor [ Thu Apr 02, 2009 9:20 am ]
Post subject:  Re: Port splitting

It doesn't support multiple analogue sensors. It should support one analogue and up to 2 I2C sensors with different addresses. That is, unless, they didn't wire the analogue signal wire through. I don't know for sure because I don't own one. Try to make it work with a light sensor attached and nothing else. If it works then you know that it's wired through :)

Regards,
Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/