Configuring node-red-contrib-i2c - i2cOut settings

Hi there,
I am trying to configure the i2cOut setting in node-red-contrib-i2c. The node is correctly installed and communicating with node red but I am unable to find any information on what the correct parameters should be for the command parameter and send bytes parameter. This is communicating with a DFR0971 to set the output voltage between 0-10v. I have tried randomly sending various parameters that sometimes work and other times don't. If anyone could enlighten me on what parameters i2cOut is expecting that would be great. I have searched the web but found nothing usable or understandable that would help. Thanks..

@readw Welcome to the forum. Note: I fixed your title to refer to node-red-contrib-i2c you were missing the i.

I've never used the DFR0971, but doing a google search I found this:

You should take a read and see if that will help you out.

@zenofmud Thank you for your suggestion and correction. I have looked at the but I am unable to relate any of that information to the node-red-contrib-i2c.

Any other ideas on how I can get a 0-10v output from node-red?

Well. There's a lot of data available from the link that @zenofmud provided! You'll find the datasheet of the GP8403 (which provides you information of the protocol this DAC understands) and an existing implementation of this protocol (for MCUs) as guideline how things have to be put in order. That should allow you to setup your DFR0971 in NR as well.

It looks like a good starting point that you already achieved to get (sometimes) a reaction from the DAC. Would you mind sharing the flow that you've created so far?

1 Like

Hi There,

The data sheet, although very informative, is beyond my level of expertise. The i2C node has four parameters that need to be set. Bus number, (1) which works. Bus address, (91) which works. The "Command" which I can find no information on what it is expecting and the "Send bytes" which I am guessing is the message size in bytes. Again, I can find no information on what should be set here.

The node I am using is very basic, A time stamp, counter and the i2c out which had the four parameters that need to be set. I am seeking some guidance on what I should be populating the "Command" and "Send bytes" parameters. Any guidance would be appreciated.

Many thanks


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