Re:Ask HN: Is there a way to get notified when my cat has se...
by phi161 on Friday July 12, 2024 @04:19PM
(#40949036)
These are extremely helpful resources, now I have somewhere to start! The ESP32_CoinCell project looks very promising, since I'm mostly worried about the size and weight of whatever I'll put on the collar. Thank you so much!
> though it will be a step learning curve if one has never done any embedded
For someone who has not previously worked with hardware I'd suggest to buy first a cheap Arduino-compatible board like this one [1] with BLE and WiFi instead of professional hardware. Although not as efficient, calls to hardware sensors are much simpler and well documented for example here [2, 3]. For the filtering part jononor is talking about I'd suggest this chapter 10 of this book [4] complemeted with more accessible resources like this video [5] (the book is to dig deeper into the maths, but not strictly necessary).
Then once you have this you can be as fancy as you want on the server side with ML models etc, but I suspect that since the seizures are rather long (minutes) just looking at the mean frequency about 15 ~ 30 seconds could already be a pretty good indicator.
[1]: https://www.lilygo.cc/products/t-energy-s3
(This is the first board I found, but I'm sure are also other smaller boards with ESP32 or ESP8266 using a CR2032 battery like https://hackaday.com/2019/02/22/a-coin-cell-powers-this-tiny... on AliExpress / BangGood / etc.)
[2]: https://www.arduino.cc/reference/en/libraries/arduinoble/
[3]: https://docs.arduino.cc/built-in-examples/sensors/ADXL3xx/
[4]: http://eceweb1.rutgers.edu/~orfanidi/intro2sp/orfanidis-i2sp...
http://eceweb1.rutgers.edu/~orfanidi/intro2sp/
[5]: https://www.youtube.com/watch?v=uNNNj9AZisM