PRO
Sproket
USA
Asked
— Edited
Hello everyone,
Im using the HC-SR04 , works well but when using the Radar it detects then bot move back and just keeps doing circles. I tried all different settings. The sensor is fixed not on a servo. What do you recommend?
Thank you all
Related Hardware (view all EZB hardware)
EZ-B Iotiny
by EZ-Robot
Control IoTiny with Synthiam ARC: 100MHz Cortex‑M4 Wi‑Fi IoT/robot controller-camera, servos, ADC, I2C and digital I/O for easy internet automation
Wi-Fi / USB
Servos
8
Camera
Audio
UART
✕
I2C
ADC
✕
Digital
✕
Related Robot Skills (view all robot skills)
Ultrasonic Radar
by Synthiam
Ultrasonic on a servo sweeps 180°; radar shows distances and obstacles, integrates with movement panels for automatic avoidance, scriptable GetPing
Ultrasonic Collision Detection
by Synthiam
Stops robot movement (no steering) when an EZB-connected ultrasonic sensor detects an object within a set range; integrates with scripting and paused polling.
Dual Hbridge
by Synthiam
Two-channel Dual H-Bridge movement panel to control two DC motors (on/off) for forward, reverse, left, right via EZ-B digital ports; no PWM speed.

hi sproket
are you using a script or just the radar panel ?
Hi there- Im using the radar panel.
https://synthiam.com/Support/Skills/Ultrasonic-Distance/Ultrasonic-Radar?id=16101
I just want something simple, detect object, back up, then turn and continue.
I have been searching the forum and searching no luck yet.
Thank you for looking.
hi
here's a topic about that sensor . it seems you need a voltage regulator .
https://synthiam.com/Community/Questions/Hc-sr04-Shows-Only-255-1929
I have a voltage regulator, its a buck on it. Set to 5v.
https://www.amazon.com/dp/B08Y674Z6F?ref=ppx_yo2ov_dt_b_product_details&th=1
My sensor - https://www.amazon.com/dp/B01JG09DCK?psc=1&ref=ppx_yo2ov_dt_b_product_details
Connected to digital ports. D6 and D7
hi
what happens when you check the box "only scan forwart " ?
It jerks left and right moving closer to the target with only scan fwd. But doesnt do circles.
Thats with No reverse before turn
With reverse before turn enabled it detects and jerks left to right backing up some then spins.
there's another checkbox on the right for distants . you can try lower the number by half and see what happens.
Same thing is going on.
I can try another sensor.
If I scrip it pings are solid-
while(true){
var x = Ping.get(D6, D7); print(x); sleep(500);
}
Tested regulator 5v true with meter.