Go to Post You know, I love the fact that FIRST has always got your back. :D - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 27-01-2017, 08:29
Stappy Stappy is offline
Registered User
FRC #5084
 
Join Date: Mar 2014
Location: Corunna
Posts: 27
Stappy is an unknown quantity at this point
HC-SR04 Ultrasonic Distance Sensor wiring and programming

Ok, so here it goes. Stupid question time.

I am trying to find information about utilizing the HC-SR04 ultrasonic distance sensor in a FIRST Robotics FRC situation with the RoboRIO.
Last year our seasoned programmer could not figure out how to use it and wound up giving up. He has since graduated and moved on to college and a computer science future. That was using C++. He told me that the four wire configuration was not compatible with RoboRIO and would have to use an arduino to translate.

This year I have a transfer team member that is up on programming in Java and I once again asked about the HC-SR04 and was told "Oh that is an arduino only sensor". And yet I see articles regarding the "Venerable HC-SR04" sensor but found nothing on how to wire it or program for it.

The sensor seems pretty standard,
VCC: +5VDC
Trig : Trigger (INPUT)
Echo: Echo (OUTPUT)
GND: GND

What is it about this sensor that keeps it from being used with a RoboRIO?
__________________
FridgeBot Inc
Providing robotic appliances since 2014!
Reply With Quote
 


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 04:54.

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