I posted this in another thread, but as it's related to the guide I figured I'd put it here, as far as I can tell the code provided in the guide doesn't quite work correctly, and could possibly damage your servo. (Mine spun fast and got quite hot when I tried it, but I turned it off fairly quickly.) Here is the post:
I just want to add a note here. I recently started using the servo supplied in the kit recently (I decided it would be a nice output for a speedometer experiment I'm trying out with a magnetic hall sensor attached to my stroller) and my code so far uses the timer1 library to check my speed.
Because the servo library also uses timer1, I've been looking into ways to control servos without it, but so far every source I can find says *don't* use pwm or analogWrite to control servos, and that it can damage your servo.
I'm still pretty new to servos, so don't take my word for it entirely, but I thought it was important to make a note, as the project guide advises you to use the same analogWrite script you use to pulse an LED.
Hope this helps.
From the below sources:
"You should not use the arduino analogWrite PWM function to drive a hobby servo. They do not use PWM and could damage a servo or speed controller. Its confusing because many references do incorrectly use the term PWM in articles about servos. But hobby servos and speed controllers expect different pulse timings from that provided by analogWrite."
"The analogWrite pwm output just produces a square wave with a duty cycle that can be controlled between 0% and 100%. This is not the sort of signal that a servo needs, so trying to control a servo using analogWrite is basically not going to work. You need to produce a pulse in the range of around 1ms to 2ms repeating at about every 20ms"