# Oefenopdracht: Maak een toestandsdiagram I

Je maakt een programma voor de Micro:Bit rijdende robot.&#x20;

De robot staat in het begin stil. Zodra je op knop A druk gaat de robot recht vooruit rijden. Mocht de robot een obstakel tegen komen dan zal de robot stil staan. Hij blijft stil staan totdat je weer op knop A drukt. Als de robot stil staat en je drukt op knop B dan verschijnt er 10 seconden een smiley op het scherm. Als de robot een zwart vlak op de vloer tegenkomt blijft hij ook stil staan.

Maak een toestandsdiagram bij deze situatie.

Klaar? Kijk je opdracht na!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://metis-montessori-lyceum.gitbook.io/automaten-0/les-1-toestandsdiagrammen-1/opdracht-maak-een-toestandsdiagram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
