Arduino - BLUETOOTH & ANDROID PIR ALARM sms&call Functies

Toon hier Uw afgeronde projecten aan anderen.
Berichten: 9
Geregistreerd: 12 Mei 2016, 01:43

Arduino - BLUETOOTH & ANDROID PIR ALARM sms&call Functies

Berichtdoor arduinosensorsNL » 20 Okt 2016, 23:44

Code & app die ik heb gemaakt voor de Arduino - BLUETOOTH & ANDROID PIR ALARM
Bekijk de video hier: https://www.youtube.com/watch?v=P16XoMo5Fok

Download de app hier! https://play.google.com/apps/publish/?dev_acc=16266962020491994220#AppDashboardPlace:p=appinventor.ai_addmefaster1.BlueCore_Tech_GSM_PIR_ALARM

Schema.
Afbeelding

De onderdelenlijst:
Arduino Uno.
HC-06 Bluetooth Module.
Pir motion detector (DSN-FIR800)
Jumper wire set MM/MF/FF
Android telefoon met APP er op.


De code.

Code: Alles selecteren
const int PirSensor = 2;
int motionState = 0;

void setup() {
  Serial.begin(9600);
  pinMode(PirSensor, INPUT);
}

void loop() {
  motionState = digitalRead(PirSensor);
  if (motionState == HIGH) {
    Serial.println("1");
    motionState = LOW;
    delay(20000);
//    while(0);
  }

}


Bekijk hier de instructable! http://www.instructables.com/id/Arduino-BLUETOOTH-ANDROID-PIR-ALARM-With-Call-and-/
Sensors voor arduino! http://arduinosensors.nl

Advertisement

Terug naar Afgeronde projecten

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers en 5 gasten