Inhaled medications present a great opportunity for controlled drug delivery for self medicated patients. With this invention most medicinal aerosol generators have the potential for much more controlled dosage and monitoring of doses to the patient than current inhaled medication systems. The pressurized metered dose inhaler has especially great potential for controlled drug delivery being that the aerosol drug formulation is in a permanently sealed container that can use a digital program controlled electromechanical valve on a metered dose inhaler to control drug dose and time of release. An electromechanical inhaler valve actuator can also provide dose control, monitoring, breath activation timing and other important features.