What are Diodes?

There are many types of diodes. They are semiconductor devices that allow current to pass in one direction only. There are many uses for diodes, and one of them is as an off / on switch to control current.