💬 Insulated Whole House Fan
-
@rechin304 said:
dht.setup(DHT_DATA_PIN);
if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) {
Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!");
}
// Sleep for the time of the minimum sampling period to give the sensor time to power up
// (otherwise, timeout errors might occure for the first reading)
sleep(dht.getMinimumSamplingPeriod());For what it's worth, I just went through a very long debug session trying to get a simple dht11 based sensor built and working. For reasons I don't even pretend to understand, the one thing I changed that allows it to work is changing the 'sleep' command in this section of the setup function to a 'wait' command.
@flyswiftly thanks for trying,
in my case still i do not see any data. What library do you use ? The one from MySensorsArduinoExamples-master.zip ?
-
@flyswiftly thanks for trying,
in my case still i do not see any data. What library do you use ? The one from MySensorsArduinoExamples-master.zip ?
What library do you use ? The one from MySensorsArduinoExamples-master.zip ?
Actually, no. It turns out when I looked through my IDE that I am using the prior version of the DHT library. That did also force me to comment out the read sensor line just to make it compile. Maybe the combination of the two changes is what does the trick. I hadn't made those changes together, so I missed the possible significance of this change:
void loop() { // Force reading sensor, so it works also after sleep() // dht.readSensor(true);Running a diff on both the library you point out and the one I'm using shows that adding that bool to the readSendor function is the only code difference.
-
What library do you use ? The one from MySensorsArduinoExamples-master.zip ?
Actually, no. It turns out when I looked through my IDE that I am using the prior version of the DHT library. That did also force me to comment out the read sensor line just to make it compile. Maybe the combination of the two changes is what does the trick. I hadn't made those changes together, so I missed the possible significance of this change:
void loop() { // Force reading sensor, so it works also after sleep() // dht.readSensor(true);Running a diff on both the library you point out and the one I'm using shows that adding that bool to the readSendor function is the only code difference.
@flyswiftly
I also did that try an older version library for DHT and receive data. So conclusion is that on current (latest) DHT library for DHT11 is not working. Now I'm on a business trip to China for a week and With this chance i will buy there DHT 22 to be sure. I will be back in a week with conclusion. -
I can confirm that DHT library that is in example do not work with DHT11 and DHT22 in my case, using other (older) library i can see data.
-
@rechin304 Sorry, just to make sure I understand, are you saying it works with a DHT22 or not? I may still be on an old library too.
@petewill
Works with DHT22 and other library (old one). I could not make it work withe one from example.I'm almost ready with build, waiting for final pieces. hope to receive them this week.
one more ting i noticed is that clock is behind with 2minutes, so i need to check the code again. -
Added new lead screw pitch of 2Mm that decrease open/close time from 3 minutes to 40 sec. see pics https://goo.gl/photos/mQvF1S9FrdNYPpdH9
buyed from here http://www.ebay.com/itm/322139119923?_trksid=p2057872.m2749.l2649&var=511054006707&ssPageName=STRK%3AMEBIDX%3AIT
for who is interested. -
I have an working prototype, see video https://goo.gl/photos/VSQeaevHh7UbbStr9
Many thanks to @petewill for his work and inspiration.
I will post final pictures when ready. -
@rechin304 Awesome! Glad you got it working!!
-
@petewill Hi Pete
Just Start building the system and got an error at sketch verify.
"exit status 1
'class Adafruit_ST7735' has no member named 'setFont'"@lis610 Sorry for the delay. Work has been very busy. I have attached the libraries I'm using. I was able to get it to compile when I just tested. https://drive.google.com/file/d/1wauxHRf5pyqLnBGsfCP8UPJQR1wNdkoF/view?usp=sharing
Let me know if you have issues with this.
-
THANK YOU so much for sharing. Most of the errors gone, but one left (using Arduino v.1.8.5; MySensors v 2.3.0):
[C:\Users\BEAST\Documents\Arduino\Whole-House-Fan\code\New folder\WholeHouseFan2.0\WholeHouseFan2.0.ino: In function 'void presentation()':
WholeHouseFan2.0:197: error: 'TEMP_CHILD_NAME' was not declared in this scope present(TEMP_ID, S_TEMP, TEMP_CHILD_NAME);
exit status 1]
'TEMP_CHILD_NAME' was not declared in this scope -
THANK YOU so much for sharing. Most of the errors gone, but one left (using Arduino v.1.8.5; MySensors v 2.3.0):
[C:\Users\BEAST\Documents\Arduino\Whole-House-Fan\code\New folder\WholeHouseFan2.0\WholeHouseFan2.0.ino: In function 'void presentation()':
WholeHouseFan2.0:197: error: 'TEMP_CHILD_NAME' was not declared in this scope present(TEMP_ID, S_TEMP, TEMP_CHILD_NAME);
exit status 1]
'TEMP_CHILD_NAME' was not declared in this scope -
Thank you. The box is ready. Next step connect all hardware. So far no luck with the display (KMR-1.8 SPI). What kind of display model you used in this project.