<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ABOUT DHT22</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72547/about-dht22</link><description>NRF52840 DK 
 S140 
 SDK 15.3 
 
 
 
 
 Hello I want to read the value of dht22 at regular intervals using the _timer_handle. But I can&amp;#39;t read the value. i read this and this of DEVZONE, f ailed to resolve. How can I get the value?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Mar 2021 08:50:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72547/about-dht22" /><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/299178?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 08:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7618ac7e-6ce3-4b58-8c60-ba425c3fb044</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6685._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/299160?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 07:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc06ab3-d0ec-48e9-8467-de47d3bfede0</guid><dc:creator>MJ-K</dc:creator><description>&lt;p&gt;&lt;span&gt;I have resolved it by referring to&amp;nbsp;&lt;a href="https://github.com/AubreyTharpe/nRF-BLE-DHT22-sensor"&gt;this site.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your answer!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/299159?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 07:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115ef270-c966-4ea5-b12b-4391dc78cd38</guid><dc:creator>MJ-K</dc:creator><description>&lt;p&gt;&lt;span&gt;I have resolved it by referring to &lt;a href="https://github.com/AubreyTharpe/nRF-BLE-DHT22-sensor"&gt;this site.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;3.3V is possible.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;Thank you for your answer!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/298796?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 16:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b966ee16-cbfe-4e73-9366-c5b9b27ed89d</guid><dc:creator>awneil</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/72547/about-dht22/298758#298758"]It will probably be similar to the ds18b20 sensor[/quote]
&lt;p&gt;Yes, the basic principle seems&amp;nbsp; to be the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/298758?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 14:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad428330-05d9-4242-bf9a-fde3b5e407c0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You would need to check the datasheet to make sure that it can run on the same voltage as the nRF, as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&amp;nbsp;says.&lt;/p&gt;
&lt;p&gt;The nRF doesn&amp;#39;t have a physical one wire interface peripheral, so it needs to be bitbanged. It will probably be similar to the ds18b20 sensor, which a colleague of mine tested once, as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70069/interfacing-nrf52832-with-ds18b20/295736#295736"&gt;this ticket&lt;/a&gt;. Please note that you would need to modify the driver from that example to match your sensor.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And finally, I really want to support&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&amp;#39;s point about making sure that this works before you start adding the complexity of doing this from a timer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also note that this may not work out of the box when you add the softdevice (for BLE), because bitbanging is very time sensitive, you may need to look into the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api"&gt;Timeslot API&lt;/a&gt;&amp;nbsp;to ensure that you have a timeslot where the softdevice will not interrupt you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ABOUT DHT22</title><link>https://devzone.nordicsemi.com/thread/298616?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 09:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87fa3b9a-e583-480c-89bf-814bb77b1055</guid><dc:creator>awneil</dc:creator><description>[quote userid="98449" url="~/f/nordic-q-a/72547/about-dht22"]I want to read the value of dht22 at regular intervals using the _timer_handle[/quote]
&lt;p&gt;Before that, have you successfully managed to just read the DHT22 ?&lt;/p&gt;
&lt;p&gt;There&amp;#39;s no point adding the complication of a timer before you&amp;#39;ve got the basic reading working.&lt;/p&gt;
&lt;p&gt;Note that this is a proprietary open-drain single-wire interface; it is similar to the Maxim (formerly Dallas) 1-Wire (TM), but not &lt;em&gt;quite&lt;/em&gt; the same.&lt;/p&gt;
&lt;p&gt;You are going to have to bit-bang it.&lt;/p&gt;
[quote userid="98449" url="~/f/nordic-q-a/72547/about-dht22"]How can I get the value?[/quote]
&lt;p&gt;By following what the &lt;strong&gt;datasheet&lt;/strong&gt; tells you: the device neither knows nor cares what microcontroller you use - you just have be sure that you implement whatever&amp;nbsp;&lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;datasheet&lt;/strong&gt;&lt;span&gt;&amp;nbsp;tells you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://community.st.com/s/question/0D53W00000bdXlLSAU/has-anyone-try-to-dht11-or-dht22-with-stm32f7-or-stm32h7"&gt;community.st.com/.../has-anyone-try-to-dht11-or-dht22-with-stm32f7-or-stm32h7&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you note the issue in the linked thread that the DHT is a 5V device, but the nRF is only 3.3V ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>