Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
re200b pir motion detect example

Purpose

This example demonstrates how to configure re200b pir sensor in order to detect a motion and display information about it on LCD.

Requirements

This module can be used with sam4s_wpir_rd board.

Description

This example first configure LCD controller to display information and RE200B PIR sensor to detect motion. After that, microcontroller enter in sleep mode in order to reduce power consumption. A motion detection will trig ACC interrupt which will wake up microcontroller from sleep mode and display information on LCD. Finally microcontroller will go back to sleep mode waiting for another motion detection.

Usage

  1. Build the program and download it inside the evaluation board.
  2. Some text, image and basic shapes should be displayed on the LCD.