Steps for creating this motion-activated SMS sender:
Step 1
- Connect your 1Sheeld to your Arduino
- Connect the Arduino to your PC
- Make sure the 1Sheeld's UART switch is open – otherwise the Compiler will give an error.
- Upload this code to the Arduino:
http://codepad.org/tpikIYYI>http://codeshare.io/9Owvu
- Edit the number “ 0123456789” to your Number SMS yourself or preffered phone
Step 2 (The LED)
- Connect the led to pin number 13 and, with the resistor, to ground.
Step 3 (The PIR Motion sensor)
- When you point the PIR motion sensor bubble away from you, to see the back with the 3 connector pins at the bottom, connect it like the following:
1. The left pin needs to connect to pin number 2,
2. The middle pin needs to be connected to 3.3V,
3. The right pin needs to be connected to ground on your Arduino.
Step 4 (Connecting)
- Pair your Android device to your 1sheeld, via the 1Sheeld app, through Bluetooth
- Select the following shields:
SMS shield, to be notified when something happens/ or motion is detected
- Make sure that your number is typed in correctly and that the delay is more than 150ms
Step 5 (Ready to go)
- Make sure the code is uploaded, and wait for the LED to switch off.
- Switch the UART switch to closed, to begin communication between the 1sheeld and your phone.
- Move infront of the motion sensor and wait for the SMS/
NOTE : MAKE SURE THAT YOUR NUMBER IS TYPED IN CORRECTLY, THE DELAY IS MORE THAN 100ms.
Comments