• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 BLE Server with DHT22

Q&A Forum › ESP32 BLE Server with DHT22
0 Vote Up Vote Down
John Remnant asked 5 years ago

FYI. I found to get this sensor to work in module 5 unit 3  I had to set the 3rd parameter for the DHT sensor as descrided in the notes in the DHT library examples . I set this values to 15 to get meaningful temperature and Humidity readings /

// NOTE: For working with a faster chip, like an Arduino Due or Teensy, you
// might need to increase the threshold for cycle counts considered a 1 or 0.
// You can do this by passing a 3rd parameter for this threshold. It’s a bit
// of fiddling to find the right value, but in general the faster the CPU the
// higher the value. The default for a 16mhz AVR is a value of 6.

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hi John,
Are you also using the DHT22? Did you set that parameter with 15?

DHT dht(DHTPin, DHTTYPE, 15);

Thanks,
Rui

0 Vote Up Vote Down
John Remnant answered 5 years ago

Hi Rui, 
Yes I am using a DHT22 and yes I set it as above.
Without the third parameter I was gettting readings up above 3000 degrees c. and with the 3rd parameter set too high I got readings of 0 degrees C 
Regards

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Thanks for letting me know. I didn’t have to chance, but I’ll give it a try too to see if it changes my readings.
Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.