I have built a small childs toy...it has 10 leds around the rim of the wheel (evenly spaced)
I want it so that when pushed along, only the 4/5 LEDs facing forward light up. I have a magnet that can be used as a rotation/speed sensor...but need this linked up to an arduino to control the illumination (unless you can think of a simpler method)
They can be lit up just after reaching the top of the rotation and swtiched off after 1/3 turn - the blur will make them appear to be on for a half turn. Should give a nice illumination arc at the front of the wheel
But with the example above, i'm pretty sure it activates when passing the sensor (magnet) with no consideration for RPM so the light on / light off point will not be constant on the wheel (talking with reference to the "hello" message)
Yes can be any method. As it is just a childs toy, wheel balancing etc does not have a huge impact
So thinking I need a PIC with some timing logic based on the frequency of the sensor being activated (same way bicycle speedos work - magnet passing a reed switch i think)
You could set the led leads so they can be contacted at two different radius on the inside surface of the wheel and then put brush contacts with battery and one resistor on the chassis to touch at those radius. You won't need an MCU. How wide your brushes are would determine how long the leds stay lit. Brush position would determine where they light. Sure, it's electro-mechanical but that's all you need!
We are on the same page but Theta seems to be reading a different book.
Perhaps the PCB part seemed complicated? Or the words slip ring? Easier to use an MCU? I don't get it....
I know that with the right arduino programming, it could calculate RPM and adjust the on/off position of the light and also the duration it needs to be on for
Oh well. If you put a magnet in the hub and a hall sensor on the chassis or vice versa then you have a good way to know orientation of the wheel. Or you can go with optical.
Still, how you get power to the leds from the controller(s)? Will you put batteries -in- the wheels? You see that you will need contacts if power and controller are in the chassis unless you do something really wild?
ps, maybe not so wild -- if the wheels have not leds but translucent plastic then it could be lit by light on the chassis. There are ways and then there are ways.
Just FYI, there was a very successful kickstarter project this summer that accomplished exactly what you're trying to do for bikes. Maybe you could look over their design to see if something similar might work on your smaller scale?