Let's Make Robots! | RobotShop


Can only get a 6-8 cm range out of HC-SR04

Hi everybody,

I'm working on my first robot project: a simple 2WD wall avoider using an Arduino Uno and the Adafruit motorshield v1 and I have a problem with the HC-SR04 sensor I purchased. Everywhere on the web I find that the maximum range is a couple of meters, however I can only get 6-8 cm's from it. 

My code looks like this:

Calculates the distance and reports to an LCD
Using a
Hello LMRians, After finishing as runner-ups in the line following section of the Yantra 2.0 Robotics Competition, the organizers provided the team  a Roboduino, … Read more
PROJECT CONTINUED! So I found a motor from a toy. Works fine. The same speed as the other. But I still have the problem with the whole robot turning. I'll post a … Read more
Avoid walls and obstacles.
Using a
I am building a tracked robot using Tamiya gearbox and a Tamiya trackset. I made the body out of acrylic: And i used this aluminium rod wich is M4 to fit the … Read more
The robot's name is a placeholder until I think of something else. This will be one of three TED the BiPed clones. There are too many Bob clones !!! lol. Read more
Possibly helps to detect objects, walls and holes.
 Some fancy nice ultrasonic sensors can read multiple echoes of sent ultrasonic wave. Cheap senosrs register the first echo that arrived back. If we could listen … Read more
Autonomously roaming, avoiding obsticles
Using a
Third robot build, almost identical to RoverBee One. Using the following: - Arduino Uno - Arduino Motor Shield r3 - HC-SR04 Distance Sensor - Tamiya Universal … Read more
Autonomously roaming, avoiding obsticles
Using a
Second robot ever built using the following: - Erector set for chassis. - Arduino Uno - Arduino Motor Shield r3 - HC-SR04 Distance Sensor - Tamiya Twin Motor … Read more
Will run around autonomously and remote controlled, interacts with other robots (maybe)
Using a
     Hello all you guys. It's been some time I'm thinking about of build a kind of interactive robot (something like a butler, service robot). Recently I saw … Read more
Navigate around via ultrasound.
Using a
  This post is just one of the first steps of my build. I have made my robot's housing ready for powdercoating.             UPDATE 15-2-2013 Servo's arrived … Read more
Navigates via four HC-SR04 Ultrasonic Sensors
Using a
Parts: Meduino Nano microcontroller TB6612FNG motor driver on carrier board Four HC-SR04 ultrasonic sensors i2c serial LCD display - 16X2 1 TI MSP430 Launchpad … Read more

[ALMOST SOLVED] HC-SR04 still giving me grief...

June, 7th 2012


- Updated schema.

- Segregated power supplies of arduino + sensor
- Added 0.047uf caps to the motor leads (one per lead) grounded by the casing.

- Motor + servo power supply changed to 4 AA rechargable batteries.

- Arduino + sensor when powered by USB everything seems to work fine, except the sensor is a bit slow to respond but that surely it's the code's fault.


- Pending issues:  

Navigate around via ultrasound
Using a
  This is my first robot using Arduino.It is really easy to make a robot using an arduino. As it was my first robot.It was fun to play with it.I would also like to … Read more
Roam randomly navigating around obstacles by using ultrasound
Using a
YA2WDNSOSBBALABMHAMF (Yet Another 2WD Not So Original Starter Bot But At Least Assembled By My Own Hands As My First) or just B4short, --- a tale of many horrors, … Read more

3x Ultrasonic sensor

Hi I have problem with reading value from 3 ultrasonic sensor. I use Atmega644P and trig is conected to PD5-PD7, but echo from all sensors conected to PD2. I tried read value and wrote to LCD. When I disconnected all sensors the some values are on LCD, but when I connected all sensors and click to reset the LCD is clear.

Bluetooth remote controlled robot capable of taking pictures
Using a
Ar-Du is finally finished.   The block diagram: Read more

HC-SR04 Problems

Hi all,

A while ago I bought a HC-SR04 Ultrasonic Sensor, and it worked fine, but now I want to use it on a robot and I am having some problems.


When I output the data from the sensor to the serial monitor this is the result:


MS: 204551, CM: 3702.51, IN: 1457.68

MS: 1526, CM: 27.62, IN: 10.87

MS: 204613, CM: 3703.63, IN: 1458.12

MS: 847, CM: 15.33, IN: 6.04

MS: 204630, CM: 3703.94, IN: 1458.24

MS: 613, CM: 11.10, IN: 4.37

MS: 204615, CM: 3703.67, IN: 1458.13

MS: 419, CM: 7.58, IN: 2.99

MS: 204636, CM: 3704.05, IN: 1458.28

MS: 785, CM: 14.21, IN: 5.59

MS: 204656, CM: 3704.41, IN: 1458.43

MS: 1598, CM: 28.92, IN: 11.39

MS: 204688, CM: 3704.99, IN: 1458.65

MS: 1553, CM: 28.11, IN: 11.07

MS: 204715, CM: 3705.48, IN: 1458.85

MS: 1526, CM: 27.62, IN: 10.87

MS: 204726, CM: 3705.68, IN: 1458.93

MS: 1544, CM: 27.95, IN: 11.00

MS: 204715, CM: 3705.48, IN: 1458.85

MS: 1519, CM: 27.49, IN: 10.82

MS: 204745, CM: 3706.02, IN: 1459.06

MS: 1523, CM: 27.57, IN: 10.85

MS: 204733, CM: 3705.80, IN: 1458.97

As you can see only every second reading is accurate.