I2C tutorial required


Is there a tutorial for using the I2c nodes? I admit to being a complete newbie on XOD and am finding it extremely difficult to get going. I’ve done the beginner tutorial and that’s fine as far as it goes, but as soon as I tried to set up what to me was a simple project - getting the temperature from an I2c temperature/pressure module and displaying it on an I2c 16x2 LCD I crashed and burned.

Yes, the 16x2 LCD has a node and it works great, but I need to read two bytes from the sensor. Choosing various I2C nodes, they all seem to end with ‘ready to go on’, but go on where, how, to what?

I assume ‘I2C request bytes 6’ asks for 6 bytes from the module at the given address, but what happens to the reply? I thought the bytes would populate the six ‘numbers’, but that doesn’t seem to happen.

XOD looks really interesting, but I really need more in the way of instructions.


If your sensor can only return 2 bytes, it is probably returning an error when you try to request 6 bytes. You should be able to copy the code to a new i2c-request-bytes-2 and change the code that asks for 6 bytes to only ask for 2 bytes and process the returned data appropriately.

You will also need to use the correct address for the sensor. Many sensors will give the address in hexadecimal, but the XOD nodes only take decimal, so you may need to convert.


Strangely all this is very actual for me! Thanks!


‘Copy the code…’ if you can tell me where the code is to copy, I’ll give it a try.

Thank you for the prompt response.



Actually, I am making progress to the extent that I now realise how much I don’t know, so feel free to close this thread while I back-up my ambitions with XOD.