Go to Post I'm sure FIRST did the math. They always do the math. Just not math humans use. It was probably given to them from NASA from the aliens so we'd quit predicting the divisions before they release it. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2017, 22:53
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 107
FRC Team CC is an unknown quantity at this point
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
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 23:01
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 76
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
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
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner

Last edited by arichman1257 : 20-01-2017 at 23:03.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 23:12
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 107
FRC Team CC is an unknown quantity at this point
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Yes! sorry about that. Your links are correct. Do you know how to program it?
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2017, 23:22
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 76
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
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.
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2017, 23:27
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 107
FRC Team CC is an unknown quantity at this point
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Ok thanks
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2017, 23:54
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,426
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
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.
__________________

Be Healthy. Never Stop Learning. Say It Like It Is. Own It. Like our values? Flexware Innovation is hiring!. We're looking for Senior Automation, Software, and System Engineers. Check us out!
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2017, 23:57
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 76
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Quote:
Originally Posted by efoote868 View Post
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.
You could create a voltage divider using a few resistors.

Here's an article: https://learn.sparkfun.com/tutorials/voltage-dividers
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner

Last edited by arichman1257 : 21-01-2017 at 00:01.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2017, 12:18
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 536
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
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.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2017, 12:50
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,426
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Quote:
Originally Posted by tr6scott View Post
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.
Were you able to read any voltage from the sensor? Do you have a voltmeter to debug the circuit?

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?
__________________

Be Healthy. Never Stop Learning. Say It Like It Is. Own It. Like our values? Flexware Innovation is hiring!. We're looking for Senior Automation, Software, and System Engineers. Check us out!
Reply With Quote
  #10   Spotlight this post!  
Unread 22-01-2017, 12:58
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 107
FRC Team CC is an unknown quantity at this point
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.
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #11   Spotlight this post!  
Unread 22-01-2017, 13:01
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 107
FRC Team CC is an unknown quantity at this point
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.
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2017, 13:40
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 536
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Quote:
Originally Posted by efoote868 View Post
Were you able to read any voltage from the sensor? Do you have a voltmeter to debug the circuit?

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?
We tested it wrong, now that I see the wiring diagram. We thought the white was the common for the analog output. We wired the resistors between white and black, now I see we should have done, black and blue.

Will test again on Monday and Post results, and what values of resistors we used for divider.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2017, 21:24
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,426
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Quote:
Originally Posted by FRC Team CC View Post
Now we have to figure out how to decrease the output voltage of the sensor so the RoboRio can process it.
arichman1257 provided a simple solution:
Quote:
Originally Posted by arichman1257 View Post
You could create a voltage divider using a few resistors.

Here's an article: https://learn.sparkfun.com/tutorials/voltage-dividers
Depending on the location of your roborio and the location of the sensor, you may consider an I2C or SPI analog to digital converter (ADC) chip and creating a custom circuit solution. Analog signals and distances don't mix very well.

Let me know if you need help with this.
__________________

Be Healthy. Never Stop Learning. Say It Like It Is. Own It. Like our values? Flexware Innovation is hiring!. We're looking for Senior Automation, Software, and System Engineers. Check us out!
Reply With Quote
  #14   Spotlight this post!  
Unread 24-01-2017, 07:32
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 536
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

FWIW we tested yesterday with two 10k Ohm resistors wired in series between the black output and the blue 0V reference, and the sensor worked fine. The junction point between the two resistors ranged from 0-5v based on sensor distance, this test was done with a 24vdc power supply and a digital voltmeter, we did not install on bot yet.

Upon a more significant review of the data sheet, there is a small note that the the analog voltage sensors require input voltage of 15v-30v, which makes using this sensor on a robot more problematic, as you don't have easy access to voltages above 12v with the current control system provided.

We will be looking at a different solution to measure distance on the bot this year.
Attached Thumbnails
Click image for larger version

Name:	873M.PNG
Views:	12
Size:	31.1 KB
ID:	21607  
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #15   Spotlight this post!  
Unread 24-01-2017, 08:42
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,426
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming Bulletin 873M Ultrasonic Analog Sensor

Thanks for sharing your results!

This sensor is something I'd expect to find in a factory, wired to a relatively common 24vdc supply, not on a competition robot. It probably retails for way more than anyone would imagine.
__________________

Be Healthy. Never Stop Learning. Say It Like It Is. Own It. Like our values? Flexware Innovation is hiring!. We're looking for Senior Automation, Software, and System Engineers. Check us out!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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