View Single Post
  #5   Spotlight this post!  
Unread 27-01-2017, 14:16
Stappy Stappy is offline
Registered User
FRC #5084
 
Join Date: Mar 2014
Location: Corunna
Posts: 27
Stappy is an unknown quantity at this point
Re: HC-SR04 Ultrasonic Distance Sensor wiring and programming

NI RoboRio Manual states:
DIO, PWM, and Relay Lines
The NI roboRIO provides the following DIO lines:
• 3.3 V general-purpose DIO lines on the MXP
• 3.3 V digital lines on the DIO, I2C, and SPI ports
• 5 V digital lines on the PWM and Relay ports.

HC-SR04 Specs State:
VCC = +5VDC
Trig = Trigger input of Sensor
Echo = Echo output of Sensor
GND = GND


Is the variation between 3.3v (roboRIO output) and 5v (sensor requirement) where the problem may lay?



Parameter Min Typ. Max Unit Operating Voltage
4.50 5.0 5.5 V
__________________
FridgeBot Inc
Providing robotic appliances since 2014!
Reply With Quote