Thanks for responding, Gentlemen. Perhaps I've not been clear enough. My post is concerning only one event, a smoke detector going off, sounding an alarm. The smoke detector is a type that, when it goes off, transmits an RF signal to other smoke detectors and they will also sound an alarm. The data shown represents the output of an RF receiver that has captured the RF signal when the smoke detector goes off. The RF signal, as viewed on a scope, looks like this:
![]()
The Pulsein function sees the low, short pulses as approximately 390usec and the longer low pulses as approximately 800usec.
The output of the receiver is fed to an input pin (7) of an Arduino. The code is below. One line of the data shown in the original post is what is seen, over and over, in the serial monitor.
/*
PulseIn sketch
*/
const int inputPin = 7; // analog output pin to monitor
unsigned long val; // this will hold the value from pulseIn
void setup()
{
Serial.begin(115200);
}
void loop()
{
val = pulseIn(inputPin, LOW);
Serial.println(val);
Does this clear things up? - Scotty