Introduction to Processing and Arduino

Sonic Swarm network is an interactive prototype, which uses an ultrasonic sensor to make the swarm of lines denser or less dense depending on the distance.

The idea here was to map the data received by the sensor from Arduino into Processing, to make the swarm attract to each other or spread away from each other. A boundary box was introduced, to not let the swarm of lines go away. If the swarm were to touch the boundary box they would bounce back in. Creating a different pattern every time we move the sensor to the object or object to the sensor ( in this case).

For the prototype, we used an ultrasonic sensor,

The sensor was connected to a white box, which acted as our base to change the distance with respect to the sensor.

At the beginning, when there is no slider to change the distance, the sensor reads the maximum length and gives a very dense swarm of network lines.

When the wooden slider is introduced, the sensor starts collecting the distance with respect to the slider. The data then frees the swarm of networks, making them less dense. The closer the slider goes, the less dense the swarm becomes and vice – versa.          

In the video, we can see the swarm getting dense or loose depending on the slider position.


Sonic Swarm Network is a project of IaaC, Institute for Advanced Architecture of Catalonia developed at Master in Advanced Architecture, MAA 01 in 2017 – 2018 of the Studio SO.4 Produino – Introduction to Programming and Physical Computing by :

Students: Rafael Mas Carvalho, Chen Yuchen and Kedar Undale

Faculty: Ángel Muñoz and Angelos Chronis.