Remote Sensor Monitoring by Radio with Arduino: Detecting Intruders, Fires, Flammable and Toxic Gases, and Other Hazards at a Distance by David Leithauser

Remote Sensor Monitoring by Radio with Arduino: Detecting Intruders, Fires, Flammable and Toxic Gases, and Other Hazards at a Distance by David Leithauser

Author:David Leithauser [Leithauser, David]
Language: eng
Format: epub
Publisher: Leithauser Research
Published: 2016-06-15T17:00:00+00:00


#include <SPI.h>

#include <RF24.h>

#define CE_PIN 9

#define CSN_PIN 10

RF24 radio(CE_PIN,CSN_PIN);

const uint64_t pipe = 0xE8E8F0F0E1LL;

const int maximumTries = 10;

int dataArray[3]; // Variable to hold data

int success; // variable to see if transmission succeeded

int tries; // Number of tries to transmit

int motionSensorPin = 4;

int motionSensor;

int previousMotionSensor = LOW;

const int myID = 1;

void setup() {

Serial.begin(9600);

radio.begin();

radio.openWritingPipe(pipe);

pinMode(motionSensorPin, INPUT);

dataArray[0] = myID;

}// End setup



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.