I read these DIY posts about hacking every day stuff and sometimes I wonder why no one thought of this sooner!
Instructables user WyoJustin has posted an article about making a set of LED brake lights for the ends of the handlebars on a bicycle. It’s a fairly simple project using an arduino microcontroller and a 3-axis accelerometer. Clever! Check out the full Instructable here.