back to top

This College Student Used His Family's Cell Phones To Re-Create The Weasleys' Clock

Who said Muggles can't do magic?!

Posted on

Trey Bagley is a senior at Duke University who used his knowledge as a computer science major to create a real-life, digital version of the magical clock from the Weasleys' house in Harry Potter.


The student explained that Duke has an Innovation Co-Lab and held an open class to learn about programming something called the Particle Photon, which is a a microcontroller that connects to W-iFi.

Trey Bagley / Via

"They taught us how to send it messages that would make it change the color and brightness of a single LED, which got me thinking about what else I could control with this little chip," Bagley said.

Once he had his sisters' permission, he was able to program all of their cell phones with GPS and connect them to a broken antique clock.

Trey Bagley / Via

"[My sisters] were hesitant to participate in something that allowed our parents to keep further tabs on them, but because each user can make their own rules for their phone, the clock only has as much information about you as you want it to," Bagley said.


After working on the project during his exam week, Bagley was able to finish the clock in time for Christmas at home with his family.

Trey Bagley / Via

"I got a friend to create the files needed to laser-cut wood for the clock's face, altered some code I found online, ordered a string of LED lights, and ran some tests on my phone so that messages would be sent to the Photon chip whenever the background GPS detected that I had entered or exited a radius that I had defined," he said.