Scan I2C register of MPU6000 module through node red

#1

I have Mpu6000 which is connected to I2C shield mounted on Raspberry Pi 3 B+.
I have installed the node-red and I2C node in raspberry pi, but to scan the I2C data, do I have to write the code or is there any other way to scan I2C register?

Like In Raspberry Pi command shell I am using the cmd - 'i2cdetect -y 1'

I just start with this node still not able to find anything useful

0 Likes

#2

You have to set the device address, the command to get the data you want and set the number of bytes that will be returned in the I2C node. The node will return a buffer that you have to extract the data from. Show us a little more of what you are trying to do.
i2cdetect -y 1 will only give you the address of the device.

0 Likes

#3

If you really do want to scan it from within node-red, which seems an odd thing to do, you can execute the detect command using an Exec node.

0 Likes