this kind of optic fiber is probably only plastic so for a full DIY , you can use also fishing wire with a big power led or an old chistmass tree optic fiber lighted.....
I have already published all the documentation, on my website, GitHub and openhardware.io
For now I leave the node as finished.
SmartHome: Wireless LED RGBW Controller – 00:55— giltesa
I hate to disappoint you @micah but @Mike-Musskopf has got a point:
MQ* sensors are power hungry. You may want to connect everything up to 240V via a small PSU. There is a big thread on mysensors about air quality detection.
DHT is not the best sensor for a battery application. Please check BME280 (pressure, temp and hum) or Si7021 (temp and hum) - these would be my favourite sensors for low power consumption.
Small tip - your Arduino Pros must be 3.3V and not 5V for the battery usage.
I recently build successfully a mysensor node based on an Arduino Uno, a Robolink IR sensor and a Robolink DHT11 sensor. The last two from an Elektor sensor kit ever bought for my son when he was still interested by electronics .
My controller is Home Assistant, so I did a merge of the given MySensors example sketch and the Home Assistant example sketch together with the DHT11 sketch.
The airco is a Samsung one, so in the sketch you will find these defines uncommented. Replace by your airco manufacturer.
People interested in building one, can find my sketch on https://github.com/ericvb/MySensorsArduinoSketches
@ToniA a big thanks for the work to decode all these IR sequences!
I think the comment in the routine
void measureBattery() {
// R1 = 1MOhm, R2 = 220 kOhm
Should be
void measureBattery() {
// R3 = 1MOhm, R2 = 220 kOhm
(R3)
Is it possible to add (comment out) some lines how to calculate the battery percentage and send this via gw.sendBatteryLevel (batteryPcnt)
Great sketch!