![]() If none of that works try Bryce’s suggestion and connect a different I2C sensor (eg MPU6050) to the Qduino to see if that works. Try adding #include to the top of your sketch. It might also be possible that you need the Wire library in order to get I2C to work on the Qduino. Check that you are connecting to these pins and swap these connections just in case the SDA and SCL signals are the wrong way around. The Qduino I2C bus is on pins D2 (SDA) and D3 (SCL). When connecting the MPU9250 directly to 3.3V you should bridge the jumper near the voltage regulator with some solder so that the voltage regular is bypassed. The MPU9250 is designed to run at 3.3V and the DOF board has a built in regulator to drop a 5V supply voltage to 3.3V. ![]() Your circuit diagram shows it connected to 3.3V on the Arduino and that’s what you want when connecting to the Qduino. Hi mentions you probably should check what voltage you are running on the MPU9250. Which it would be as there is no device connected to the I2C bus.įrom this I conclude the I2C interface is not working in your set up and may be due to the CPU clock difference. I ran the code on a UNO (dont have Qduino or MPU9520) status returned is -1. The register is the clock source to the gyro. ![]() It writes a value then reads it back, if it is not the same it returns with an error. Status return of -1 (as you have shown) is first read / write to the MPU9250. UNO Qdino differences, 16Hz clock 8MHz clock, Atmega328P Atmega32u4.ĮDIT: Further investigation. If you check these values it might give you a clue. Then there is a whole lot of if statements that return negative which is where your code is dropping out. The begin routine first intialises the SPI or I2C interfaces depending on which you are using. Dont know which MPU9250 library you are using, so I chose the first one in the list, Bolder Flight systems. Have looked at Sparkfun schematic and library on Github. The circuit is the same which looks like this. If (status IMU initialization unsuccessfulĢ3:38:13.187 -> Check IMU wiring or try cycling powerīut it runs well with arduino uno so i do not know what the problem is. The CAD files and renderings posted to this website are created, uploaded and managed by third-party community members. an MPU9250 object with the MPU-9250 sensor on I2C bus 0 with address 0圆8 Join 9,350,000 engineers with over 4,850,000 free CAD files. I am trying to measure the inclination angle. So what i want to do is to make the qduino read the code and display the inclination value. Hi there, I have some problem with the code at the moment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |