DHT sensor for Mysensors V2
-
Hi,
I was wondering if someone can help me to setup a DHT sensor for mysensors V2. For some reason I dont have it inside my mysensors library ! Also, the video and the example sketch on the website is for the older version.
Cheers,
Mehrdad
-
@mehrdad.silatani - Hi!
Because it is dependent of an external library it was moved to a seperat folder for 2.0.Lib: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/DHT
-
@sundberg84 Fantastic ! It worked very well ! Thanks for quick response !
-
Ok, I have one more general question !
I have experience in working with Arduinos alone, and most of the time I kinda always manage to understand the example sketches, then expand it, modify it or write another one from scratch to my specifications. But when it comes to Mysensors IDEs, I am really struggling to fully understand them and tweak them ... All those "CHILD_ID_... , S_... , V_... , Void presentation (), ......"
Is there any guide available that I can start reading up ?
Cheers,
Mehrdad
-
@mehrdad.silatani - well, since we are in the middle of 1.6 and 2.0 it might be a bit messy at the moment. You have the API and all the technial stuff here for all versions: https://www.mysensors.org/download/
Aslo there is a great tutorial how to combine sketches... but I cant find it
-
-
@mfalkvidd said:
@sundberg84 could https://forum.mysensors.org/topic/115/implementing-multiple-sensors/4 be the one?
YES! Thank you!
-
Anyone tried that?
i m getting error with dht.readSensor.Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno" WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized' C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino: In function 'void loop()': GwSerial.v.0.3:198: error: no matching function for call to 'DHT::readSensor(bool)' dht.readSensor(true); ^ C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:198:22: note: candidate is: In file included from C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:38:0: C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note: void DHT::readSensor() void readSensor(); ^ C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note: candidate expects 0 arguments, 1 provided Multiple libraries were found for "DHT.h" Used: C:\Program Files (x86)\Arduino\libraries\DHT Not used: C:\Users\Usuario\Documents\Arduino\libraries\DHT_sensor_library exit status 1 no matching function for call to 'DHT::readSensor(bool)'
-
@Tagore.PDE looks similar to https://forum.mysensors.org/topic/4672/dht-sketch-version-2-0-0-error-solved/ - see if using the dht version in the MySensors examples helps.
-
Yes, thx. same issue.