Accelerometer displayed on the LED using FRDM-K20D50M

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Accelerometer displayed on the LED using FRDM-K20D50M

1,298 次查看
andersrullestad
Contributor I

Hey!

So I am having some issues with my assessment creating a working board where the accelerometer data is visually displayed on the LED in an appropriate manner. Also, A serial terminal displaying the raw accelerometer values along each of the three axes (X, Y, Z).
When you tilt it it should show different colors depending on what angle you have it in. the main colors are RED, GREEN and BLUE.
I'm new to Kinetis and FRDM board so I hope someone can give me a lot of help finishing til task.

Thank you.

0 项奖励
回复
1 回复

783 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Anders,

    Please refer to the FRDM-K20D50M sample code, the frdm-k20d50m-demo have the function what you needed:

http://cache.nxp.com/files/32bit/software/KINETIS_50MHZ_SC.zip?fpsp=1&WT_TYPE=Lab%20and%20Test%20Sof...

  You can find the project in folder:\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo

Wish it helps you!

If you still have question, please let me know.


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复