Chapter 7. Advanced Movement with the Animation Library

Now that we've achieved basic movements in our robotics projects, we're going to explore how to create timed, complex movements. This may seem daunting at first—keeping track of one servo is hard enough! Luckily for us, the Animation library in Johnny-Five makes these complex movements easier to both understand and program. In this chapter, we'll explore what makes the Animation library special and start working with some servo animations. We will cover the following topics:

  • What is the Animation API?
  • Looking at the Animation API
  • Writing servo animations
  • Animation events

What you'll need for this chapter

You'll need your microcontroller—I highly recommend the Arduino Uno for this chapter because of its compatibility. You'll also need a USB cable, a breadboard, some breadboarding wires, and the LCD you used in Chapter 4, Using Specialized Output Devices. You'll also need three standard servos. If possible, the servos should be of the same brand and make—this will help with our project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.180.244