A 'smart' pill that texts patients' mobile phones when it is time to take another dose is being tested in the UK.
NHS doctors are recruiting around 40 volunteers to take standard versions of their heart pill fitted with a microchip.
The chips in the pills send signals to a patch attached to the patient's shoulder when swallowed.
The system contains a pill with an edible microchip and a patch that sits on the shoulder which texts information to either the doctor or patient
The patch has a technology that monitors when the pills are swallowed and can send a text if the patient forgets to take medication.
The system, known as Raisin, also monitors heart rate, heart activity and how well the patient is sleeping-all of which may signal a deteriorating condition.
It costs a few pence per pill and was initially tested in the US, where it improved the rate patients consistently took their medication from 30 per cent to 80 per cent.
If successful, the four-month trial being run by Imperial College Healthcare NHS Trust, Imperial College London and the Royal Berkshire Hospital, Reading, could lead to a year-long NHS trial.
Professor Nicholas Peters, professor of cardiology at Imperial College Healthcare, said the main aim was encourage heart patients to stick to taking their pills.
With a stricter medication regime, it is hoped their health will improve and they will be less likely to be admitted to hospital in an emergency.
In the trial, the patches will allow doctors to check whether patients have taken their pills, track the heart rate and determine whether they are frequently sitting up at night.
This can signal fluid on the lungs which means the dosage needs adjusting.
"The concept behind the technology is that the information belongs to the patient, who will be able to see the benefits of their medication in a number of measures. It will encourage patients to take responsibility for their own health," the Daily Mail quoted Professor Peters as saying.
The chips developed by Proteus Biomedical, a California-based company, are tiny, digestible sensors made from food ingredients which are activated by stomach fluids after swallowing.
Once activated, the sensor sends a low-power digital signal through the body to a receiver that is either an patch or tiny device inserted under the skin.
This decodes and records the information.
It paves the way for the system to be combined with a range of medicines, and clinical trials have begun in the US with drugs for diabetes, organ transplants, mental health and tuberculosis.