I want to access a MPU-9250 via Node-RED. Unfortunately the node-red-contrib-mpu9250 is not working anymore with newer node.js systems and up to now the git issue is pending but I need the data, so I decided to access the MPU on my own.
First I accessed it via Python, which is working. But I rather would like to use a specific node instead.
I tried node-red-contrib-i2c which offers an i2c write, a send and a scan node. I didn't need the scan node as I knew the address but it helped me to understand that the node only accepts decimal format.
So, instead of 0x68 I entered 104 and could communicate with the MPU-9250.
However, I can't find any easy way to read just a specific register or a dump of all registers. So what i2cdump or i2cget offers.
I can send commands, set it to specific modes and send a read command afterwards but I am looking for an easy way to read a specific register.
Does anyone know if this is existing? It is working with an exec node using i2cget directly but... not the nicest way to solve it.