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.

Linux/CC2650STK: Finding examples on howto: wake on motion (WOM) -> collect gyroscope information on a Raspberry PI

Prodigy 70 points

Replies: 2

Views: 262

Part Number: CC2650STK

Tool/software: Linux

Hi all,

for a start, I'm not a deep dive developer, but I can adjust examples and follow HowTos! ;)

But then, here's what I got:

  • (multiple) CC2650STKs
  • Raspberry PI 3B+

What I'd like to achieve is something like:

  1. CC2650STK Wakes on Motion (WOM)
  2. (preferably python-)script collects gyroscope data (I'm interested in degrees - as the sensortag is placed on a moving shutter)
  3. if movement stops, the sensortag can go to sleep again 
  4. repeat with 1. with a new movement

So, until now I read many things and (as I'm not a hard core developer nor am I an expert in electronics) I am confused on many aspects.

ad 1) How can I handle this wake on motion thing? Do I need some special hardware like the debug dev-pack or something?

ad 2) I installed bluepy, but this seems to be a very complex framework, I lack some examples on how to use it within a python script.

ad 3) I guess, if WOM is activated - it surely lets the sensortag sleep again? But I don't have to physically activate it again, I hope? Because the sensortags should monitor the movement of my shutters and if they are not horizontal anymore should stop the motor. 

thanks for any help!

Thomas.

2 Replies

  • Hello Thomas,

    1. For motion sensor, you can look at hooking up an external PIR sensor www.ti.com/.../tida-01069. There is a light sensor on the CC2650STK, but that is probably not good enough for your detection of motion.
    2. For the gyroscope data format please refer to processors.wiki.ti.com/.../CC2650_SensorTag_User's_Guide
    3. You can set the sensortag to wake on motion, so that it can go to sleep when there is no motion

    Regards,
    Prashanth
  • In reply to PrashanthS:

    Thanks Prashanth,

    ad 1) I think, there's a misunderstanding. With "Motion" i mean movement of the sensor itself, not a PIR-Motion! ;)

    ad 2) ok, thanks. I figured it out already

    ad 3) that's the question I'm thinking of how to set the sensortag to sleep and only wake on motion. Is there a howto around, which I didn't find... 

    Thanks again,
    Thomas.

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.