The above diagram shows interfacing a PIR sensor to EFM32GG12 Microcontroller. The output of PIR sensor in TTL level and can be directly connected to the GPIO of the EFM32GG12 Microcontroller. LED is also interfaced to a EFM32GG12 Microcontroller.
Whenever PIR sensor gives a TTL output after sensing an obstruction, it is read by the GPIO of the Microcontroller. The micro controller further control an LED connected to another GPIO PA1.
Below is the video which explains about the connectivity and programming.
0 Comments