You need to log in to create posts and topics.

HTU21D - scripted component

I2C temperature and relative humidity sensor

Data sheet: https://cdn-shop.adafruit.com/datasheets/1899_HTU21D.pdf
Temperature input: 10mV / °C
Humidity input: 10mV / %

How to add to component list: https://simulide.com/p/custom-components/

---

And two additional virtual components for I2C developing:
I2C monitor - monitors I2C bus and displays I2C events
I2C tester - a kind of UART to I2C bridge, you can send command sequences to I2C devices
Sequence format: @<I2C address> W<number of bytes> <data bytes> R<number of bytes>
Address and numbers can be decimal and hexadecimal. CR must be sent at the end of the sequence.
(Warning! No validity check, invalid numbers are converted to zero.)

Sequence examples:
@0x40 W1 0xE3 R3 W1 0xE5 R3
@64 w0x01 227 r3 w1 0xe5 r0x3 (same as first)
@0x50 W2 0 0 R1 @0x40 W2 0xE6 0x81 W1 0xe7 r1 (multiple devices in one sequence)

HTU21D project example

Uploaded files:
arcachofo has reacted to this post.
arcachofo

Hi there!

Thank you for the effort and will to share. The question is - is there a git repository behind these components so updates/fixes could be synchronized easily?

If there will be any updates, I will share them here with the community.