background preloader

Arduino Resources

Facebook Twitter

Arduino Multi Servo Control. Smooth Head Rotation. Did you ever tried to rotate the robot head and found the movement nervous? This tip can help to smooth movements out. Did you ever looked at a robot and found its movements human like? This tip can tell you how you can humanize your robot's moves. Motivation Most of us one day have the challenge to rotate something from one angle to another. In this tip we want to go one step further and use a non-linear movement to make the move smooth.

Introduction The movement must start from zero velocity and go to zero velocity. One function that has this nature is the Sinus Square velocity over time function. Using this Sinus Square function makes sense in almost every move your robot makes. If you want to find out more about this topic then have a look into the further readings at the end of this tip. The Smooth Head Rotation Start your Arduino IDE and copy the sample code from the end of this page. When you now observe the servo movement you see, that it does exactly what I mentioned before.

YourDuino. First, you need to get your real Arduino and the free Arduino Software installed and working. Then come back here and we'll try out a few fun things... You should always get the latest Arduino Software from the Arduino website. Now, click on link to the following Arduino Website page that is right for your computer and operating system: Then come Blinkin' Back Here! ---------( A little while Later )------------- OK, so you've got your Arduino plugged in and running. The green (power) "ON" LED is on, right? Over on the right, the ON LED should be lit (usually Green). Most Arduinos have an LED and a resistor permanently connected from Pin 13 to GND. Let's take a little while to get used to writing Arduino Software, then we'll come back and start adding HARDWARE and making more interesting things. You should have found and downloaded and installed the Arduino software, plugged your Arduino into USB, and set the right BOARD type and SERIAL PORT.

So it looks like this: And CLICK. Wow.. A lot! YourDuino.com. Arduino servo code for a robot.