Any full source code sample projects about Raspberry Pi (or another) using it in bicycles ?
Maybe interesting for create a dashboard in bike for manage lighting ?
Bicycles Stack Exchange is a question and answer site for people who build and repair bicycles, people who train cycling, or commute on bicycles. It only takes a minute to sign up.Sign up to join this community
Lighting control isn't exactly a good idea since you have 2 lights (front and rear) on a bicycle typically.
Most cycling sensors (cadence, speed, heartrate, etc.) either speak ANT+ or Bluetooth these days, so if you want to read sensors, you just need to know how to speak ANT+ or Bluetooth in your chosen language. You can also add a GPS module and other things as well.
Note that many phones have both ANT+ and bluetooth, and have their own built in batteries (and are probably faster than a Raspberry pi) and mobile internet, so if you want to read sensors, they may be better than the raspberry pi. That being said, either of these options will likely be far more battery draining than a cycling computer which provides the same functionality, so I'm guessing this is a project just for fun.