↧
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 ArticleAnswer 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 ArticleArduino 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
More Pages to Explore .....