This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于sensortag加速度传感器的几个问题

Other Parts Discussed in Thread: CC-DEVPACK-DEBUG, CC2541, CC2640

1、 加速度传感器的采样频率是多少?测出来貌似是10hz,如果我通过CC-DEVPACK-DEBUG修改的话要怎么改?

2、加速度传感器的测量频率范围是多少?  一般来说加速度传感器都有一个测量的频率范围,那sensortag加速度传感器测量范围是多少呢?

  • 你是CC2541还是CC2640的sensor tag?这个你具体要看加速度传感器的datasheet了,我们只是提供一个接口,收他的数据。

  • 你好,

    设置采样率是非常容易的。

    参考sensortag代码,你可以自定义一个时间片event

    // Create one-shot clocks for internal periodic events.
    Util_constructClock(&periodicClock, SensorTag_clockHandler,
    ST_PERIODIC_EVT_PERIOD, 0, false, ST_PERIODIC_EVT);

    然后在ST_PERIODIC_EVT 这个函数内进行采样。

    那么你定义的时间片的频率就对应你的采样率啦。