Pololu Robotics & Electronics
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Maestro Micro and Arduino Mega 2560


I use an Arduino Mega 2560 and a Pololu Micro Maestro with the PololuMaestro library.
My question is: Can I use a different hardware serial port to communicate with the Pololu Micro Maestro
as the default RX1 / TX1, because I need this port mandatory for other tasks?

Yours sincerely



It is possible to change the serial port that the Maestro uses. Are you using the Basic.ino file in the PololuMaestro library as an example? The SERIAL_PORT_HARDWARE_OPEN object in line 29 is an Arduino serial object that points to the first open Serial port on the Arduino. You could change line 29 to:

This would use the TX2 and RX2 pins on the Arduino Mega 2560.




Thanks, this was very helpful. I couldn’t find this information anywhere else.
BTW, it should be: “#define maestroSerial Serial2” with a capital S on Serial2 or Serial3.