13

Using Sensors with Processing and Arduino

You’ve explored keyboard, mouse, and webcam inputs in Processing, and built a custom game controller with a Makey Makey. But what if you want to create something that responds to less-conventional inputs? With a little help from an Arduino, you can Monitor temperature, ambient light, and more with Processing.

This chapter focuses on using Processing’s Serial communication library to bring data from the world around you into your sketches. The Serial protocol sends data 1 bit at a time, allowing devices to communicate simply and efficiently.

In this chapter, you’ll read sensor values for temperature, sound, and light with an Arduino and visualize those values in Processing. In “Taking It Further” on ...

Get The SparkFun Guide to Processing 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.