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 / *47518 (-5)
  Re: NXC: turning on the light
 
(...) Well... my messages were published about 10 hours after posting... :-( Philo (18 years ago, 16-Apr-08, to lugnet.robotics)
 
  Re: NXC: turning on the light
 
(...) 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 (...) (18 years ago, 15-Apr-08, to lugnet.robotics)
 
  Re: NXC: turning on the light
 
We successfully tried the following: task light() { OnFwd(OUT_A, 100); } It works like a motor =) OnRev works as well. We haven't yet tried the other idea. (18 years ago, 15-Apr-08, to lugnet.robotics)
 
  Re: NXC: turning on the light
 
(...) Hi, Have you tried to connect the adapter cable in the output port and put the lamp on it? Use this program to test: task main() { OnFwd(OUT_A, 100); Wait(5000); Off(OUT_A); } This program assumes that you connected the cable in output A. (...) (18 years ago, 15-Apr-08, to lugnet.robotics)
 
  Re: NXC: turning on the light
 
(...) 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 (...) (18 years ago, 15-Apr-08, to lugnet.robotics)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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