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 / 27430
27429  |  27431
Subject: 
Re: NXC: turning on the light
Newsgroups: 
lugnet.robotics
Date: 
Tue, 15 Apr 2008 14:07:37 GMT
Viewed: 
6938 times
  
In lugnet.robotics, iTOtto <torsten.otto@mac.com> wrote:
Thanks a bunch for the reply! The education set has the lamp, so my students
would like to use it now...
I'll keep you 'posted' about the results...


Philo wasn't able to post here but via email he pointed out that it is best to
use the lamp on an output port rather than a sensor port.

Here's what he had to say:

Since the lamp is a rather power hungry device, it is best to drive it
with an output port.
Use OnFwd(port, pwr) to turn it on (with brightness controlled by pwr
parameter), Off(port) to turn it off.

Though I have not tested, it should also glow dimly when plugged in a
sensor port. As John explained, set sensor type to
SENSOR_TYPE_LIGHT_ACTIVE or SENSOR_TYPE_LOWSPEED_9V to light it,
SENSOR_TYPE_TOUCH will turn it off.

Philo



Message has 1 Reply:
  Re: NXC: turning on the light
 
(...) Well... my messages were published about 10 hours after posting... :-( Philo (17 years ago, 16-Apr-08, to lugnet.robotics)

Message is in Reply To:
  Re: NXC: turning on the light
 
Thanks a bunch for the reply! The education set has the lamp, so my students would like to use it now... I'll keep you 'posted' about the results... Regards, Torsten Otto (...) (17 years ago, 15-Apr-08, to lugnet.robotics)

9 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