problems with DS18S20/DS18B20 and DHT22 sensors

Any bugs you encounter with Flowcode should be discussed here.
chipfryer27
Valued Contributor
Posts: 1147
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: problems with DS18S20/DS18B20 and DHT22 sensors

Post by chipfryer27 »

Hi

Similar to what I saw, in that the DHT22 doesn't seem to respond.

Don't forget that in my above post I noticed that when I used SampleSensor the component returned "1" meaning a failure to communicate (cool hand Luke ??) even though the analyzers said it was. You may need to adjust your chart to accommodate. Probably won't matter in simulation.

Regards

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

Re: problems with DS18S20/DS18B20 and DHT22 sensors

Post by medelec35 »

Hello.
Can you try with the other DHT22 component within the component libraries.
To do that enter DHT22 within Component Libraries >Search.
Add the Temp / Humidity (Grove 101020019) to the same panel that contains the other DHT22.
Right- click on the original DH22 then choose Selection > Replace and Select the Grove version that should appear within the Component Replacement window and select OK.
Finally delete the component you have just added which leaves only one DH22 on the component panel.

This saves replacing all the component functions with new ones.
Martin

aderito
Posts: 10
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 6 times

Re: problems with DS18S20/DS18B20 and DHT22 sensors

Post by aderito »

Hi Martin,
I did what you asked me
the dht22 Grove 101020019 is working correctly both in proteus and physically.
attached screen capture with proteus.
doubt:
In the future, whenever I need to use this component, will I have to resort to Grove 101020019 or is this just until the situation is resolved?
Now we need to resolve the issue with ds18s20/18b20. Thanks for the help.

regards, Adérito
Attachments
dht22 fcv10_proteus ok.png
dht22 fcv10_proteus ok.png (416.71 KiB) Viewed 820 times

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

Re: problems with DS18S20/DS18B20 and DHT22 sensors

Post by medelec35 »

Hello.
Both DHT22 components will require looking into, so the solution is only temporary.
As for the DS18B20/DS18S20.
I only have the DS18B20 and Woking on hardware with 16F18877 running at 32MHz.
It might be best wating until you receive the sensor.
If then still not working, then post your fcfx project file and I will see if I can spot the issue.
Martin

Post Reply