Assigment arduino processing

agostino granato
1 min readJul 3, 2017

--

Group: Agostino Granato, Marco Trotti [data: 13.04.2017]

The light sensor detects the intensity of ambient light. The ambient light is input of numeric values. The arduino card monitors light values from 0 to 255. The values are divided into 3 ranges that correspond to three different led lights: red (0–75), yellow (76–155), green (156–255) . Processing calculates the light values graphically. The three ranges correspond to three different geometric shapes: black vertical lines, semitransparent blue circles, red semi-transparent squares. The processing code has two other modes of view:
1) random mode for locating center forms;

2) parameterizing the size of the geometric shape in relation to the magnitude of the value in the range.

--

--