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 / 25981
    Re: Ultrasonic sensor interactions —steve
   (...) A better alternative would be to develop protocols in which the NXT controllers use their communications to tell each other what they are about to do. If you can sent a message that says "I'm about to do an ultrasound 'ping' - so you'd better (...) (19 years ago, 20-May-06, to lugnet.robotics)
   
        Re: Ultrasonic sensor interactions —David Schilling
   (...) This is a great idea except for one very important item: there is no such thing as a broadcast message (ie: a message sent to everyone) using Bluetooth. So for any such system to work, each robot has to know about every other robot, and send (...) (19 years ago, 21-May-06, to lugnet.robotics)
   
        Re: Ultrasonic sensor interactions —Arthur Clarke
     The problem here is the management of a single shared resource, i.e. the air through which the ultrasonic signals travel. The lack of a Bluetooth broadcast mechanism makes the implementation of a conventional resource locking system difficult, but (...) (19 years ago, 21-May-06, to lugnet.robotics, FTX)
    
         Re: Ultrasonic sensor interactions —steve
     (...) The 'Aloha' protocol was the predecessor of this. (...) Someone earlier told us that the thing runs all the time and can't even be shut off. That being the case, I think we're pretty much doomed. (...) Yes - but the relatively low frequency at (...) (19 years ago, 21-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —John Barnes
      (...) The device operates at 40kHz, the transmit and receive piezo devices are only resonant at that frequency. Even though the measurement period is short (time from transmit to time to receive) it is necessary to wait quite a while for the sound (...) (19 years ago, 21-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —steve
      (...) Wow! That's a lot lower than I'd have expected - at that frequency there is a good risk of harmonics from normal sound interfering with it. (...) Right - 350 meters per second is pretty slow by computer standards. (...) (Not to mention things (...) (19 years ago, 21-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —Brian Davis
     (...) 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 (...) (19 years ago, 21-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —Mr S
      I've heard of one possible answer, though don't know if it is feasible on the NXT. If the robot software sends timed pings, regardless of time of flight, they will be returned with the same delay between them. So if you send two pings 73 msecs (...) (19 years ago, 21-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —Philippe Hurbain
     Hello Brian, (...) 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. (URL) If the sensor (...) (19 years ago, 21-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —Brian Davis
      (...) 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 (...) (19 years ago, 21-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —steve
       (...) Within the same room - is unlikely to be a problem - but think about two Sumo bots trying to find each other or two robots doing some kind of cooperative tasks in a contest or something...not likely to be so easy I think. (19 years ago, 22-May-06, to lugnet.robotics)
      
           Re: Ultrasonic sensor interactions —Bruce Boyes
       (...) Agreed... perhaps surprisingly, based on dozens of hours of testing, with 1) sumo bots with a ring of sonars on all sides 2) Lego bots with two sonars on the front, we found no discernable problem. This is an anecdotal report, but the (...) (19 years ago, 22-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —Philippe Hurbain
      (...) Sorry Brian, you are right! my ageing ear was not able to get the much weaker "ping" at first. My interpretation (to be confimed) is that the US sensor goes on working even if not configured, but some sensor modes don't provide the 9V supply (...) (19 years ago, 22-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —Brian Davis
       (...) I'm not sure yet; I admit to not being even remotely a "hardware guy", which is why I keep doing all this SW testing :-). (...) Another odd feature is that the ping frequency seems to change with both what you define the sensor as well as (...) (19 years ago, 22-May-06, to lugnet.robotics)
      
           Re: Ultrasonic sensor interactions —Brian Davis
       (...) OK, and since I'm one of the few... I sent up a stationary NXT with an US sensor, and a "target" NXT with an US sensor as well, pointed directly at each other. Furthermore I had the "target" move back and forth to vary the range slightly. I (...) (19 years ago, 22-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —Philippe Hurbain
       (...) OK, verification done, the voltage is correctly switched to 5V with the touch sensor. I probably programmed a wrong port# ! But clearly the 5V is enough to power the US transducers (probably with reduced range) Philo (19 years ago, 22-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —John Hansen
      (...) I can confirm that the 0x2, 0x41, 0x0 "off" command does, indeed, turn off the clicking sound that you can hear coming from the US sensor. I can also confirm that the 0x2, 0x40, 0xNN "set measurement interval" command does set the measurement (...) (19 years ago, 22-May-06, to lugnet.robotics)
     
          Re: Ultrasonic sensor interactions —Philippe Hurbain
      Hello John, (...) I have played with this command, it seems that only the low nibble of paramater is useful. The interval range goes from 12.5ms for 0 to 3s for 0xf. Interval seems to be roughly proportional to the square of the parameter. I have (...) (19 years ago, 24-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —John Hansen
     (...) ; 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 (...) (19 years ago, 22-May-06, to lugnet.robotics)
    
         Re: Ultrasonic sensor interactions —Brian Davis
     (...) Excellent! Thanks for the update, and it's great to know this is availible within the HW. I wish NXT-G had access, but... well, either it eventually will, or LEGO has specificly included goodies in the FW just for 3rd party environments. (...) (19 years ago, 22-May-06, to lugnet.robotics)
   
        Re: Ultrasonic sensor interactions —Tim Byrne
   (...) How about a single computer that was Bluetooth accessable. The server could act as a "lockable" resource that a NXT could acquire prior to doing the US detection. Then the NXTs don't need to know about each other, just the main server (and it (...) (19 years ago, 21-May-06, to lugnet.robotics)
 

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