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

No data received via Main Serial #14

Open
victorfdezc opened this issue Mar 11, 2021 · 4 comments
Open

No data received via Main Serial #14

victorfdezc opened this issue Mar 11, 2021 · 4 comments

Comments

@victorfdezc
Copy link

Hello, I am having some problems in getting data from the IMU with an Arduino via Serial. First I have to say that im new to this kind of projects, so I apologize if can't explain properly.
I have a sideboard with a GD32F130 C6T6 and a MPU-6050A. I have unlocked the micro and then flashed it (with lot of difficulties because most of the time I get errors meanwhile writing the pages). Before flashing, I modified config.h to have the Hoverboard Variant because it includes the Serial Control via serial port (I have also tested with Serial Feedback deactivated).
Then, I modified this Arduino program to define the same Feedback struct that is sent via serial by the Sideboard.
And finally, I connected the 3.3V and GND pins from the SWD programming pins to power the board, and the GND and RX (pin number 2) pins from Arduino have been connected to GND and TX from the connector that connects the Mainboard with the Sideboard.
However, Arduino does not receive anything via serial. In fact, I have enabled DEBUG_RX in the Arduino program and I only receive 0s.
I have also tested to disable DMP as said in this comment, but again nothing happens.
I don't know what is wrong and I don't have more ideas. Any help would be appreciated.
Thanks

@EFeru
Copy link
Owner

EFeru commented Mar 12, 2021

We know that there is an issue running the DMP on MPU-6050A, running on MPU-6050 is ok. However i think your issue is in the Serial communication as I read your comment.
Are you sure the sideboard is sending data? With an FDTI adapter or an oscilloscope you can check that by connecting it directly to the Tx pin of sideboard.
Then next step is to check the Arduino code.

@Candas1
Copy link
Collaborator

Candas1 commented Mar 12, 2021

Hi,

I couldn't get DMP to work with MPU-6050A.
Only if I disable DMP in config.h, I can get Accelerometer and Gyroscope raw values in DEBUG MODE

@Candas1
Copy link
Collaborator

Candas1 commented Mar 12, 2021

Couldn't post a message on invensense forum, I guess it was moderated, need to try again.
This is the only hint I found about possible differences between MPU6050 and MPU6050A, but still I didn't get it to work

@victorfdezc
Copy link
Author

Thanks for the response! I have purchased an FTDI adapter and it seems that the problem is the serial communication. I have tried multiple times to upload the Debug Variant but it always fails before flashing completely. Disabling the MPU allows me to flash the Debug Variant, but again, nothing is sent :(

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

3 participants