Thread dedicated to the d-diot Gas Sensor and RGB Lamp.
Hey. Thank you for a great thing to make 🙂 . Just one question, so far.
In jumper configuration part, line says that I should short JP2 to connect the IRQ PIN of the radio module to the D2 PIN of the Arduino Nano. But to do so, I should short JP5, am I right?
Hi robas, glad that this sensor is useful for you.
Regarding the Jumper, yes correct, you have to short JP5.
JP2 was a typo in the wiki page (now fixed). Let me know if your node works!
I do have some difficulties with. Working hard of trying to understand how to upload the code… I have been using only Arduino IDE so far
Are you using Platformio inside an editor (like VScode) or with the command line interface?
In any case there is another possible solution: if you are familiar with the arduino IDE, with some little adjustments, you can use it to upload the firmware to the Arduino Nano
franzunix Yes, I’ve tried to use Platformio at first… actually it was the first time I’ve used it 🙂 and it is a bit complicated for me at this moment . Now adjusting for arduino IDE…
Ok, let me know how it proceed with the Arduino IDE.
If you still have problems I can explain you how to use Platformio inside VScode, which is a code editor like the Arduino IDE, or, if necessary, I can send to you the compiled binary file.
Done… works great. except repeater. I am using E01 ML01DP5 and I think i have to adjust the code. I was searching your code and did not find where is the declaration about your radio module and what libraries it uses.
By the way, I was trying to install D-diot image V.1.3 into my raspeberry but had no luck… this happens with home assistant too. While searched the web I was not the only one… “…bind failed: Address in use…”.
Regarding the radio, the E01 ML01DP5 is a an amplified module (PA LNA), so you don’t have to change the #define MY_RF24_PA_LEVEL RF24_PA_MAX directive in the MySconfig.cpp file.
See here for more details:
The radio module is managed by the MySensors library that takes care of the communication between the the sensors (you Gas sensor in this case) and a gateway.
Regarding the d-diot image, are you using the d-diot hub v.2.0 (Raspberry + d-diot board + d-diot image) as a gateway?
franzunix oh… using just Raspberry.. my mistake.
robas No problem, building a MySensors gateway and connect it to Home Assistant or any other home automation platforms is easy and can be done in several ways:
Radio module connected to the Raspberry Pi GPIO
Radio module connected to arduino and arduino connected to the home assistant host through usb cable
Radio module connected to an esp8266 and esp8266 connected to home assistant through wifi
d-diot hub v.2.0
Some weeks ago I have finished the d-diot hub v.3.0 and now I’m writing the documentation about that, so in few days you can evaluate also this solution.
Of course feel free to write here if you need some info about the build of a MySensors gateway.