Quantcast
Channel: Arduino Ultra Sonic Sensor always returns 0 - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Rachen for Arduino Ultra Sonic Sensor always returns 0

Try connecting your VCC of the sensor to 3V3 instead of 5V. This might sound odd, but I tried it and it worked well. Also, please make sure that your echo and trig pin match the code.

View Article


Answer by embedded_guy for Arduino Ultra Sonic Sensor always returns 0

The primary issue that I see is that your code doesn't match your wiring diagram. For example, your diagram shows Trig connected to pin 4. The Trig should be the output from your Arduino but you have...

View Article

Image may be NSFW.
Clik here to view.

Arduino Ultra Sonic Sensor always returns 0

I am doing a basic project in Arduino UNO connecting an Ultra Sonic sensor (HC-SR04) which should print in the serial monitor the distance of the closest object but it always print 0. This is my code:...

View Article
Browsing latest articles
Browse All 3 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>