sensors

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

sensors

Postby nat1 » Tue Oct 09, 2007 12:39 am

hi,

I'm looking at getting some vernier sensors but I'm not shure If LeJOS will work with them do they?
Thanks!

Nat
nat1
Novice
 
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a

Postby lawrie » Fri Oct 12, 2007 7:24 pm

I don't think anyone has tried them. I assume the NXT Sensor adapter that is needed, is driven by I2C. A Java class would need to be written for the adapter, and possibly for each sensor. The current I2C restrictions mike cause us problems.
lawrie
leJOS Team Member
 
Posts: 934
Joined: Mon Feb 05, 2007 1:27 pm

Postby nat1 » Sat Oct 13, 2007 8:26 pm

hi

thats great do you think you coulddo that beacuse that would make a ton of new sensors avabile.
Thanks!

Nat
nat1
Novice
 
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a

Postby bbagnall » Sat Oct 20, 2007 5:50 pm

Hi Nat,

Just to expand on what Lawrie said, if these are I2C sensors you are talking about you would need to extend the I2C class and add some code to get the readings you are after. It's very simple to do, and you can see some examples in our UltrasonicSensor and ColorSensor code.

Right now we don't have a facility in leJOS NXJ to write to I2C sensors (we can just read data). Soon we should have read ability too, then it will open up the functionality of some more sensors.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 4 guests

more stuff