Best sensor for falling alert
-
Isn't that what this is for?
// Select SDA and SCL pins for I2C communication
const uint8_t scl = D6;
const uint8_t sda = D7; -
Isn't that what this is for?
// Select SDA and SCL pins for I2C communication
const uint8_t scl = D6;
const uint8_t sda = D7; -
I'm confused. That is from my sketch. Do I add another reference?
-
I'm confused. That is from my sketch. Do I add another reference?
-
Those are the ports I am using on my ESP8266 NodeMCU
-
Those are the ports I am using on my ESP8266 NodeMCU
@mrhutchinsonmn ok, so you're using an esp8266-based Arduino. ESP8266 does not have hardware i2c. Instead, software i2c is used. Almost any pins on the esp8266 can be used for i2c.
What board have you selected in the Arudino IDE? If I select "NodeMCU 1.0 (ESP-12E module)", D6 and D7 are defined. If I select "generic esp8266 module", D6 and D7 are not defined since the pin mappings can be different for different boards.
-
Apologies!! I kept getting errors when using that board, so used another. I am on a new worksation and it turns out python was not installed. The error ceased after I installed. The sketch works fine now.
-
Not sure if it helps. I find this drop/tilt/vibration sensor https://bit.ly/2kZrZnV. And my personal advice is that you buy your dad a emergency watch with built-in heart rate detector. It would help a lot i think
-
@nca78 said in Best sensor for falling alert:
But except if there's an interest in using the gyroscope, IMHO it's a bit of an overkill, while a LIS3DH will use 50-100 times less current for free fall detection (between 6 and 11µA), ADXL345 over 10 times less (40µA)
I agree with this also especially due to the low current consumption. I would not go as far as dismissing something as overkill when considering the intended usage though.
I don't have experience with free fall detection systems but somehow it sounds more suitable for detecting a direct gravitational falling and not a person falling which likely involves legs slowing down and the fall starting from the person already standing on the ground. But I am definitely interested in hearing how this works out as this is one of those rare projects that isn't just a "nice to have". Great idea!
-
@mrhutchinsonmn ok, so you're using an esp8266-based Arduino. ESP8266 does not have hardware i2c. Instead, software i2c is used. Almost any pins on the esp8266 can be used for i2c.
What board have you selected in the Arudino IDE? If I select "NodeMCU 1.0 (ESP-12E module)", D6 and D7 are defined. If I select "generic esp8266 module", D6 and D7 are not defined since the pin mappings can be different for different boards.