That's great! Interesting about battery use though - if it continues being an issue I'll see if there's anything I can do. I know the accelometer can be configured in a bunch of different ways so potentially it could be told to sleep until moved, avoiding waking the Puck up.
That means that even if a bunch of readings get lost, it only takes one to get through for the movement to update (it doesn't have to be working at exactly the point the cat goes through the door)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's great! Interesting about battery use though - if it continues being an issue I'll see if there's anything I can do. I know the accelometer can be configured in a bunch of different ways so potentially it could be told to sleep until moved, avoiding waking the Puck up.
In terms of the Pi comms, I don't know quite how you're doing it, but I tend to advertise a counter value if I can: http://www.espruino.com/BLE+Advertising
That means that even if a bunch of readings get lost, it only takes one to get through for the movement to update (it doesn't have to be working at exactly the point the cat goes through the door)