Author Topic: Module 120 accelerometer communications  (Read 1578 times)

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: Module 120 accelerometer communications
« on: October 17, 2016, 12:31:25 am »
I haven't had much time to work on it lately, but I do have it working in my door knock sensor code.

I added LedRed on and off, so that I could see the interrupts.

One thing I noticed is that it is very sensitive, triggers at the slightest touch. If you trigger it too much (not very much), the module stops publishing (beacons still work).

I changed the response time from 2ms to 20ms, and it's better.

Not sure why it would stop publishing if you generate too many interrupts though.

I think I was confused about my previous code because the WHO_AM_I register returns a 0 when you query it (I expected 0x33) - so I thought I had a bug in my I2C code, but no, it does return 0. Weird.