Hello everyone! I am new to electronics and programming with arduino. I would like to have a schematic of connecting together everything in the correct way,cause i am having trouble with it. I would like to power an arduino uno which is connected to sim900A gsm module (powered separately). To the arduino i would like to connect a pir sensor which one when detects motion sends a sms. I am having trouble with the pir sensor,the program works but when the sensor thinks would call me so it s a false positive.
It will not work if you power up the SIM900A with the Arduino board. You have to use separate power supplies for the arduino and for the SIM900A. You have to keep the grounds of the two power supplies common. Get a 5V, 2A adapter and use it to power up the SIM900A module.
Get the PIR sensor working with the Arduino alone, then think about putting the rest together.
Hello! Thank you for your response! I am powering them separetely, however i can t find out how to connect the grounds, I mean the arduino has more GND connections.
The pir sensor is working alone, however sometimes the sensor is giving fake alarms and is calling me whenever it wants. I have changed the pir sensor with ultrasonic sensor and it's working, but i would like to have the pir sensor instead.
They do that. All sensors exhibit noise and false responses, but some are better than others.
For a PIR sensor, you can count pulses, and require more than one pulse to signal a valid event.
And how would that be in programming language?
To increment a counter, use something like
count++;
To test a count, use an if statement:
if (count > 2) sound_alarm();
To learn the programming language and the special features of Arduino, we recommend to work through some of the examples that come with Arduino, and to study some of the many on-line tutorials.
Okay, thank you for your response. I would have another question, can t you filter out fake alarms with capacitor?
All GND pins of the Arduino board are same. You can connect any of them with the GND pin of the SIM900 module.
I see, thank you very much. Would a capacitor prevent the fake positives of the pir sensor?
I personally never faced this problem. You'll find many tips regarding the False positive of PIR sensor. PIR sensor and false positives | MySensors Forum
Thank you, i will check it!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.