1,649
edits
No edit summary |
(→Code) |
||
Line 46: | Line 46: | ||
==Code== | ==Code== | ||
The code is available on [https://github.com/londonhackspace/spacensus GitHub] - please be kind it's my first Arduino project and I know the code is filth. | The code is available on [https://github.com/londonhackspace/spacensus GitHub] - please be kind it's my first Arduino project and I know the code is filth. | ||
The detection aspects of spacensus use an interrupt driven state machine. Non-time critical stuff happens in a run-loop. | |||
[[File:Spacensus state machine diagram.png|border|640px|left]] | |||
==What next== | ==What next== | ||
Spacensus still miscounts - especially when the door is opened for an incoming guest. I am aware of a few issues in the code where detection could be improved so will try a couple of modifications and see how it goes. | Spacensus still miscounts - especially when the door is opened for an incoming guest. I am aware of a few issues in the code where detection could be improved so will try a couple of modifications and see how it goes. |
edits