Home > other >  Questions about JY901 posture sensor IIC transmission data
Questions about JY901 posture sensor IIC transmission data

Time:11-20

About JY901 attitude sensor, download data have routines, serial port communication is easy, but with STM32F407 simulating IIC communication, found that can't communicate, send back data is wrong, very helpless, don't feel timing problem much, just don't know why the back of the data is wrong,,
Data not received '? 'is'.'
Have a great god please answer quite disturbed, thank you.

CodePudding user response:

Limited by the length of the IIc communication, communication distance is not too long, so lead to posture sensor initialization failed, initialize a few more times until success is good, but the IIc is very unstable, advice or use a serial port, China this year was the dreadful situation

CodePudding user response:

Today and make a day, there is still no progress, simulating IIC there is still no communication is successful, now there are still a few
1. I now this is can support fast mode, if use normal mode, whether can you?
2. I need to know the accurate timing of the IIC, don't know whether you need IIC accurate timing,
3. There are waiting for answering this question, if there has been no wait, to STOP the directly, is not very clear why
4. Pull up resistors for, I am after a 4.7 K, but feel (and directly set the GPIO port to la) doesn't do anything, don't know if I really need to
5. IIC communication, join without oscillograph, how to write the program, see the effect, judge whether the communication

Hope great god answers to above problem, thank!!!!!!

CodePudding user response:

I use a serial port communication, Angle data delay, is about 3 ~ 4 seconds, don't know what to ask

CodePudding user response:

3-4 seconds is normally won't appear this kind of situation, please check the hardware and software problems,

CodePudding user response:

On the inside is usually very weak, more than 20 k, so don't work,
In addition, please make sure your pin clock whether neat (enough) wide, HaoLai is square wave, otherwise is not stable,
The clock is not strict, 10% should be no problem,

CodePudding user response:

Could you tell me the building Lord, written in Linux application layer JY901 I2C program, why the output of the ROLL Angle has value in the first clock, starting from the second clock is zero? Boards is modified based on 51 single-chip processor boards and other acceleration, angular acceleration, the other two angles have value,

CodePudding user response:

Is usually because the problem of program

First check the address is correct
Then check whether there is a normal ACK response

  • Related