|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Programming Bulletin 873M Ultrasonic Analog Sensor
Hey guys. We can't find any libraries or information on programming the Rockwell Automation Ultrasonic and Color mark sensor that was available through first choice.
(http://ab.rockwellautomation.com/Sen...sonic-Sensors). Does anyone know anything? Thanks! Team 6560 |
|
#2
|
||||
|
||||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Your link doesn't work.
Are you talking about one or both of these sensors? Ultrasonic Proximity Sensor: http://firstchoicebyandymark.com/fc17-141 Photoelectric Sensor: http://firstchoicebyandymark.com/fc17-143 These are the two Rockwell Automation sensors on FIRST Choice Last edited by arichman1257 : 20-01-2017 at 23:03. |
|
#3
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Yes! sorry about that. Your links are correct. Do you know how to program it?
|
|
#4
|
||||
|
||||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Unfortunately I do not. We are getting the ultra sonic ones from FC I'm pretty sure. Once we figure it out I'll post something here. From what I've read about these they both have analog outputs so they will both connect to the analog in pins on the roboRIO. Presumably you can declare them in the code like any other analog input device.
In the mean time I'm also hoping someone posts on here what they've found. |
|
#5
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Ok thanks
|
|
#6
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
I'm a little surprised that anything Rockwell doesn't have a 300 page manual associated with it...
Anyhow, if you click the ultrasonic sensor link on AndyMark's website, you'll be taken to the sensor page: http://www.ab.com/en/epub/catalogs/1...Selection.html Which your sensor shows: Analog voltage 15…30V DC 0…10V DC 873M-D18AV300-D4 Need to give it 15-30VDC, and the output will be analog, from 0-10V DC. Since the roborio's analog in looks like it only supports 0-5V, you'll need to attenuate the voltage (figure out a way to safely scale the 0-10V to 0-5V) otherwise you'll risk frying the analog in ports. Let me know if any of that makes sense, or if you need help with the circuit. |
|
#7
|
||||
|
||||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Quote:
Here's an article: https://learn.sparkfun.com/tutorials/voltage-dividers Last edited by arichman1257 : 21-01-2017 at 00:01. |
|
#8
|
||||
|
||||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
We tried a voltage divider yesterday and was not able to get it to work. We only tried some resistors we had on hand... 4.7kOhm.
Our intent was to place two resistors in series, between the sensor signal, and ground, then wire the roborio signal from the common point between the resistors and ground. All resistors we found when wired between the sensor output and ground the sensor went into an error state, and flashed red. Was going to post our experiences today, but saw this thread. Please let me know if anyone else has success with a simple voltage divider, and what resistor values worked, pretty please. |
|
#9
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Quote:
On the introduction page: http://www.ab.com/en/epub/catalogs/1...roduction.html The red LED only flashes in teach mode, otherwise it is off. What were you doing with the white wire? |
|
#10
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
We are using the 12v, 2 amp output on the VRM and a step up converter to amplify the voltage to 15v to power the ultrasonic sensor. We are yet to test it but we will reply with the results.
|
|
#11
|
|||
|
|||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Now we have to figure out how to decrease the output voltage of the sensor so the RoboRio can process it.
|
|
#12
|
||||
|
||||
|
Re: Programming Bulletin 873M Ultrasonic Analog Sensor
Quote:
Will test again on Monday and Post results, and what values of resistors we used for divider. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|