This page is under construction and may not have complete or up-to-date information.

MarlinFirmware

Hardware

Description

Machine electronics and main components.

hardware

Use these options to define the machine hardware, including the mainboard, serial ports, etc. These are the most basic settings for every type of machine that Marlin supports.

1.0.0

#define MOTHERBOARD board

Motherboard of the machine.

hardware

Set the motherboard ID using one of the BOARD_... constants defined in boards.h.

This option provides Marlin with the pin definitions it needs to control the onboard components and connected peripherals.

Example
#define MOTHERBOARD BOARD_RAMPS_14_EFB
1.0.0

#define SERIAL_PORT int

Main serial port.

The main serial port is used to communicate with the host. This is usually the serial port connected to USB.

Examples
#define SERIAL_PORT  0 // Set the first serial port to UART0
#define SERIAL_PORT -1 // Set the first serial port to Native USB

#define BAUDRATE int

Default baud rate for the main serial port. (USB ports always run at full speed.)

2.0.0

//#define SERIAL_PORT_2 int

Secondary serial port

The secondary serial port can be used to communicate with a host, serial controller, or WiFi interface.

//#define BAUDRATE_2 int

Default baud rate for the secondary serial port. If not specified then BAUDRATE is used.

2.0.0

//#define SERIAL_PORT_3 int

Secondary serial port

The secondary serial port can be used to communicate with a host, serial controller, or WiFi interface.

//#define BAUDRATE_3 int

Default baud rate for the third serial port. If not specified then BAUDRATE is used.

1.1.0

//#define BLUETOOTH

Bluetooth wireless interface.

Enable the Bluetooth serial interface on AT90USB devices.

1.1.0

//#define CUSTOM_MACHINE_NAME string

A unique name for your machine.

Enable this option and set a unique name such as “Ralph” or “Printy McPrintface” to identify your 3D printer.

Example
#define CUSTOM_MACHINE_NAME "X5 Endeavour"
1.1.0

//#define MACHINE_UUID string

A unique ID for your machine.

This unique ID can be used by some programs to differentiate between machines.

Example
#define MACHINE_UUID "A34F2190-C84E-F553-97C3-12A4DA78A01B"