Step 5: Integration of the Servos and Accelerometer and Accelerometer values
We needed to combine both circuits on a stripboard as small as possible as we wanted to place it between both motors. We connected the output pins of both the servo motors into one pin.
Here is the schematic of the combined circuit.
We took advantage of one the few acrylic boards we found lying around in our FYP lab, using it mount our circuit and motors. Using the glue gun , we glued the motors and circuit board on the acrylic board and the acrylic board on the hair band. Securing the hairband to the cap using cable ties.
Now that the accelerometer is firmly placed, we can get accurate values. Using the accelerometer code from the previous step, here are the values we collected. Wearing the cap,we took note of the values when we turn left, right and the original position.
Here are our findings :