Hello
I want to use FRDM-STBC-AGM01 sensor board model with FRDM-KL25Z board in codewarrior
I was wondering if you can find example file, or explain which pin port I should use and how does it work.
If you can find me the example code, it will be great.
I want to use the sensor board to read the output data from agm01 board on my codewarrior
Thank you
解決済! 解決策の投稿を見る。
Hi Yonggun,
Attached you can find my simple bare metal example code I created for the Freescale FRDM-KL25Z platform and FRDM-STBC-AGM01 board a month ago. It demonstrates how to read both the acceleration and magnetic data from the FXOS8700CQ and the angular rate data from the FXAS21002C using an I2C interface and an interrupt technique. You will find how to initialize the I2C1 module as well as both PTD4 and PTA5 pins that are connected to the INT1_8700 and INT1_21002 push-pull, active low interrupt pins. All jumpers were in the default position (2-3).
Hope it helps.
Regards,
Tomas
PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.
Hi Yonggun,
Attached you can find my simple bare metal example code I created for the Freescale FRDM-KL25Z platform and FRDM-STBC-AGM01 board a month ago. It demonstrates how to read both the acceleration and magnetic data from the FXOS8700CQ and the angular rate data from the FXAS21002C using an I2C interface and an interrupt technique. You will find how to initialize the I2C1 module as well as both PTD4 and PTA5 pins that are connected to the INT1_8700 and INT1_21002 push-pull, active low interrupt pins. All jumpers were in the default position (2-3).
Hope it helps.
Regards,
Tomas
PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.
Hello.
Thank you for the code, it helps me huge.
I am planning to build drone with it, and do you think i need to use filter function for sensor?
If so, I wonder how I should apply. I heard that i can use Kalman filter though
Hi Yonggun,
The complete sensor fusion source code for the FRDM-KL25Z + FRDM-STBC-AGM01 combination, including the Kalman filter is planned to be released Q3 2015 on Sensorfusion. Please use this dedicated community space for any future questions related to sensor fusion.
Regards,
Tomas