Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple sensors? #22

Open
drf5n opened this issue Jan 17, 2024 · 0 comments
Open

Multiple sensors? #22

drf5n opened this issue Jan 17, 2024 · 0 comments

Comments

@drf5n
Copy link

drf5n commented Jan 17, 2024

Is this repository the documentation for the part on https://docs.wokwi.com/getting-started/supported-hardware ?

I was trying to use the DS18B20 Wokwi component as inserted by the UI and had some success, but if I connect multiple chips to the same port, it does not seem to work.

...As I type that out, I think I realize that the "not-circuit-simulator" part of Wokwi means that multiple use of a single pin might not work properly.

Do multiple sensors on a single One-Wire pin work? With the DS1820?

////// Yes they do. Example:

https://wokwi.com/projects/374187973650215937

It seems you have to set the deviceID attribute in the diagram.json file:

    {
      "type": "board-ds18b20",
      "id": "temp1",
      "top": -87.53,
      "left": 109.68,
      "attrs": { "deviceID": "111111111111" }
    },
    {
      "type": "board-ds18b20",
      "id": "temp2",
      "top": -87.53,
      "left": 157.68,
      "attrs": { "deviceID": "222222222222" }
    },
    {
      "type": "board-ds18b20",
      "id": "temp3",
      "top": -87.53,
      "left": 205.68,
      "attrs": { "deviceID": "333333333333" }
    },

Setting the device ID in the pop-up window doesn't appear to do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant