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”


Whatever happened to AWOL? :astonished:

Whatever happened to AWOL? :astonished:

S/he resigned

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.,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:

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?

It includes example code.

Thanks.. Tom... :slight_smile: