Arduino Coding - Tilt Switch
For my A1 tech task with the cookie, I'm looking at using the tilt switch as the turn on and off. Its the start of the interaction. To turn it the cookie jar on, you have to tilt the jar and that's when the sensor will be turned on.
I have done a previous experiement with the tilit sensor, however, in the video it was used to detect vibration and was not the main instrument.
In the below, video you can see how I have used the tilt switch sensor as an input that you must interact with in order to one, start the system, and two, to turn the LED light on in order to know that it's turned on.
I am very pleased with the result of the tilt switch and now just need to join it with the ultrasonic sensor for my code. I hope it works!
Comments
Post a Comment