Chapter 17

Processing the Physical World

In This Chapter

arrow Turning on a real light with a virtual switch

arrow Graphing data from the physical world

arrow Sending signals between the Arduino and Processing

In the previous chapter, you learn the basics of Processing and its similarities to and differences from Arduino. This chapter is all about combining both of these tools to integrate the virtual and physical worlds. These few exercises teach you the basics about sending and receiving data in both Processing and Arduino. You can build on this knowledge to create your own projects, maybe to generate some awesome onscreen visuals from your sensors or to turn on a light every time someone mentions you on Twitter.

Making a Virtual Button

In this example, you learn how to make an onscreen button in Processing that affects a physical LED on your Arduino. This is a great sketch to get started with interactions between computers and the real world, and between an Arduino and Processing.

You need:

check.png An Arduino Uno


The setup is simple for this introduction to Arduino and Processing, requiring only ...

Get Arduino For Dummies now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.