DHT22 Issues

For general Flowcode discussion that does not belong in the other sections.
Post Reply
medelec35
Matrix Staff
Posts: 1451
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Flowcode v10 DHT22 Issues

Post by medelec35 »

Hello.
We are aware of DHT22 issues.
If fixed for some target devices, it will not work on others.
I have got a temporary solution for people to try.

I have added an additional property called Check Threshold to allow the DHT22 to work on more devices
If you can't get it to work, I also have also got a debug version that will show you the range in which the Check Threshold should be set at for the component to work.
You can ask for that version, and I will post it

For the 16F18877 the range is very tight.
Here are values for some target devices:
Arduino 165 - 181
TTGO 157 - 177
16F18877 196 -197

Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\Components
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again.

I hope this helps as a temporary fix.
If this does work for your target devices, then I will make the same changes for the Grove version.
Attachments
DHT22.fcpx
(6 KiB) Downloaded 21 times
Martin

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: DHT22 Issues

Post by jgu1 »

Hi Martin!

Thank´s I test tomorrow. ;)

Jorgen

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: DHT22 Issues

Post by jgu1 »

Hi Martin!

I have perform some test with arduino and a Pic16F876 with your new component.

Arduino: it work with your recommended setting, but it is unstable, sometime it stop work and sometime the display show for the Hum -3247,5 after some second it run again.

Pic16f875 20mHz not possible to get i work no matter what the setting, value is set.

If I in update roll back to the "Grove DHT22 and DHT22" ver. 3 it work stable for both, Arduino and Pic. Maybe you could have a look in the ver. 3 component ;)

I have not test the other devices.

If I can help you,let me know.

Jorgen

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Flowcode v10 Re: DHT22 Issues

Post by medelec35 »

Hi Jorgen.
Sorry for the delay.
Can you and anyone else who has a DHT22, try the attached component please?

Instructions can be found here for anyone who have not added a component yet.

For me, the updated component is working on the Arduino Uno, ESP32 Lolin and 16F18877 at 19MHz and above.
Attachments
DHT22.fcpx
(6.87 KiB) Downloaded 16 times
Martin

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: DHT22 Issues

Post by jgu1 »

Hi Martin!

No probs :D

Perform a test and you hear

Jorgen

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: DHT22 Issues

Post by medelec35 »

Thanks Jorgen.
We put a fair bit of time and effort into it, especially Steve.
Fingers crossed.
Martin

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: DHT22 Issues

Post by jgu1 »

Hi again!

I have two testboard up running with the DHT22 not the Grove. One with Pic16f876 20 mHz and one with an Arduino Uno.

Just perform a test with these devices, working perfect now ;)

I have not test the other devices, if no other do, I can do it later ;)

As always, thank´s for your and Steve´s job, well done. Push it to update.

By the way, think it is long time we have heard from Benj, hopefully he still work for MM? :D

Br jorgen

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: DHT22 Issues

Post by Steve-Matrix »

jgu1 wrote:
Thu Feb 15, 2024 7:00 pm
By the way, think it is long time we have heard from Benj, hopefully he still work for MM? :D
Yes - Ben is still here, but splitting his time amongst many different projects.

Post Reply