Arduino Leonardo by Arduino
The Arduino Leonardo can be programmed with the EZB firmware for various capabilities when connected to ARC. Find the firmware below. The tutorial to program the EZB firmware can be found HERE. This firmware works with ARC versions greater or equal to 2019.06.25.00.
* Connection Notes *
Due to an undocumented bug feature (?), the Arduino Leonardo's USB, the serial driver, requires DTR Enabled to trigger received data events. This can be done by viewing the Connection Config screen (the same place you set the baud rate) and checking DTR Enabled checkbox.
Arduino Firmware
In the meantime, download the Arduino firmware below. You can program on the Arduino Leonardo. Adding this firmware lets you connect ARC to the Arduino via USB and directly control the GPIO.
Download Arduino Leonardo Firmware: EZ-Genuino_Leonardo.zip. Last updated 2022/08/24
Pinouts
The Digital pins can be used for PWM, servos, and digital on/off. The ADC ports are 0-5 for analog input. Digital pin 0 is Uart #0 RX, and digital pin 1 is Uart #0 TX. Verify the pins in the image below.
PWM pins may also vary based on the board type.
Board | PWM Pins | PWM Frequency |
---|---|---|
Uno, Nano, Mini |
3, 5, 6, 9, 10, 11 |
490 Hz (pins 5 and 6: 980 Hz) |
Mega |
2 - 13, 44 - 46 |
490 Hz (pins 4 and 13: 980 Hz) |
Leonardo, Micro, Yún |
3, 5, 6, 9, 10, 11, 13 |
490 Hz (pins 3 and 11: 980 Hz) |
Uno WiFi Rev2, Nano Every |
3, 5, 6, 9, 10 |
976 Hz |
MKR boards * |
0 - 8, 10, A3, A4 |
732 Hz |
MKR1000 WiFi * |
0 - 8, 10, 11, A3, A4 |
732 Hz |
Zero * |
3 - 13, A0, A1 |
732 Hz |
Nano 33 IoT * |
2, 3, 5, 6, 9 - 12, A2, A3, A5 |
732 Hz |
Nano 33 BLE/BLE Sense |
1 - 13, A0 - A7 |
500 Hz |
Due ** |
2-13 |
1000 Hz |
101 |
3, 5, 6, 9 |
pins 3 and 9: 490 Hz, pins 5 and 6: 980 Hz |