Let's Make Robots!
walk
Using a
This is my first robot. I build it in a few hours and it it most mechanic. The bot is made using two servo's and a few pieces of wood and plastic.   Read more

HC-SR04 arduino codes

Hallo everyone 

I want to make a robot with the hc-sr04 ultrasonic sensor on a servo.

Can someone help me with some (example)  codes for the hc-sr04 utrasonic distance sensor?

 

 

 

I will upload some vids/pics/info about my first robot, that walks.

Servo coding (solved)

It is working now, thanks to everyone who helped me out!!!

 

 

I am trying to make my servo work,but if I start my arduino, with code and servo attached, it just goes to one position and stays there twitching. Can someone help me?

second try