Sorry if I mess up... I'm a newbie here everyone.
I'm trying to design a circuit, as small as possible that will use 9-19v AC to control two bi-color LEDs. Obviously the LEDs will use DC. The color of the LEDs need to change based on movement of a model train car along the rails. There would be two states. The resting state, which will trigger the led to emit one color, and moving state (either forward or reverse) for the other color. I have been reading about H bridges and how they work. It might be the way to go with this, but don't really know how to lay it out or what component would be best to trigger the circuit for motion, whether it be a tiny accelerometer, optical sensor, or Hall effect sensor. I have never designed a circuit but am familiar with basic electrical theory. Thanks for reading, and I would greatly appreciate any help you gurus could provide.
I'm trying to design a circuit, as small as possible that will use 9-19v AC to control two bi-color LEDs. Obviously the LEDs will use DC. The color of the LEDs need to change based on movement of a model train car along the rails. There would be two states. The resting state, which will trigger the led to emit one color, and moving state (either forward or reverse) for the other color. I have been reading about H bridges and how they work. It might be the way to go with this, but don't really know how to lay it out or what component would be best to trigger the circuit for motion, whether it be a tiny accelerometer, optical sensor, or Hall effect sensor. I have never designed a circuit but am familiar with basic electrical theory. Thanks for reading, and I would greatly appreciate any help you gurus could provide.