Getting started with Electmaster JY-901 9-axis gyro/accelerometer

I am having problems getting started using the Electmaster JY-901 motion sensor. It doesn't have a lot of microcontroller documentation, just Windows and Android docs. It looks like they have a lot of setup in their Windows app. The module seems to have 2 sides - a I2C side and a serial side. With my protocol analyzer I don't see anything coming out of the I2C side from the chip itself, but I haven't written any code to initiate that bus. That said, the sketch I did find was for serial but when I connect the RX and TX lines to my ESP32 board, I can't upload any sketches, which tells me I might likely be interfering with the PC serial connection. The board has a second serial pair, but that has the same result. Sort of stumped... That said, the protocol analyzer shows good bursts of 44 bytes of data. which appears to be its regular serial report.

I am not sure where to go as there isn't much details on how to get this set up and how to issue it commands. I would assume that there are commands to initiate all of the calibrations. Any suggestions?

Some things I have learned since initial posting: It is best to implement the I2C to connect to the microcontroller. The serial side is primarily to hook it up to other devices like computers or phones over a USB or serial device. While on the I2C side, the libraries have some pretty basic functions that get most of the data out of the registers and you can get the device address and register IDs quite easily. I still have to figure out how to initiate the calibration process and APIs. There is a hint to test APIs and I am thinking those are likely tied to the calibration process. I have the module returning data now, but I don't know if I can trust the data yet. I will have to make this run on battery and be portable to do the synchronization, once I figure out how to program it, then I will need to build a sketch to initiate the process on the device, where it will store its calibration numbers in the module.

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