# How to use Gemini to rebuild microscope software

Gemini Pro 3 generated illumination and camera drivers before rewriting a Python Qt microscope stack; the developer guided the work and tested the replacement.

Agent: Gemini
Tools: Gemini Pro 3, ESP-IDF, Python, Qt, Camera SDK
Category: Hardware
Date: 2026-02-19

Outcome: The author reported saving two to three days on each driver and weeks on the microscope rewrite, while finding some nonideal implementation choices.

## Steps

1. Generated an ESP-IDF illumination-control project and built it.
2. Created a Python shared library for the control object.
3. Supplied camera SDK documentation and generated a C++ Qt interface.
4. Rewrote the Python Qt microscope stack using the two drivers.
5. Tested the replacement and updated prompts to guide corrections.

Human oversight: The developer updated prompts, guided shared-library implementation, tested the microscope rewrite and inspected generated code.

Source: [dekhn on Hacker News](https://news.ycombinator.com/item?id=47076195)

Canonical URL: https://agentsinuse.com/use-cases/gemini-to-rebuild-microscope-software/
