I’m planning to do a project for kids where they can do a game with lights and a bicycle
The idea is simple, there is a bicycle and a vertical truss with 18 light bulbs on it.
The faster you go on the bicycle, the more lights will turn on.
So at a low speed the first light will turn on, if you go faster the next etcetera etcetera.
I'm a bit in doubt how I'll manage to achieve this.
For now my plan is to use an encoder which is connected to a roller where the bicycle sits on.
However, is the arduino capable to measure such quick pulses?
I'm also not 100% sure about the programming.
How can I achieve this?
For the lights I'm thinking to use or a DMX shield and use Pixelbulbs or else I need to use a relay board to switch on each light if conditions met.
I would be really happy to have some tips if the encoder is a good choice and some guidance on the programming how to make something really cool which also works correctly