But I dont wish to use two switches, and obviously I dont want to use wires between me and my bycicle. I would like to use the gyroscope of my samsung galaxy SII to turn on the LEDs of the right or the left depending the orientation of my mobile phone (180-135 degree turns left LEDs, 45-0 degree turns right LEDs)
I was thinking to do it with an Arduino UNO using Lillypad LEDS. Are them compatible? What do I need to make the conection between my phone and arduino? Will I need to program an APP for my mobile or so? Is it so hard for a 18 years old guy so its better to do the jacket of the tutorial?
You can communicate between your phone and an Arduino over bluetooth. You would have to write an app for your phone to send the gyroscope data and receive it as serial on the Arduino. Whether or not it is hard to do depends on how much, if any, programmning experience you have. There are several examples for Android -Bluetooth-Arduino on line.
I can't see how the gyroscope will enable you to determine when you need to indicate. Can you explain how that part is going to work? Are you trying to detect when the bike is cornering? If so that's not feasible, and even if it had been that's not a sensible way to decide when to indicate.
Ya. When you turn with the bike, you have to spin the handlebar. I though with an app that could send the gyroscope data of my phone to my arduino would be a good idea, but it isn't. because if you want to turn, you must warn it before turning, not when turning.