Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C reading issues on MPU-6886 and 4 channel relay #103

Open
nigel-f-francis opened this issue May 11, 2021 · 0 comments
Open

I2C reading issues on MPU-6886 and 4 channel relay #103

nigel-f-francis opened this issue May 11, 2021 · 0 comments

Comments

@nigel-f-francis
Copy link

Hello All,

First off I would like to thank all those who contributed to this amazing port. If not for MicroPython I would not be able to use this board. Thanks much everyone!
Currently I am having issues reading registers on my I2C four channel relay. I can write to the register using the mem_transmit() function and the relay clicks however whenever I read from the same register using mem_receive() the relay hangs and is only operational after a hard reboot of the relay (a restart of the device only will not fix the hang). Any ideas or known issues there? I am using I2C id 3 and both 100 and 400 frequencies will not work. The receive function is as follows; mem_receive(3, 100, 0x26, 0x11, 1, 1, 10).
I also have an issue with the MPU-6886 IMU and I can write successfully to registers and read the who am i register successfully however the temp, acceleration and gyro data makes no sense as they jump all over the place I am using a function to combine the two bytes however the data received is just wrong. I have reverse engineered some C and python code but to no avail.
Any ideas as to where I should start? I am totally lost here.

Regards,
NFF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant