The Foginator project sounds good in theory, but how do we know if it is working?  To track the various inputs and outputs of the Foginator system as well as various data from the sensors and camera used within our data algorithms.

Step 1: Data Collection

The first step in the process of building a user interface is the retrieval of the data.  This is done through programming on the arduino which will read and right to the various I/O located within the Foginator.  To read more about how this is done visit our *********page*********** and*******link it************

Step 2: Communicating the Data to the Server

Once the data has been acquired the arduino will send the information over an I2C protocol to the raspberry pi server.  The communication will be controlled through the following python file.

 

read_data

Step 3: Taking a Picture with the Raspberry Pi

The algorithms we wish to use will not only use the newly acquired data, but will also utilize photos taken from the raspberry pi.  To take a continuous images with the raspberry pi one uses the following script.

cam_capture

There are many additional variables that can change to help capture perfect images.

Step 4: Combining the Images into an html File

Raspberry pi’s can host simple servers with a single command.  To utilize this to our advantage one can simply build a python script that will return the necessary html file updates the website every thirty seconds.  The python script can be seen below:

test_1

test_2

Step 5: Viewing the Webpage:

The files above come together to form a website that displays the image being received from the raspberry pi as well as the I/O from the arduino.  an example image can be seen below:

WebsiteScreenshot