Chapter 3. Using Digital and PWM Output Pins

In this chapter, we'll explore the pins of our microcontroller: how they work, how to manipulate them with Johnny-Five, and how different pins can be programmed to behave in different ways. We'll also build two new projects—one in which we will use several LEDs to explore the Led API more, and another in which we will use a Piezo element to make some music! We will cover the following topics in this chapter:

  • How GPIO pins work
  • Using multiple outputs with several LEDs
  • Using a PWM output with a Piezo element

What you'll need for this chapter

For the first project, you'll need your microcontroller, a handful of breadboard wires, a half-sized breadboard, and five LEDs.

For the second project, you'll need your microcontroller, a handful of breadboard wires, a half-sized breadboard, and a Piezo element.

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

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