A drug release products and methods are disclosed. The drug release product has one or more compartments containing drugs and a space with control elements. The control elements control the timing and the dosage of the drug release by opening compartments at particular times. The control elements use information from on-board sensors, from a probe located in another part of the patient's body or from external device to determine the timing of opening the compartments. The product with the unopened compartments and control elements leaves the patient's body through the normal digestive process.