KevsRobots Learning Platform
By Kevin McAleer, 5 Minutes
Robot builds have a habit of taking longer than expected, usually because one thing depends on another. You can’t test the motors until the chassis is printed, and you can’t print the chassis until it’s designed. A Gantt chart shows each task as a bar along a calendar, so you can see what depends on what and when it’ll all be done.
gantt
title SMARS robot build
dateFormat YYYY-MM-DD
section Design
Sketch ideas :done, sketch, 2026-11-02, 2d
Model in Fusion 360 :active, model, after sketch, 4d
section Build
3D print parts :print, after model, 3d
Assemble and wire :wire, after print, 2d
section Code
Write motor code :code, after model, 4d
Test and tweak :test, after wire, 3d
Robot finished! :milestone, after test, 0d
Here’s what it draws:
gantt
title SMARS robot build
dateFormat YYYY-MM-DD
section Design
Sketch ideas :done, sketch, 2026-11-02, 2d
Model in Fusion 360 :active, model, after sketch, 4d
section Build
3D print parts :print, after model, 3d
Assemble and wire :wire, after print, 2d
section Code
Write motor code :code, after model, 4d
Test and tweak :test, after wire, 3d
Robot finished! :milestone, after test, 0d
Let’s break that down:
title adds a heading.dateFormat tells Mermaid how you will write dates. YYYY-MM-DD means 2026-11-02.section groups tasks into coloured bands.Name : details, and the details are separated by commas.Details go in this order, and you can leave out the ones you don’t need:
done, active, crit (critical, shown in red) or milestoneprint, so other tasks can refer to it2026-11-02, or after print to start when another task finishes3d for three days, 1w for a week, or 12h for hours, or an end dateUsing after is the clever bit. If the design takes longer, change one number and every task after it moves along automatically.
If you only build at weekends, or only on weekdays, tell Mermaid to skip some days with excludes:
gantt
title Weekday evenings only
dateFormat YYYY-MM-DD
excludes weekends
section Electronics
Solder the Pico board :solder, 2026-11-06, 2d
Test the sensors :crit, after solder, 2d
gantt
title Weekday evenings only
dateFormat YYYY-MM-DD
excludes weekends
section Electronics
Solder the Pico board :solder, 2026-11-06, 2d
Test the sensors :crit, after solder, 2d
The soldering starts on a Friday, so the second day of it moves to Monday.
A Gantt chart looks forward. A timeline looks back, showing what happened when. It’s great for a project’s history in a README, or a “how this robot evolved” section on a blog post.
timeline
title The life of my robot
2024 : First version : Cardboard chassis and an Arduino
2025 : Switched to a Pico : Rewritten in MicroPython
: Added a distance sensor
2026 : 3D printed SMARS body : Wi-Fi remote control
Here’s what it draws:
timeline
title The life of my robot
2024 : First version : Cardboard chassis and an Arduino
2025 : Switched to a Pico : Rewritten in MicroPython
: Added a distance sensor
2026 : 3D printed SMARS body : Wi-Fi remote control
Each line is period : event, and you can add more events with more colons, or on the next line starting with :. The period doesn’t have to be a date; it can be any text, like Week 1 or Prototype.
You can group periods with section too, just like in a Gantt chart.
after so every task depends on another.crit, and finish with a milestone.dateFormat exactly, such as 2026-11-02 for YYYY-MM-DDWhy: Mermaid reads each date using the format you gave it
after doesn’t appearafter matches another task’s ID exactlyWhy: Mermaid can’t work out a start date for a task that follows something that doesn’t exist
Quick quiz 1 of 3
What does after print do in a Gantt task?
after move automatically when the task before them changes.Quick quiz 2 of 3
Which tag makes a task show as critical?
crit highlights tasks that would delay the whole project if they slipped.Quick quiz 3 of 3
When would you use a timeline instead of a Gantt chart?
You can use the arrows ← → on your keyboard to navigate between lessons.
Comments