> For the complete documentation index, see [llms.txt](https://hopemoore.gitbook.io/coding-for-creatives/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hopemoore.gitbook.io/coding-for-creatives/arduino-info/the-setup/using-the-serial-connection.md).

# Using the Serial Connection

The Serial connection provides a way for you to upload your code to your Arduino as well as see the data coming in from sensors and other input components.

## Setup

### For Uploading to your Arduino

In the Arduino program, set up your serial connection.

Go to Tools > Board > Arduino AVR Boards > Arduino Uno (or whatever you have)

![](/files/-MNbDKdmRpURamSaU218)

![](/files/-MNbDlseEsRneRH1f9xq)

Once you have the Arduino connected via USB, you can find and select the port that is needed under Tools >  Port > COM(whatever number shows the connection)

![](/files/-MNbDlseEsRneRH1f9xq)

## Viewing the Info

In your code, in the setup() function, use Serial.begin() to establish a connection. In the parentheses, put your baud rate (it has something to do with the connection speed). The most common is 9600.

```cpp
void setup() {
    Serial.begin(9600);   // Start Serial connection
}
```

As long as the Arduino is connected via USB you your computer, you can see this info two ways:

### Serial Monitor

This is like a Console that you can print messages to using Serial.print() and Serial.println().

### Serial Plotter

This is a line graph that will interpret numbers in anything printed to the Serial monitor.


---

# 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://hopemoore.gitbook.io/coding-for-creatives/arduino-info/the-setup/using-the-serial-connection.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.
