# "i2c out" - node: how to configure to send out values like 0x3200, 0x0100 etc.?

**URL:** <https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525>\
**Category:** General\
**Created:** [13 March 2023 21:43 UTC](https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525 "2023-03-13T21:43:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piet31](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Piet31](https://discourse.nodered.org/u/Piet31)\
**Post date:** [13 March 2023 21:43 UTC](https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525/1 "2023-03-13T21:43:14Z")

</div>

Hi,  
I have a working communication between a Raspi 4B and a triac module over I2C. For setting the frequency of the triac module e.g. to 50Hz (0x32) I have figured out that I have to write to register 0x05  
the value 0x3200. On the command line this is "i2cset -y 1 0x47 0x05 0x3200 w" (w for word) and in Python it is i2cbus.write\_word\_data(0x47, 0x05, 0x3200). In both ways it works well and I can control the triac module. But how to configure the "i2c out" - node (together with an inject - node) to send out values like 0x3200 ? I have tried to send 12800dec, 5000dec (2 bytes) and also 0x3200 (as string) but nothing works.  
Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 March 2023 07:17 UTC](https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525/2 "2023-03-14T07:17:22Z")

</div>

Try sending a number 12800

---

<div class="post-metadata">

**Author:** ![Piet31](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Piet31](https://discourse.nodered.org/u/Piet31)\
**Post date:** [14 March 2023 14:18 UTC](https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525/3 "2023-03-14T14:18:28Z")

</div>

Thanks  
Sending a number (12800 for 0x3200) was also my first approach. But probably because of not watching carefully (it was late) I had the impression it did not work. Today I shutdown and switched the Raspi Off and On and tried again to send a number. And .. it works ! Probably the I2C bus got locked up by sending too many wrong commands.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 March 2023 14:18 UTC](https://discourse.nodered.org/t/i2c-out-node-how-to-configure-to-send-out-values-like-0x3200-0x0100-etc/76525/4 "2023-03-28T14:18:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
