Sensor detection using PC API

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

Moderators: imaqine, 99jonathan, roger

New User
Posts: 1
Joined: Mon Feb 15, 2010 8:50 am

Sensor detection using PC API

Postby BCBGleJOS » Mon Feb 15, 2010 9:02 am

Hi all,

We want to make an API to create graphical components for each motors and sensors.
We wanted to ask if it was possible to detect the type of a sensor plugged in a specific port using PC API?

Thank you.

User avatar
leJOS Team Member
Posts: 5969
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby gloomyandy » Mon Feb 15, 2010 10:15 am

In general no it is not possible to detect the type of sensor attached to a sensor port. You may want to see this thread which covers similar issues (though not for leJOS the issues are pretty much the same):
Note that some of the techniques described in the above will probably need code on the NXT...


Return to “NXJ Hardware”

Who is online

Users browsing this forum: No registered users and 4 guests