You can also use a photoresistor as an input device in analog mode with the Arduino running Max MSP and Jitter with Maxuino.
Parts necessary
10K Ohm resistor Arduino UNO Connector wires Photocell (variable resistor)
![](/images/stories/photoresistorarduino.png) |
CC Arduino.com diagram of photo resistor and Arduino UNO |
Schematic
![](/images/stories/screen%20shot%202014-08-30%20at%206.00.15%20pm.png) |
CC Arduino.com diagram of photo resistor and Arduino UNO |
The code for the analog input for the photo resistor is the same as that for the potentiometer.
![](/images/stories/screen%20shot%202014-08-30%20at%2011.35.27%20pm.png) |
Copyright Ken Rinaldo |
MAX MSP lessons continue in Chapter 9
|