This document describes a brain-controlled artificial leg system. There are four main types of brain waves - beta, alpha, theta, and delta - that are measured by an electrode cap placed on the skull. The brain waves are amplified, converted to digital signals, and processed to identify patterns. The signals are then sent to a microcontroller to control the movements of an artificial leg, such as walking and running. The brain-controlled artificial leg system is easier and cheaper to construct than normal artificial legs, and gives users full control over the artificial leg.