| The following example application
demonstrates the use of a DS-PRX infrared motion sensor and DS-LCDD2
IIC 20x2 character LCD module interfaced with the Brainstem
microcontroller. |
| It incorporates the updated Brainstem
aLCDx.tea Library file for use with the DS-LCDD2 LCD. (The
aLCDx.tea can be found here and should be saved in the Brainstem/aSystem
file). |
| An initial delay is set to allow
the DS-PRX to settle (between 7 and 30 seconds). When the DS-PRX detects
movement, the resulting analogue signal is read by the Brainstem. |
| If the signal is less than the
specified trigger number, the green LED lights and a Scanning,
All Clear screen is displayed on the LCD. |
| If the trigger number is greater,
the red LED lights and a Warning, Alarm Triggered screen
is displayed. This will remain until the DS-PRX drops to a low set
trigger level. |
| During this process, if the Brainstem
is connected to the console, the analogue number from the DS-PRX can
be read as a number on screen. This is useful to set trigger detection
levels. |
| Brainstem is a Trademark of
Acroname Inc. |