|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Parallax and Maxbotix ultrasonic sensors
Does anyone know if there are device drivers for the Parallax Ping))) and the Maxbotix EZx written for WPIlib? I've looked at the SONAR driver and Qbranch's Ping))) code, but it's based off the default IFI code, and I have no idea any of it works.
We're using a makefile with mcc18 under Wine. |
|
#2
|
|||
|
|||
|
Re: Parallax and Maxbotix ultrasonic sensors
I was just reading the spec sheet for the Maxbotix EZ1 sensor. It looks like one of it's outputs is analog. So you should be able to connect it directly to an analog input and read range values. The datasheet lists the output at about 9.8mV/inch, so with some simple scaling you could convert the 0-1023 analog input value directly to inches. It also looks like if you use the pulse output it may be directly compatible with the existing driver, but I haven't tested it.
The sensor looks really good - I'm going to order one to play with. More news as it happens. The Parallax sensor uses timing much like the supported SRF04 (or Vex) sensor, the problem is it does the trigger (digital output) and echo (interrupt) on the same pin. The driver would have to be modified slightly to flip the pin from an output to an input to make it work. |
|
#3
|
||||
|
||||
|
Re: Parallax and Maxbotix ultrasonic sensors
We used the Maxbotics EZ-1 last season using analog with good results.
The formula we used: Mv =( (adc * 5000) / 1024 ) Inches = Mv / 10 Gave use the distance in inches for the version that used 10mV per inch. It was changed from 10mV to 9.8mV So in your case you might want to try: Mv =( (adc * 5000) / 1024 ) Inches = Mv * 10 / 98 |
|
#4
|
|||
|
|||
|
Re: Parallax and Maxbotix ultrasonic sensors
Thanks for the tips regarding the Maxbotix EZ sensors (we'll be using the EZ0).
We actually got the Parallax Ping))) working with the built-in WPIlib functions. The only modification was to convert the two ends of a PWM Y-connector to female so we could plug them into two digital in/outs. Worked like a charm! ![]() |
|
#5
|
|||
|
|||
|
Re: Parallax and Maxbotix ultrasonic sensors
Quote:
It shouldn't make much of a difference, but that sort of thing bothers me. |
|
#6
|
|||
|
|||
|
Re: Parallax and Maxbotix ultrasonic sensors
We just divide the analog output by 2 to get the reading in inches.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ultrasonic range sensors for Vex Robot | OneCoolDude | Programming | 1 | 01-12-2007 09:22 |
| can we use ultrasonic sensors? | GMKlenklen | Electrical | 20 | 15-01-2007 14:34 |
| Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program | EHaskins | Programming | 8 | 22-05-2006 12:08 |
| Programming the parallax PING))) Ultrasonic Sensor | edman | Programming | 3 | 18-02-2006 23:37 |
| Programming Parallax Ultrasonic Rangefinder | edman | Programming | 2 | 17-02-2006 08:35 |