Close

PIC programming modifications

A project log for Lucy's Toy

A beeper toy for a blind dog.

Bud BennettBud Bennett 12/04/2020 at 01:020 Comments

I made a mistake programming the LIS3DH accelerometer. The INT1 duration register was not addressed properly, so the accelerometer would not delay the interrupt output when detecting a free-fall event. I discovered the error and made changes to the PIC code to change the free-fall duration to 320ms, along with increasing the free-fall threshold to 320mg (from about 100mg). 

Results:

The PIC code is very close to complete. My wife thinks it should be able to discriminate between a rotating toy and a non-rotating toy, but perfection is hard to achieve and I'm satisfied with the performance so far.

Discussions