Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Programming Ultrasonic Sensor (http://www.chiefdelphi.com/forums/showthread.php?t=100221)

TheGuyz 14-01-2012 19:15

Programming Ultrasonic Sensor
 
How would you program the ultrasonic sensor in Java. The sensor is an analog sensor I believe, but the class says it takes a digital input.

DonRotolo 14-01-2012 19:21

Re: Programming Ultrasonic Sensor
 
The sensor has three outputs, one of which is analog and one of which is digital (serial, 9600 Baud 8N1).
Or just say it is some other Analog sensor and use it that way.

www.maxbotix.com

TheGuyz 14-01-2012 20:48

Is there a guide or some out there that we can use as a guide to show us how to solder the sensor

theprgramerdude 15-01-2012 02:01

Re: Programming Ultrasonic Sensor
 
The ultrasonic sensor class is meant to be used with a different ultrasonic sensor that is not found in the Kit of Parts.

To use the analog voltage output on the sensor, just created an AnalogChannel object with the given channel, and call getVoltage(). You can then translate that voltage into distance as you want.

As for soldering... There might be one on their website. I know, it's a pain.

carrillo694 15-01-2012 02:12

Re: Programming Ultrasonic Sensor
 
Quote:

Originally Posted by TheGuyz (Post 1105687)
Is there a guide or some out there that we can use as a guide to show us how to solder the sensor

Here is one option as to how you can solder it: http://www.adafruit.com/adablog/wp-c...06/pt-2002.jpg

As for soldering tips -- I prefer to apply the solder to the side opposite the wires. In that picture, you can see they threaded the stranded wire through, then applied the solder in between the board and the wire's insulator. I prefer to apply the solder to the OTHER side of the board, so that there is less chance of me accidentally burning the insulator.

If you do not want to solder it directly to the board, you can always solder two PWM cables to it. In other words, take the PWM cables, put then through the holes, then solder the PWM leads to the board's vias on the other side. From there, you might find the PWM leads on the other side more manageable.

Either way, connect the GND to ground, +5 to the +5 channel on your cRIO's Analog Module, and AN to an analog channel on your analog module.

Bill Tompkins 15-01-2012 04:15

Re: Programming Ultrasonic Sensor
 
The sensors have multiple outputs, analog, digital (pulse width modulated) and serial. There are also other ultrasonics sensors out there.

Call MaxBotixs, there have some excellent support people there. Good to talk with.


All times are GMT -5. The time now is 05:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi