Motion Detection Alarm (GPIO)

Motion Detection Alarm (GPIO)

Description:

The objective of this project is to develop a motion detection alarm by using the GPIO (general-purpose I/O) with C & Assembly. The system has two states: On and Off. To activate the system, the user presses SW1 button which sets the system to On. Therefore, SW2 would deactivate the system and set its state to Off; thus, the LED and buzzer are off. The system's LED is set to green when there is no motion detected by the PIR sensor. When there is motion, the system's LED turns red and a buzzer is set off for a few seconds.

Materials Used:
  • Tiva C TM4C123G Micro-controller
  • Grove Base BoosterPack (BOOSTXL-GROVEBP)
  • Grove PIR Motion Sensor (D) [Connected to Port J16]
  • Grove - Buzzer (D) [Connected to Port J17]
  • Git (Partner Collaboration)
  • Code Composer Studio 10.0 (IDE)

Download Code Here