pic.programmer
Advanced Member level 3
I am using Ultrasonics sensor HC-SR04 with Arduino (UNO, Nano, Mega2560) and the NewPing v1.7 Library is only working with Mega2560. For UNO and Nano it is giving 0cm all the time. What is the problem ? I am using Genuine Arduino Boards, I have tested with 4 Ultrasonic Sensors and 2 UNO and 3 Nano boards but all I get is 0cm. If I test it with Mega2560 then it gives correct values.
Can somebody provide the old versions of the NewPing library ?
I had used NewPing library some 2 years back with US-020 Sensor and I was getting exact 700 cm values.
All I can say is Sketch doesn't have problem because it is working fine with Mega2560. Is it a bug of NewPing v1.7 Library ?
Edit:
It worked with UNO R3 and Mega2560 but not working with Nano v3.0.
Can somebody provide the old versions of the NewPing library ?
I had used NewPing library some 2 years back with US-020 Sensor and I was getting exact 700 cm values.
All I can say is Sketch doesn't have problem because it is working fine with Mega2560. Is it a bug of NewPing v1.7 Library ?
Edit:
It worked with UNO R3 and Mega2560 but not working with Nano v3.0.
Attachments
Last edited: