View Single Post
  #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: 74
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