I started working in the first two parts of the input of my survey: 1. The cube (answering with hands) 2. The mat (answering with your feet)

The cube:

Step 1: Define variables for my answers

  I have 17 options for 6 questions.  Therefore I created 17 variables that will be related to buttons.

The variables are in parenthesis.

 

For section Education:

No education (edu_no)

Complete Primary (edu_elem)

Complete Secundary (edu_secu)

Complete High-School (edu_hs)

College (edu_college)

Grad School(edu_grad)

 

 

For section Gender:

Man (men)

Women (women)

 

For section: Do you have tubed water inside the house?

Yes (y_tubewater)

No (n_tubewater)

 

For section: In which type of location do you live?

rural  (zone_rural)

urban (zone_urban)

 

For section: Marital Status

Married/Living Together (married)

Single  (single)

Widow or divorced (divorced)

 

For section: Do you have soil floor inside your house?

Yes (y_soil_floor)

No (n_soil_floor)

 

Step 2:  Start programming

 

The general idea is to collect information of the individual in order to get a good match with a potential employer.

 

For each variable defined above I defined them as dummy variables: take the value of one whenever the user pushes the button.

 

Another important element is that when the user has already answered the survey then a LED will light-up in that section.

 

When the user finishes the survey, this means that there is at least one digitalRead from each section all the LEDS will blink for 3 times. In this way the user will know that the survey within the CUBE is done.

20160512_205022
20160512_205017
20160512_205012
20160512_125420

If user pushes button --> the variable takes the value of 1; otherwise it takes the value of 0.

20160512_211032
20160512_211040
20160512_211050
20160512_211059
20160512_211126

Step 3:  Start testing my program and my circuit.

20160512_205036