| | 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)
|
| | | | |