GithubHelp home page GithubHelp logo

Comments (7)

lukas12p avatar lukas12p commented on August 31, 2024

Try do float temp = dht.readTemperature(); twice with 1000msec delay to wake up dht.

from low-power.

ribtoks avatar ribtoks commented on August 31, 2024

@lukas12p I will try, but so far I assume reading temperature works, but sending data with radio does not work. I log all radio signals on the receiver side so if the temperature reading would fail - it would just log some garbage.

Maybe I just need to insert delay(1000); after power sleep to wake up everything?

from low-power.

rocketscream avatar rocketscream commented on August 31, 2024

Yes, you should dd the delay(1000) after sleep and probably before sleep too. I believe the DHT sensor needs some time to stabilize after waking up. You can also replace the transmission data with a known constant to prove this.

from low-power.

ribtoks avatar ribtoks commented on August 31, 2024

@rocketscream will try, thanks!

from low-power.

ribtoks avatar ribtoks commented on August 31, 2024

@rocketscream do I need to "reinitialize" radio module and DHT22 after power-down sleep? Is it equal for them as if you would just turn them off? I mean do I need to rerun setup() after low-power sleep?

from low-power.

rocketscream avatar rocketscream commented on August 31, 2024

I have never use that radio module nor the DHT22 before but by right it shouldn't and will not mess anything related to it by going to sleep. Have you try removing the sensor portion and simply sending known constant data with the radio?

from low-power.

ribtoks avatar ribtoks commented on August 31, 2024

Adding delay(1000); before and after power-down sleep and setup() call after this delay made the sensors work again.

from low-power.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.