SPLIT-Nx

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

SPLIT-Nx

Postby ChrisB01 » Fri Mar 21, 2008 5:19 pm

Has anyone used the port splitter sold by mindsensors, with there nxt using lejos. I am considering buying one to expand what i can do with one nxt but am not sure if they work. Can anyone help?

Mindsensors Site
ChrisB01
Advanced Member
 
Posts: 189
Joined: Sat Mar 15, 2008 12:19 pm
Location: UK

Postby lawrie » Mon Mar 24, 2008 12:28 am

i have one, but have not used it much. What sensors do you want to use with it? Each I2C sensor will need a separate address. It should be possible to change addresses from the defaults with leJOS but we have not added methods to make this easy.
lawrie
leJOS Team Member
 
Posts: 922
Joined: Mon Feb 05, 2007 1:27 pm

Postby bbagnall » Mon Mar 24, 2008 12:49 am

I just got one in the mail a few days ago but haven't played with it much yet. As Lawrie mentioned, I think you need to set each sensor with a unique address on the I2C bus. I'll look into this shortly.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Thanks

Postby ChrisB01 » Mon Mar 24, 2008 5:20 pm

Thanks guys I think by looking at the mindsensors site the only Lego sensor supported in the ultrasonic sensor but I have a compass sensor and irSeeker that should work with it to as I think there digital. Thanks again for looking at this for me.

Chris
ChrisB01
Advanced Member
 
Posts: 189
Joined: Sat Mar 15, 2008 12:19 pm
Location: UK

Postby lawrie » Mon Mar 24, 2008 11:42 pm

Mindsensors sensors let you change the address by sending the command
0xA0, 0xAA, 0xA5, <new I2C address>
to the sensor. This can be done the sendData method of I2Sensor or any sensor class that inherits from this. The new address can then be specified by calling setAddress on any I2C sensor class. (The address used on setAddress is <new I2C address> divided by 2).

Are you using the Mindsensors or the HiTechnic compass sensor? I am not sure if you can use the same command to change the address with HiTechnic sensors and the Lego ultrasonic sensor.
lawrie
leJOS Team Member
 
Posts: 922
Joined: Mon Feb 05, 2007 1:27 pm

Postby ChrisB01 » Tue Mar 25, 2008 6:44 pm

I have a mindsensors and hi-technic compass sensor. All the logo sensors and an irSeeker also made by hi-technic. I don’t need to do this urgently I was just interested if lejos supported using the port splitter and how you would do this.
ChrisB01
Advanced Member
 
Posts: 189
Joined: Sat Mar 15, 2008 12:19 pm
Location: UK


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff