Using the FRDM-MK64 Board to write to Accelerometer data to an SD Card in KDS

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

Using the FRDM-MK64 Board to write to Accelerometer data to an SD Card in KDS

Using the FRDM-MK64 Board to write to Accelerometer data to an SD Card in KDS

Writing to Acceleometer data to SD Card in KDS

 

Description:

 

A project made in KDS using the FRDM-MK64FN1MOVLL12 board to write the Accelerometer data to an SD Card.

Every second, the time and the value of the variables x, y and z taken from the Accelerometer will be written to an SD Card.

They will be written in a log.txt file, which will be created if it does not exist.

The LED will flash green every second when writing.

In case of an error, the LCD will flash red every second.

 

Sections of code taken from http://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/

 

Issues:

 

Time will always begin at 17:51:31 after being flashed.

This is due to it being set as such at TmDt1_Init.

标签 (1)
附件
%3CLINGO-SUB%20id%3D%22lingo-sub-1117868%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20FRDM-MK64%20%E6%9D%BF%E5%B0%86%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20KDS%20%E4%B8%AD%E7%9A%84%20SD%20%E5%8D%A1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117868%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3E%E5%9C%A8%20KDS%20%E4%B8%AD%E5%B0%86%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E8%AF%B4%E6%98%8E%EF%BC%9A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%9C%A8%20KDS%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20FRDM-MK64FN1MOVLL12%20%E6%9D%BF%E5%B0%86%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%E5%88%B6%E4%BD%9C%E7%9A%84%E9%A1%B9%E7%9B%AE%E3%80%82%3C%2FP%3E%3CP%3E%E6%AF%8F%E7%A7%92%EF%BC%8C%E4%BB%8E%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E8%8E%B7%E5%8F%96%E7%9A%84%E6%97%B6%E9%97%B4%E5%92%8C%E5%8F%98%E9%87%8F%20x%E3%80%81y%20%E5%92%8C%20z%20%E7%9A%84%E5%80%BC%E9%83%BD%E4%BC%9A%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%E3%80%82%3C%2FP%3E%3CP%3E%E5%AE%83%E4%BB%AC%E5%B0%86%E8%A2%AB%E5%86%99%E5%85%A5%20log.txt%20%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E5%A6%82%E6%9E%9C%E8%AF%A5%E6%96%87%E4%BB%B6%E4%B8%8D%E5%AD%98%E5%9C%A8%EF%BC%8C%E5%88%99%E4%BC%9A%E5%88%9B%E5%BB%BA%E8%AF%A5%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%3CP%3E%E5%86%99%E5%85%A5%E6%97%B6%EF%BC%8CLED%20%E6%AF%8F%E7%A7%92%E9%83%BD%E4%BC%9A%E9%97%AA%E7%83%81%E7%BB%BF%E5%85%89%E3%80%82%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%E5%8F%91%E7%94%9F%E9%94%99%E8%AF%AF%EF%BC%8CLCD%20%E5%B0%86%E6%AF%8F%E7%A7%92%E9%97%AA%E7%83%81%E7%BA%A2%E5%85%89%E3%80%82%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BB%A3%E7%A0%81%E9%83%A8%E5%88%86%E5%8F%96%E8%87%AA%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%97%B6%E9%97%B4%E9%97%AA%E7%83%81%E5%90%8E%E5%A7%8B%E7%BB%88%E4%BB%8E%2017%3A51%3A31%20%E5%BC%80%E5%A7%8B%E3%80%82%3C%2FP%3E%3CP%3E%E8%BF%99%E6%98%AF%E5%9B%A0%E4%B8%BA%E5%AE%83%E5%9C%A8%20TmDt1_Init%20%E4%B8%AD%E8%A2%AB%E8%BF%99%E6%A0%B7%E8%AE%BE%E7%BD%AE%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1117868%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3E%E5%9C%A8%20KDS%20%E4%B8%AD%E5%B0%86%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E8%AF%B4%E6%98%8E%EF%BC%9A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%9C%A8%20KDS%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20FRDM-MK64FN1MOVLL12%20%E6%9D%BF%E5%B0%86%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%E5%88%B6%E4%BD%9C%E7%9A%84%E9%A1%B9%E7%9B%AE%E3%80%82%3C%2FP%3E%3CP%3E%E6%AF%8F%E7%A7%92%EF%BC%8C%E4%BB%8E%E5%8A%A0%E9%80%9F%E5%BA%A6%E8%AE%A1%E8%8E%B7%E5%8F%96%E7%9A%84%E6%97%B6%E9%97%B4%E5%92%8C%E5%8F%98%E9%87%8F%20x%E3%80%81y%20%E5%92%8C%20z%20%E7%9A%84%E5%80%BC%E9%83%BD%E4%BC%9A%E5%86%99%E5%85%A5%20SD%20%E5%8D%A1%E3%80%82%3C%2FP%3E%3CP%3E%E5%AE%83%E4%BB%AC%E5%B0%86%E8%A2%AB%E5%86%99%E5%85%A5%20log.txt%20%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E5%A6%82%E6%9E%9C%E8%AF%A5%E6%96%87%E4%BB%B6%E4%B8%8D%E5%AD%98%E5%9C%A8%EF%BC%8C%E5%88%99%E4%BC%9A%E5%88%9B%E5%BB%BA%E8%AF%A5%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%3CP%3E%E5%86%99%E5%85%A5%E6%97%B6%EF%BC%8CLED%20%E6%AF%8F%E7%A7%92%E9%83%BD%E4%BC%9A%E9%97%AA%E7%83%81%E7%BB%BF%E5%85%89%E3%80%82%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%E5%8F%91%E7%94%9F%E9%94%99%E8%AF%AF%EF%BC%8CLCD%20%E5%B0%86%E6%AF%8F%E7%A7%92%E9%97%AA%E7%83%81%E7%BA%A2%E5%85%89%E3%80%82%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BB%A3%E7%A0%81%E9%83%A8%E5%88%86%E5%8F%96%E8%87%AA%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%97%B6%E9%97%B4%E9%97%AA%E7%83%81%E5%90%8E%E5%A7%8B%E7%BB%88%E4%BB%8E%2017%3A51%3A31%20%E5%BC%80%E5%A7%8B%E3%80%82%3C%2FP%3E%3CP%3E%E8%BF%99%E6%98%AF%E5%9B%A0%E4%B8%BA%E5%AE%83%E5%9C%A8%20TmDt1_Init%20%E4%B8%AD%E8%A2%AB%E8%BF%99%E6%A0%B7%E8%AE%BE%E7%BD%AE%E3%80%82%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1117868%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E6%A6%82%E8%BF%B0%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
无评分
版本历史
最后更新:
‎07-02-2014 04:12 AM
更新人: