Seismography with the Neo

Discussion in 'UDOO NEO' started by I Hate Google!, Jun 27, 2016.

  1. I Hate Google!

    I Hate Google! New Member

    Joined:
    Jun 20, 2016
    Messages:
    28
    Likes Received:
    17
    One of the things that interests me with the Neo is the inclusion of the Freescale/NXP gyro and accelerometer. I thought one interesting use is as a Seismograph (demonstration) and other "micro" movements that are impossible to detected with the naked eye.

    Anyway, enough with the Ya-de-Ya... here's my kludge in C to see what sort of data pops out. (Reading from the filing system like this is hardly ideal, but it works for now and keeps it simple.) Anyone not familiar with C can compile it by changing the .txt extension to .c and compiling with gcc main.c (or whatever you've called it).

    It takes a baseline reading and the outputs a coarse difference. I reduced the sensitivity somewhat because the data is impossible to follow when output to the console like this.

    What's interesting (and perhaps I've read this wrong) is that the data from the gyro and the accelerometer *appear* to be swapped. If this example is correct (it might not be) the gryo is giving the rate of change and the accelerometer is giving the absolute position relative to the baseline.

    Doesn't matter a fig of course - but I'd be interested to know if I've misread this.

    Here's some sample output (after the board is picked up and held on one side) - note there is no calibration on these figures!

    ACC: X:163, Y:-8, Z:-150 GYR: X:0, Y:0, Z:0
    ACC: X:163, Y:-8, Z:-150 GYR: X:0, Y:0, Z:0
    ACC: X:163, Y:-8, Z:-150 GYR: X:0, Y:0, Z:0
    ACC: X:163, Y:-8, Z:-150 GYR: X:0, Y:0, Z:0
    ACC: X:163, Y:-8, Z:-149 GYR: X:0, Y:0, Z:0

    ACC: X:163, Y:-9, Z:-151 GYR: X:0, Y:0, Z:0
    ACC: X:163, Y:-9, Z:-151 GYR: X:0, Y:0, Z:0
     

    Attached Files:

    Andrea Rovai likes this.
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I Hate Google! likes this.
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    I'd generally take a look at Hackster.io, many projects there (and today I've imported other 7 ones from someone else's GitHub). There is also this library for the temperature sensor for example that is published on Hackster.io
     
    waltervl and I Hate Google! like this.
  4. I Hate Google!

    I Hate Google! New Member

    Joined:
    Jun 20, 2016
    Messages:
    28
    Likes Received:
    17
    Never seen Hackster.io (so much porn, so little time... wait what?)

    But seriously, that's a fascinating site!
     
    Andrea Rovai likes this.

Share This Page