FabLab Cept

PROCESSING

For interface and application programming, I decided to use Processing to generate a graphic from output generated from distance sensor.

So, my final project has distance sensor to detect motion around the system. So, I tried to show the proximity of object to the distance sensor by remapping the output derived from distance sensor to a graphical representation of 2 lines, where 1 line is constant, indicating the location of distance sensor and the other line moves indicating the movement of the object around the sensor.

 

In terms of electronics, I used the same board that I made for Networking. It was already programmed to give output in terms of distance in centimeters. I tried to make a processing code to interpret this number and move the line accordingly.

 

The code for Arduino can be found here.

Here is a range of screenshots demonstrating the process I tried.

I used FTDI cable to connect my board to the computer to transfer output distance values from distance sensor board to Processing. Here is a final video of my working code. You can find the code here.

Interface from ARPI on Vimeo.