O'Reilly logo

Arduino For Dummies by John Nussey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7

Basic Sketches: Inputs, Outputs, and Communication

In This Chapter

arrow Fading like a pro

arrow Coming to grips with inputs

arrow Varying resistances with potentiometers

arrow Showing off your stats with the serial monitor

In this chapter, I discuss some of the basic sketches that you need to get you on your Arduino feet. This chapter covers a broad range of inputs and outputs using the sensors in your kit. If you don’t yet have a kit, I suggest reading through Chapter 2 to find one of the recommended ones.

The Blink sketch (described in Chapter 4) gives you the basis of an Arduino sketch, but in this chapter, you expand on it by adding circuits to your Arduino. This chapter walks you through building circuits using a breadboard, as mentioned in Chapter 5, and additional components from your kit to build a variety of circuits.

I detail uploading the appropriate code to your Arduino, walk you through each sketch line by line, and suggest tweaking the code yourself to gain a better understanding of it.

Uploading a Sketch

Throughout this chapter and much of the book, you learn about a variety of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required