> For the complete documentation index, see [llms.txt](https://lessons.mistyrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lessons.mistyrobotics.com/arduino/arduino-lessons.md).

# Arduino Lessons

Arduino and Misty will communicate with each other through the serial port that both support. In the first case (Arduino to Misty) Arduino will write and Misty will read, in the second one (Misty to Arduino) Misty will write and Arduino will read.&#x20;

We will use Python to program Misty and C++ to program Arduino.&#x20;

Ensure to have all the necessary components before starting your project.

In these two projects, we will do something really simple just to show you how this mechanism works. After, you will be able to create your complex projects including several sensors and communication in both ways.&#x20;

{% content-ref url="/pages/uXTCVCzOLKwxX0IhozKj" %}
[Arduino to Misty](/arduino/arduino-lessons/arduino-to-misty.md)
{% endcontent-ref %}

{% content-ref url="/pages/7IZ74UhSHdF4mBtNuc45" %}
[Misty to Arduino](/arduino/arduino-lessons/misty-to-arduino.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://lessons.mistyrobotics.com/arduino/arduino-lessons.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.
