Help for making arduino controlled radar

Please help me. I am trying to make an arduino controlled radar using HCSR04 ultrasonic sensor and processing software. However, the sensor always says that object distance is zero. Please help.

Radar2_Arduino.ino (2.36 KB)

Please post your code, in code tags.

Please stop calling a sonic device “radar”

Sonar.

Whatever happened to AWOL? :astonished:

Paul__B:
Whatever happened to AWOL? :astonished:

S/he resigned

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile:

Hi,
Have you written your code in stages?
Have you got code that JUST uses the ultrasonic sensor, to prove the it works?

If not, write some code that JUST uses the ultrasonic.

Have you looked at NewPing library for doing the ultrasonic work?

https://playground.arduino.cc/Code/NewPing/

It includes example code.

Thanks.. Tom... :slight_smile: