Diodes allow electricity to flow in one direction only and blocks the flow in the opposite direction. They may be regarded as one way valves and they are used in various circuits, usually as a form of protection.
Diodes must be used in all access control installations when locking devices are used.