Summary

Chapter 3 introduced many new commands and concepts in programming. You've learned about arrays and how to use them, how to read analog values from a pin, how to use PWM pins, and the basics of serial communications. Knowing how to send and read data across a serial line means you can use your Arduino to communicate with all kinds of serial devices and other devices with simple communication protocols. You will revisit serial communications later in this book.

Subjects and concepts covered in Chapter 3:

  • Arrays and how to use them
  • What a potentiometer (or variable resistor) is and how to use it
  • Reading voltage values from an analog input pin
  • How to use the mathematical sine (sin) function
  • Converting degrees to radians
  • The concept of casting ...

Get Beginning Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.