Skip to content
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 Insulated Whole House Fan
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

💬 Insulated Whole House Fan

Scheduled Pinned Locked Moved OpenHardware.io
mysensorswhole house fan
72 Posts 11 Posters 13.2k Views 11 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • flyswiftlyF flyswiftly

    @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.

    rechin304R Offline
    rechin304R Offline
    rechin304
    wrote on last edited by
    #21

    @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 ?

    flyswiftlyF 1 Reply Last reply
    0
    • rechin304R rechin304

      @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 ?

      flyswiftlyF Offline
      flyswiftlyF Offline
      flyswiftly
      wrote on last edited by
      #22

      @rechin304

      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.

      rechin304R 1 Reply Last reply
      0
      • flyswiftlyF flyswiftly

        @rechin304

        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.

        rechin304R Offline
        rechin304R Offline
        rechin304
        wrote on last edited by
        #23

        @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.

        1 Reply Last reply
        0
        • rechin304R Offline
          rechin304R Offline
          rechin304
          wrote on last edited by rechin304
          #24

          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.

          petewillP 1 Reply Last reply
          0
          • rechin304R rechin304

            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.

            petewillP Offline
            petewillP Offline
            petewill
            Admin
            wrote on last edited by
            #25

            @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.

            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

            rechin304R 1 Reply Last reply
            0
            • petewillP petewill

              @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.

              rechin304R Offline
              rechin304R Offline
              rechin304
              wrote on last edited by rechin304
              #26

              @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.

              1 Reply Last reply
              0
              • rechin304R Offline
                rechin304R Offline
                rechin304
                wrote on last edited by
                #27

                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.

                petewillP 1 Reply Last reply
                3
                • rechin304R Offline
                  rechin304R Offline
                  rechin304
                  wrote on last edited by
                  #28

                  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.

                  1 Reply Last reply
                  0
                  • rechin304R rechin304

                    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.

                    petewillP Offline
                    petewillP Offline
                    petewill
                    Admin
                    wrote on last edited by
                    #29

                    @rechin304 Awesome! Glad you got it working!!

                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                    L 1 Reply Last reply
                    0
                    • petewillP petewill

                      @rechin304 Awesome! Glad you got it working!!

                      L Offline
                      L Offline
                      lis610
                      wrote on last edited by
                      #30

                      @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'"

                      petewillP 1 Reply Last reply
                      0
                      • L lis610

                        @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'"

                        petewillP Offline
                        petewillP Offline
                        petewill
                        Admin
                        wrote on last edited by
                        #31

                        @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.

                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          lis610
                          wrote on last edited by
                          #32

                          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

                          petewillP 1 Reply Last reply
                          0
                          • L lis610

                            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

                            petewillP Offline
                            petewillP Offline
                            petewill
                            Admin
                            wrote on last edited by
                            #33

                            @lis610 Sorry about that. I just fixed the code on the build page. Hopefully that will get you up and running :)

                            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                            1 Reply Last reply
                            0
                            • L Offline
                              L Offline
                              lis610
                              wrote on last edited by
                              #34

                              Thank you. Did you upload the file for download?

                              petewillP 1 Reply Last reply
                              0
                              • L lis610

                                Thank you. Did you upload the file for download?

                                petewillP Offline
                                petewillP Offline
                                petewill
                                Admin
                                wrote on last edited by
                                #35

                                @lis610 yes, I uploaded it to the page in the link at the top of this page.

                                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  lis610
                                  wrote on last edited by
                                  #36

                                  Cannot locate file "WholeHouseFan2.0.ino"

                                  petewillP 1 Reply Last reply
                                  0
                                  • L lis610

                                    Cannot locate file "WholeHouseFan2.0.ino"

                                    petewillP Offline
                                    petewillP Offline
                                    petewill
                                    Admin
                                    wrote on last edited by petewill
                                    #37

                                    @lis610 Strange. It disappeared. I added it again and just downloaded it so you should be good. Sorry for all the issues!

                                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                    1 Reply Last reply
                                    0
                                    • L Offline
                                      L Offline
                                      lis610
                                      wrote on last edited by
                                      #38

                                      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.

                                      petewillP 1 Reply Last reply
                                      0
                                      • L lis610

                                        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.

                                        petewillP Offline
                                        petewillP Offline
                                        petewill
                                        Admin
                                        wrote on last edited by
                                        #39

                                        @lis610 This is the display I used.
                                        http://www.ebay.com/itm/331443126874?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                        1 Reply Last reply
                                        0
                                        • L Offline
                                          L Offline
                                          lis610
                                          wrote on last edited by
                                          #40

                                          Got the same display. It is working with Adafruit graphicstest example. I did not connect any components just display. If I ran the FAN sketch should be something showing on the display?
                                          Or need to connect everything?

                                          petewillP 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          3

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular