PandaTec Project's profile

Processing and Arduino

Arduino and Processing
Processing is an open-source programming language and environment specifically designed for visual arts and creative coding. It provides a flexible and intuitive platform for artists, designers, and educators to create interactive graphics, animations, and visualizations.

One of the powerful features of Processing is its ability to communicate with external hardware such as Arduino microcontrollers. This integration is facilitated through the processing.serial library, which allows Processing sketches to send and receive data to and from Arduino boards via a serial connection.
By using processing.serial, developers can create interactive projects that combine the visual capabilities of Processing with the input/output capabilities of Arduino. This opens up a wide range of possibilities for interactive installations, physical computing projects, and interactive art pieces.

With Processing and Arduino working together, creators can leverage the strengths of both platforms to develop innovative and engaging projects that blend software and hardware seamlessly. Whether it's controlling physical devices with visual interfaces or visualizing data from sensors in real-time, the integration of Processing and Arduino offers endless opportunities for creative exploration and experimentation.

Now, to test this capability, two exercises were developed using a photoreceptor and an LM35 sensor.
The first exercise involved identifying the ADC value when the receptor was exposed to its maximum level of luminosity and when it was dark. In combination with Processing, a grayscale scale was created to represent the amount of light it was receiving: white when exposed to maximum light and black when in darkness. The following result was obtained:​​​​​​​
Code(using the same port and same serial 9600)

Arduino IDE:
Processing:
In the second problem, the idea was to do something similar but with an LM35 sensor, so that when the temperature changed, the color would vary according to the temperature.
Arduino IDE code:
Processing Code:
Processing and Arduino
Published:

Processing and Arduino

Published:

Creative Fields