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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access