@mikeS Thanks so much for your reply, it's working perfectly now.
ramoncarranza
@ramoncarranza
Best posts made by ramoncarranza
-
RE: π¬ Air Humidity Sensor - DHT
-
RE: How to build a repeater
@stingone yep all you have to do is upload it to your radio set-up and that's it, but you do waste a board and a radio unit, but in MY case is well worth it.
Latest posts made by ramoncarranza
-
RE: π¬ Infrared Sender and Receiver
@Talat-KeleΕ
Hi, I am having an issue compiling the sketch and was wondering if you had any input or could help me out, This is what I get back when I try to compile;
-
RE: π¬ Light Level Sensor - LM393
@hek what extra code do I need to add to the sketch so tha it sends the tripped value to my gateway?
-
RE: π¬ Light Level Sensor - LM393
@hek
int soundDetectedPin = 10; // Use Pin 10 as our Input
int soundDetectedVal = HIGH; // This is where we record our Sound Measurement
boolean bAlarm = false;unsigned long lastSoundDetectTime; // Record the time that we measured a sound
int soundAlarmTime = 500; // Number of milli seconds to keep the sound alarm high
void setup ()
{
Serial.begin(9600);
pinMode (soundDetectedPin, INPUT) ; // input from the Sound Detection Module
}
void loop ()
{
soundDetectedVal = digitalRead (soundDetectedPin) ; // read the sound alarm timeif (soundDetectedVal == LOW) // If we hear a sound
{lastSoundDetectTime = millis(); // record the time of the sound alarm // The following is so you don't scroll on the output screen if (!bAlarm){ Serial.println("LOUD, LOUD"); bAlarm = true; }
}
else
{
if( (millis()-lastSoundDetectTime) > soundAlarmTime && bAlarm){
Serial.println("quiet");
bAlarm = false;
}
} -
RE: π¬ Light Level Sensor - LM393
@hek I found this sketch, but how do I incorporate it to my sensors library and serial gateway?
-
RE: π¬ Light Level Sensor - LM393
@hek hi, I've been searching to see if I can find anything on th LM393 Sound sensor, I know I saw one but can't find it, looking to build a simple soundsensor with the LM393 unit.
-
RE: How to build a repeater
no need to change anything on your original sensors and and yes it will relay signals from multiple sensors to your gateway/controller. Just our of curiosity, what controller are you using???
-
RE: How to build a repeater
@stingone yep all you have to do is upload it to your radio set-up and that's it, but you do waste a board and a radio unit, but in MY case is well worth it.
-
RE: UI5 Mysensors library 2.0 gateway issues
@hek said:
senile
are the the sensors/nodes awake at all times by default?