To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1255
1254  |  1256
Subject: 
Re: light sensor problem?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 24 Jul 2000 00:34:41 GMT
Viewed: 
2211 times
  
On Mon, 24 Jul 2000, Eddie C. Dost wrote:
I've not fixed the scaling factor, because I can't figure why Markus used
these lines to define upper and lower limits for raw readings... I've also
asked for it but I got no reply as usual nowadays...

Please, feel free to change, or investigate these values to fix light
reading...

To achive scaling of light sensor reading from 0..100 the following
theoretical formula should be used:

light = 146 - scaled / 7,

where scaled is the reading of AD_X >> 6.

It doesn't surprise me that someone has already worked this out.

I found this at http://www.plazaearth.com/usr/gasperi/lego.htm, this
page contains a lot of electrical background.

It really, really doesn't surprise me that Michael was the one who worked
it out. If no one thinks it is too big an overhead, I can put it in in an
hour or so when I do a CVS checkin to modify dsound.h.

Luis

P.S. In case anyone cares, the modifications to dsound.h will basically
just be a little patch to allow you to use WHOLE, HALF, etc. to describe
note lengths instead of multiples of 16ths. Just some #defines, but they
make it much easier to transcribe "real" music into legOS-ese.

-----------------------------------------------------------------------

    "Summertime... and the living is easy...
    fish are jumping and the cotton is high...
    So hush, little baby, baby don't you cry."
-Ella

-----------------------------------------------------------------------



Message has 1 Reply:
  dsound
 
Hi Luis, (...) I wonder if it would be interesting to include a small utility I wrote assisted by a friend of mine (Paolo Masetti) to convert MIDI files into LegOs C code: since then all of our robots are equipped with a subroutine generated by this (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: light sensor problem?
 
(...) To achive scaling of light sensor reading from 0..100 the following theoretical formula should be used: light = 146 - scaled / 7, where scaled is the reading of AD_X >> 6. I found this at (URL) this page contains a lot of electrical (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)

26 Messages in This Thread:








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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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