science fair project

I am using electromagnets to propel a car around a track. Thinking I can use hall sensors to detect the approaching train car, I need to then send an electrical pulse to the electromagnets to push the train. Need advice on setting up a system capable of reading input from a sensor and powering a magnet. Thanks for you help.

Have you looked at any of the examples over at the Playground?