Finally i managed to get all the electronic equipment i need. With the help of Jukka, now i have a code that reads the signals from the gyroscope sensor and lights the two leds accordingly.
- turn off function
- brake light function
- connection of other leds
- connection of battery
- implementation of the setup on the cap
- working on aesthetics of the hat