Design with ProtoBot
Ask ProtoBot to plan a change in Plan mode, accept the plan and watch it add and wire an IR sensor array to the line-following robot
Goal
Use ProtoBot to add an IR line sensor array to the Main controller board from Build a line-following robot. You'll ask for a plan first, review it, accept it and watch ProtoBot carry it out, then check the result yourself.
Steps
Open ProtoBot
Open the Main controller board and make sure the status pill says Editing. If it says Viewing, open it and click Start editing.
Click the robot icon at the top of the left rail. The Agents panel opens on the ProtoBot tab.
Click New chat session (+) to start a fresh conversation for this board.


Choose a model, effort and mode
The controls sit under the message box, left to right:
Model: keep the default, or pick another model from the list. Models marked Pro need a Pro plan.
Reasoning effort: Medium is a good balance. Off and Low are faster and cheaper; High thinks longest.
Mode: choose Plan ("Design first, no board edits").
See Modes and Models and reasoning effort.
Ask for the plan
Animated GIF · Steps:
Type:
Add an IR line sensor array the Nano can read, and wire it up.Press Enter (or click Send message).
Wait for the Proposed plan card. ProtoBot reads the board, may search the library, and writes the plan without changing anything.
Review and accept
Animated GIF · Steps:
Read the plan: which sensor, how it's powered, which Nano pins it uses.
If you want changes, type them in Reject with reason and click Submit rejection. ProtoBot revises the plan.
When it looks right, click Accept. The mode switches to Integrate and ProtoBot starts work.
While it works, the message box reads "Streaming, Esc to stop". Each tool call appears as a card you can expand to see what changed. Press Esc or click Stop generating to stop at any point.
Approve or decline a part request
If the sensor isn't in the library, ProtoBot can model it as a custom part on your board and ask the ProtoPart team to add it properly. It asks first:
A card titled File a part request? appears, marked Needs your OK, with the details it would send.
Click File it to send the request, or Don't file to skip it. ProtoBot continues either way.
Requests are public on the ProtoPart GitHub repository. Your name and email aren't included. See Request or fix a part.


Result
The board has a line sensor wired to the Nano, and the chat session keeps a record of how it got there. You can undo any of ProtoBot's changes with Ctrl+Z, and earlier versions are in version history.
Common failures
Related pages
ProtoBot overview: what ProtoBot is for
Plans, approvals and sessions: the plan card and session history
What ProtoBot can change: its tools and limits
Prompt patterns: prompts that get better results
Last updated



