Light Sensor doesn't work

Post your NXJ projects, project ideas, etc here!

Moderators: 99jonathan, roger, imaqine

Light Sensor doesn't work

Postby Andrew Mihalyko » Mon Apr 26, 2010 2:21 pm

Hi everybody!!!
I bought a new Nxt, and tried with the lego programming language, and my light sensor worked. But after I changed to leJos, the color sensor died. Every time I try it shows:
100
1023
0
100
And it always give 100 value if I ask for the value with getLightValue.:( I tried with every sensor port, and it doesn't help..:(( So please help me, what's the problem with it???
Thanks
Andrew
Andrew Mihalyko
New User
 
Posts: 1
Joined: Mon Apr 26, 2010 2:07 pm

Postby gloomyandy » Mon Apr 26, 2010 2:31 pm

Have you read this thread...
viewtopic.php?t=1706
If not please read all of the thread, you may need to update some of your leJOS files...

What program are you running to produce those numbers? You can use the leJOS ColorSensorTest sample to try out the sensor....

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


Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff