3 The Application
Ammonia is a hazardous material used in several applications, including HVAC systems. Ammonia accidents can lead to emissions, potentially injuring many people nearby. When used in large quantities, monitoring the amount of ammonia in the atmosphere and whether it exceeds a critical level is an important safety measure.
This application implements a simple ammonia gas detector that monitors ambient ammonia levels. It uses the AVR EA Curiosity Nano Evaluation Kit (EV66E56A) with an Ammonia Click, a Buzz 2 Click, and a 2x2 Click. When the ammonia concentration changes, the analog output of the Ammonia Click changes, which is monitored with an Analog Comparator CIP and compared against a threshold. If the signal exceeds the threshold, the AVR EA generates a PWM signal to drive the Buzz Click while the 2x2 Click adds extra user input buttons. The application is described in detail in Chapter 4.
This application uses the following software tests from the Class B Diagnostic library provided by Microchip: CPU Register Test, SRAM test, Watchdog Timer (WDT) and Flash and EEPROM tests.