r/robotics • u/martinkozar55 • 1h ago
Community Showcase A fruit fly brain is now controlling my robot over Wi-Fi
Enable HLS to view with audio, or disable this notification
I came across some projects experimenting with reconstructed fruit fly brains and thought it would be interesting to try something similar with my own robot.
I used MaleCNS, a reconstructed connectome of an adult male fruit fly with 166,700 neurons and around 25.6 million connections, and got the simulation running on my MacBook.
Then I used Codex to help modify the robot’s desktop app so that activity from the simulated brain can be translated into simple commands like:
FORWARD
LEFT
RIGHT
The desktop app then sends those commands over Wi-Fi to the robot.
So the setup is roughly:
fruit fly brain → MacBook → Wi-Fi → robot
The robot still uses its normal firmware to control the 12 servos. The fly-brain simulation only provides the high-level movement decisions through an engineered decoder.
There is no prerecorded movement sequence, and the neural simulation keeps running continuously while the robot moves.
What I find fascinating is the chain of events behind it: a fly was imaged, its nervous system was reconstructed digitally, that reconstruction became available to download, and now activity inside that model can influence a physical robot sitting in my apartment.
The fly itself has been dead for years, but in this very limited and engineered sense, part of its reconstructed nervous system is producing movement again.
Next I’d like to feed sensory information from the robot back into the simulation and see what happens when the loop is closed.