Basic Tilt Sensor Tutorial

An Overview Of The Basic Tilt Sensor Tutorial
           As you can see this sensor works but it's pretty basic in its functionality. There's little extravagane to be had, but if you were curious about how this sensor works on the inside, the theory section gave you a nice overview. The system that we built demonstrated that indeed when you tilt the sensor, a microcontroller can detect that movement, however it can be a little inaccurate at times depending upon the position of the sensor.


What To Do Now
           One of the main issues I encountered is that since this tilt sensor acts similar to how a push button switch behaves there are 'debouncing' issues. This means that even though the system is tilted, the microcontroller might not have successfully detected that on the first polling check. This tends not to matter in low-speed systems, but if you want to make it so that the microsecond a tilt is detected, the system reacts, you will need to add extra hardware circuitry before the tilt signal reaches the PIC. Typically a simple flip-flop does the trick, depending upon the real-time needs of your system. However, check out the Accelerometer Basics tutorial if you want to see how the pros measure tilt in real-time with 3-axis of raw data.


Conclusion
           The purpose of this article was to build a system that detected raw tilt and in that goal, we were successful. However, as you read above, there are many different places where improvement is sorely needed. So if you're considering building your own tilt system beyond just playing with electronics like this tutorial did, please consider some of the options presented in the previous 'what to do now' section. There are far better ways to detect tilt, although the method presented here is definitely the cheapest!
           If you have any further questions, I implore you...don't be shy, take a look at the forums or ask a question there. I check them out regularly and love getting comments & questions.



;