Hey everyone, I’ve been messing around with these sound sensors lately too. The biggest headache I’ve found isn’t the wiring, but actually calibrating the 'sensitivity' screw so it doesn't just trigger on every little background hum. If you're trying to figure out if your sensor is actually picking up the right ambient levels, I found this web tool https://noisemeter.co/ pretty handy. It’s easier than lugging a dedicated SPL meter around just to see if your room's baseline noise matches what the Arduino is reporting.
Curious to see if anyone has managed to get a reliable 'glass break' or 'clapper' trigger out of these without a ton of false positives!
Arvie_Mamayson
Posts
-
Sound Sensor -
Setting parameters before system loadThat’s a really clever way to handle provisioning! To make sure you don't stomp on the MySensors internal data, check out the MyEEPROM.h file in the library source. MySensors usually starts its storage from the very beginning of the EEPROM (index 0), but you can usually find a safe 'offset' higher up (like above 256 or 512) to store your custom sCmd strings. Just make sure your preHwInit() reads from that same offset before the MySensors engine takes over!
-
Debugging without radio messagesGreat tip. For anyone else struggling with this, I found that defining MY_TRANSPORT_WAIT_READY_MS to a very short duration (or using MY_PASSIVE_NODE) also helps keep the sketch running when the gateway is offline. It's so much easier to debug logic when the radio isn't a bottleneck.
-
Is the search bar broken?Ah, that explains it - I thought it was just me. Good to know the search itself isn’t broken, just limited in scope.
-
Any good home automation controllers?If you’re already using MySensors, Home Assistant is definitely worth a look - great community, lots of integrations, and works really well with DIY setups. OpenHAB is another solid option if you prefer something more configurable.
-
Bypass radio connectionThat is a great clarification on the use of #define MY_PASSIVE_NODE! Knowing that it works by simply letting the node skip all the 'normal' stuff (which wasn't needed anyway) and that there are no major disadvantages for this specific use case is super useful.
-
Problem with LGT-RF-NanoI’ve had similar trouble with the LGT RF Nano — the radio part is a bit picky. What fixed it for me was lowering the data rate in the sketch and giving it a proper capacitor on VCC (even a small 4.7µF helped a lot).
Also worth trying a different CE/CSN pin setup; these clones don’t always match the “standard” wiring perfectly. After that mine started talking to the gateway without any drama.