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.
If user pushes button --> the variable takes the value of 1; otherwise it takes the value of 0.
Step 3: Start testing my program and my circuit.