Raspberry Pi GPIO Emulator Simulates Physical Components

This cool project was developed by a teacher known as Jan K. S. on GitHub. It's an interactive visual interface built on top of gpiozero using TkInter to simulate wiring and programming Raspberry Pi components. This project proved useful for Jan's students who haven't been able to complete lab work in person due to the coronavirus.

The device simulator was built in TkInter using MockFactory, a library of mock pins used by gpiozero. The tools proved to be the perfect asset for constructing a user-friendly GUI for the students to learn with.

The buttons in TkInter respond just like real, physical buttons would. You can use them to control virtual LEDs or any other component—including a simulated distance sensor.

Ash Hill
Contributing Writer

Ash Hill is a contributing writer for Tom's Hardware with a wealth of experience in the hobby electronics, 3D printing and PCs. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting while also finding the best coupons and deals on all tech.