Skip To Content

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

    Who said Muggles can't do magic?!

    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.

    Trey Bagley / Via

    As all Harry Potter fans know, the Weasleys' clock that was located at the Burrow helped keep track of where the individual family members were at all times.

    Warner Bros. / Via

    Bagley told BuzzFeed that the Harry Potter series was always special to his family.

    Trey Bagley / Via

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

    Trey Bagley / Via

    "Now we’re all beginning to go our separate ways, which seemed all the more reason to create something that tied us back to home."

    Ryan Bagley / Via

    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.

    "I helped everyone set up rules on their phones," Bagley explained. "And now the clock is an always-changing conversation piece on the wall at home."

    Trey Bagley / Via

    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.

    Trey Bagley / Via

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

    Trey Bagley / Via

    Want great book recommendations in your inbox every week? Sign up for the BuzzFeed Books newsletter!

    Newsletter signup form