This is a simple circuit for controlling an LED. Notice the current limiting resistor. An LED should never be connected directly to a power supply as it needs a resistor to limit the current.
Making The World a Better Place One High Tech Project at a Time. Enjoy!