Skip to content

Problem using DS18B20 sensor with ESP32 board #97

Answered by lcgamboa
villacampa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @villacampa ,

This problem is because Qemu does not support accurate cycle simulation. Therefore, signals that depend on exact timing, such as the onewire, dhtxx, or ws2812b protocols, do not work well with Qemu. In PICSimLab Using a value for the "Qemu CPU mips" combobox other than "no limit" causes Qemu to try to simulate an execution speed, which causes these peripherals to work sporadically. Setting the option to "Auto" in the example of the DS1820 that you send, some values are received (usually wrong). With the DHT22 it works with the "auto" option and as the IO clock at 4MHz on my computer (example attached). I didn't add examples of these protocols because I still haven't found…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@villacampa
Comment options

@lcgamboa
Comment options

Answer selected by villacampa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants