The challenge for this project was to create a box that played a noise when it was opened, like an alarm system, using the gyro sensor piece.
The biggest problem I ran into was that the gyro sensor only sensed things rotating around the arrows, or the rotation on that axis. Originally i put it parallel to the rest of the lid, but that proved not to work. so i put it on the side of the box instead, facing away so that it would detect the box lifting.
reflection:
In this challenge i learned the functionality of the gyro sensor piece, as well as the fact that loops can be inside loops, a fact that i later used to great effect in my "insanity button" side project (should be on the blog by the time you read this).
One the thing that went the well was probably that i got the whole "loop within a loop" thing much more smoothly than i originally expected. The first time i did it, it just worked, exactly as how i wanted it to.
As previously mentioned THE thing that did not go as planned was getting the gyro sensor to work, I originally put the face parallel to the lid, put it had to be perpendicular to it, it took me a bit to figure out.
In the next challenge I hope to have an understanding of the parts involved BEFORE implementing them, as that was the biggest time sink in this project. Especially since i had rearranged the location of the pins inside the lid, meaning i had to take the lid apart, while i was trying to install the gyro sensor the wrong way.
Comments