Arduino

Buy | Download | Getting Started | Learning | Reference | Hardware | FAQ

Blog » | Forum » | Playground »

## Serial.begin(int speed)

#### Description

Sets the data rate in bits per second (baud) for serial data transmission. For communicating with the computer, use one of these rates: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.

#### Parameters

int datarate, in bits per second (baud)

#### Returns

nothing

### Example:

    void setup() {
    	Serial.begin(9600);	// opens serial port, sets data rate to 9600 bps
    }

#### See also

- Serial.available()
- Serial.read()
- Serial.print(data)
- Serial.println(data)

Reference Home

Edit Page | Page History | Printable View | All Recent Site Changes