|
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!
|