To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 11109
11108  |  11110
Subject: 
Re: reading sensor values?
Newsgroups: 
lugnet.robotics
Date: 
Sun, 26 Mar 2000 13:18:49 GMT
Original-From: 
Simon Bogaert <SIMON.BOGAERT@ADVALVASnospam.BE>
Viewed: 
2145 times
  
I want to be able to see the values
that the light sensor puts out when I pass certain colors beneath it.
You can do this by making a very small program.  It can be made in any
language (RCXCode, NQC) that uses the original firmware. (I'm not sure about
the other sets of firmware).
The program only needs to set one of the three sensor inputs to "light".
This way,
it accepts measurements of a light sensor.  Now, upload the program to your
RCX and connect the light sensor to the selected input.
Once this is done, push the "VIEW" button on your RCX until you have a
circonflex accent (^)
under the selected input.  Now pass something under the light sensor, and
you will see the value it returns on the LCD screen of the RCX.  You can
also set the values the sensor returns to raw.

I am planning on writing all my code in NQC if it matters.
You really should.  It's much more flexible than the RCXCode.

Hope this helps...

Simon



Message is in Reply To:
  reading sensor values?
 
I finally installed lego's mindstorm software on my PC. It seems that it won't let me do any programming until I finish the stupid tutorials. Is this true? I try clicking on other menu options, but only the blinking option works. Very aggravating. (...) (24 years ago, 25-Mar-00, to lugnet.robotics)

4 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR