New Plugin for LIS3DH Accelerometer

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kociubin
Normal user
Posts: 11
Joined: 09 Nov 2017, 02:48

New Plugin for LIS3DH Accelerometer

#1 Post by kociubin » 09 Nov 2017, 03:04

For anyone interested, I implemented a plugin for the LIS3DH accelerometer. You can buy one for a few bucks on ebay. More information about a breakout board here:
https://learn.adafruit.com/adafruit-lis ... g-and-test

You can pick up the files from my github here:
https://github.com/kociubin/ESPEasy

You need to pick up the following files from the repo:
Adafruit_LIS3DH.cpp
Adafruit_LIS3DH.h
Adafruit_Sensor.h
_P188_LIS3DH.ino

It will build as a "dev" plugin. Usage should be self explanatory. I currently have it hooked up to trigger on a single or double click/tap. Many of the click parameters (like threshold, latency, time window, etc) are configurable. More information on those are at the link above.

I'm currently using it inside a light switch. You tap the plastic wall plate to turn lights on/off. It seems to work better than touch or gesture sensors I also tried for this purpose.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New Plugin for LIS3DH Accelerometer

#2 Post by papperone » 09 Nov 2017, 09:50

This is interesting...
I can share my opposite experience, I have been testing touch IC (TTP22x) for a while now and I'm very happy with the responsiveness and accuracy.
Even my wife and sons reported to me the test units I'm building are behaving just fine (and this is my best test bench for those devices!).
I am currently designing my own module based on ESP8266 and TTP229 IC as controller to be able to print out proper PCBs
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

kociubin
Normal user
Posts: 11
Joined: 09 Nov 2017, 02:48

Re: New Plugin for LIS3DH Accelerometer

#3 Post by kociubin » 09 Nov 2017, 15:52

I have a few light switches that use cap sense but the touch area is small which requires some precision to toggle the switch. With LIS3DH glued to a "blank" wall plate I can hit it anywhere and it toggles. It's a bit faster and requires less precision.

Have you been able to create a large touch area to accomplish a similar experience with TTP229?

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New Plugin for LIS3DH Accelerometer

#4 Post by papperone » 09 Nov 2017, 21:03

kociubin wrote:
09 Nov 2017, 15:52
I have a few light switches that use cap sense but the touch area is small which requires some precision to toggle the switch. With LIS3DH glued to a "blank" wall plate I can hit it anywhere and it toggles. It's a bit faster and requires less precision.

Have you been able to create a large touch area to accomplish a similar experience with TTP229?
Yes I did and this is why I'm desiging my own PCB with very large copper pad areas in order to avoid using off-the-shelf modules that offers indeed a very limited touch surface...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests