Out of curiosity, wouldn't an accelerometer alone not work for this purpose? I see you've hooked it up with engine RPM as well, but realistically you want to indicate when you're slowing down, no matter the reason, right? Is there something I'm fundamentally missing here?
This is a great idea though, and definitely something that more bikes should come stock with. There's a very clear benefit for safety.
Thank you for your question, it does not hook with the engine RPM, but I did have an issue with the sample rate syncing with the engine rpm therefore picking up noise, I solved that issue with randomizing the sample interval with pseudo random numbers.
This is a great idea though, and definitely something that more bikes should come stock with. There's a very clear benefit for safety.