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.

"From midnight book releases to Halloween costumes and birthday parties to visiting the filming locations, it’s been something that we could all share and get excited about," he said.

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 imgur.com

"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 imgur.com

"[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 imgur.com

"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.

While a lot of people have apparently told Bagley they'd love to buy more Weasley clocks from him, he's more excited by the thought of others trying to build their own.

"I would love to see unique takes on this concept created around the world, and I’ve publicly posted the code the clock runs on so that anyone can use it," he said, "and to show that it’s not even that complicated!"