Maker.io main logo

Atomic PIR

2021-09-10 | By M5Stack

License: General Public License Arduino

* Thanks for the source code and project information provided by @AJB2K3

 

Software apps and online services needed:

M5Stack UIflow

 

Story

 

 Atomic WIFI PIR Sensor.

In this guide I will show you how to make a simple Wifi enabled PIR sensor using only and M5Stack Atom and a PIR unit.

For this project you will need:

  • M5Stack Atom Matrix upgraded to UIFlow 1.8.3 Firmware,
  • TailBat,
  • PIR Unit,
  • Small Grove cable.
  • Small piece of double sided tape.

To connect everything together we just plug the TailBat into the Atom Matrix and connect the PIR unit to the bottom of the TailBat with the Short Grove cable and secured to the bottom of the TailBat with a small piece of double sided tape.

atompir 

                              M5Stack Atom Matrix PIR

 As far as code goes I have only developed a basic program for the Atom Matrix that lights up the display when the PIR unit is triggered.

 
The code so far makes the Atom Matrix act as a security light but I hope future versions of the code will allow me to send text messages on trigger.
 
 
 
Code
 
 
 
 

 

 

制造商零件编号 C008-B
ATOM MATRIX ESP32 DEV KIT
M5Stack Technology Co., Ltd.
¥126.17
Details
制造商零件编号 T001
ATOM TAILBAT 190MAH BATTERY
M5Stack Technology Co., Ltd.
¥77.33
Details
制造商零件编号 U004
PIR MOTION SENSOR (AS312)
M5Stack Technology Co., Ltd.
¥44.77
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum