"For decades, people have been envisioning that one day, we would have edible electronic devices to diagnose or treat disease," said Christopher Bettinger from Carnegie Mellon University (CMU) in the US.
"But if you want to take a device every day, you have to think about toxicity issues," said Bettinger.
About 20 years ago, scientists developed a battery-operated ingestible camera as a complementary tool to endoscopies. It can image places in the digestive system that are inaccessible to the traditional endoscope.
However, the chances of something going wrong would increase unacceptably if doctors wanted to use it more frequently on a single patient, researchers said.
More From This Section
The camera and some implantable devices such as pacemakers run on batteries containing toxic components that are sequestered away from contact with the body.
For low-power, repeat applications such as drug-delivery devices that are meant to be swallowed, non-toxic and degradable batteries would be ideal.
To minimise the potential harm of future ingestible devices, researchers turned to melanins and other naturally occurring compounds.
In our skin, hair and eyes, melanins absorb ultraviolet light to quench free radicals and protect us from damage.
"They also happen to bind and unbind metallic ions. We thought, this is basically a battery," said Bettinger.
Building on this idea, researchers experimented with battery designs that use melanin pigments at either the positive or negative terminals; various electrode materials such as manganese oxide and sodium titanium phosphate; and cations such as copper and iron that the body uses for normal functioning.
They are also making edible batteries with other biomaterials such as pectin, a natural compound from plants used as a gelling agent in jams and jellies.