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 / 25991
25990  |  25992
Subject: 
Re: Ultrasonic sensor interactions
Newsgroups: 
lugnet.robotics
Date: 
Sun, 21 May 2006 18:15:49 GMT
Viewed: 
7272 times
  
Hello Brian,

>    Specificly, I can not find a way to turn off the US sensor from the
> LEGO-provided SW environment. There may very well be some functionality at a
> lower level I don't have access to (at the moment), or LEGO themselves may do
> something about this (after all, for FLL it will be an issue).

That's easy to do in NBC, and not hard with NXT-G: to shut off the US sensor,
just "use" another sensor type on the same port. Here is a sample program that
switches the US sensor on/off with NXT enter button.
http://www.brickshelf.com/gallery/Philo/Misc/test_stop_usd.png


> > If the sensor actually pings 10 times a second...
> 
>    I've not been able to exactly measure how fast the US sensor pings, but from
> simply (trying!) to count the barely audiable pings it seems around 10/second.
> But another interesting fact comes up when I do that - I can hear variation in
> the ping rate.

At low level sample rate can be changed - and even a single shot mode is
available - but presently NXT-G doesn't give access to these features

Philo



Message has 2 Replies:
  Re: Ultrasonic sensor interactions
 
(...) I'm not positive of that. If the US sensor is plugged in to a powered NXT, I can detect a clicking from it - I presume it's on. Regardless of what sensor I define the port as, this clicking continues. This is what I was basing my "can't turn (...) (20 years ago, 21-May-06, to lugnet.robotics)
  Re: Ultrasonic sensor interactions
 
(...) ; us_off.nbc ; ---...--- variable declarations ---...--- dseg segment ;------- definitions ------- TCommLSWrite struct Result sbyte Port byte Buffer byte[] ReturnLen byte TCommLSWrite ends ;------- declarations ------- thePort byte 0 // port 1 (...) (20 years ago, 22-May-06, to lugnet.robotics)

Message is in Reply To:
  Re: Ultrasonic sensor interactions
 
(...) I was the one that mentioned that I couldn't find a way from the SW I have to turn the US sensor off. That said, I don't think it's time yet to worry about intractable problems: A hundred of us or so have been playing with this stuff for a (...) (20 years ago, 21-May-06, to lugnet.robotics)

27 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
    

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