Anuruddha Bhattacharjee once held a robot so small it could fit on the tip of a pencil, yet powerful enough to change how we treat one of the heart’s most dangerous infections. At Johns Hopkins University in Baltimore, engineers have built tiny magnetic robots—called "millirobots"—that can swim through the bloodstream and deliver medicine directly to infected heart tissue, even while the heart is beating.

Every year, about 50,000 people in the U.S. develop endocarditis, a serious infection of the heart lining. The standard treatment is weeks of intravenous antibiotics, which often fail because the drugs get diluted before reaching the heart. When that happens, doctors face a tough choice: increase antibiotic doses, risking organ damage, or perform risky open-heart surgery. The millirobots offer a third path—one that’s precise, safe, and minimally invasive.

These robots are about the size of a grain of rice and work in pairs. The first, called the needle module, gently attaches to the infected spot on the heart. It acts as a docking station. The second, the drug module, carries antibiotics and magnetically connects to the needle, slowly releasing medicine exactly where it’s needed. Both are guided by an external electromagnetic coil system—similar to an MRI machine—that steers them without surgery or radiation.

Because the robots are powered by magnets, they don’t need batteries or motors. This makes them safer and simpler. The needle module can stay in place while the drug module is swapped out, allowing multiple doses without repeated procedures. In early tests, the robots moved smoothly through phantom hearts and real pig heart tissue, even against strong simulated blood flow.

The impact could be huge. Instead of six weeks of IV antibiotics, treatment with millirobots might take just an hour. "With just a little pinprick, you insert a microrobot and do a procedure without infection or blood loss," said Axel Krieger, the senior researcher on the project. "And you don't need to have a surgeon operating it to get the drugs robustly, safely and efficiently to the right place."

While still in early testing, the technology opens doors beyond heart infections. Researchers believe these steerable robots could one day deliver cancer drugs deep inside the body or treat other hard-to-reach diseases. For now, the millirobots represent a quiet revolution—tiny machines with the power to make medicine faster, safer, and kinder.