Tilt Sensor Assignment

For the tilt sensor assignment we are interfacing our FPGA with a tilt switch sensor. This sensor has two mechanical balls that when tilted break contact. Our goal is to implement a design that will activate a buzzer when the tilt sensor has been engaged and it’s enabled. To complete this assignment follow the steps below:

Complete the PWM design and verify it’s working properly.

If you design the PWM correctly this is the only VHDL code you will need.

Setup

You need to have access to outside pins on your FPGA development board to complete this lab, such as PMOD ports, GPIO headers, etc…

See the schematic below:


See the BOM below for components I used during the demonstration of this lab.

Verification

To verify that your design is working properly enable the tilt sensor and see if the buzzer activates when tilted. Then disable the tilt switch and see if the buzzer doesn’t activate after being tilted.