|
| 1 | +--- |
| 2 | +title: "Arduino UNO Q" |
| 3 | +weight: 2 |
| 4 | +--- |
| 5 | + |
| 6 | +The [Arduino UNO Q](https://docs.arduino.cc/hardware/uno-q/) is a single board Debian Linux computer with a [Qualcomm Dragonwing QRB2210 MPU](https://www.qualcomm.com/internet-of-things/products/q2-series/qrb2210) and also an onboard [STMicro STM32U585 MCU](https://www.st.com/resource/en/datasheet/stm32u585ai.pdf) an Arm Cortex-M33 processor with 786KB of SRAM and 2MB of onboard flash storage. In addition it has an 8x13 LED matrix, along with a few other onboard LEDs. |
| 7 | + |
| 8 | +## Interfaces |
| 9 | + |
| 10 | +| Interface | Hardware Supported | TinyGo Support | |
| 11 | +| --------- | ------------- | ----- | |
| 12 | +| GPIO | YES | YES | |
| 13 | +| UART | YES | YES | |
| 14 | +| SPI | YES | YES | |
| 15 | +| I2C | YES | YES | |
| 16 | +| ADC | YES | YES | |
| 17 | +| PWM | YES | YES | |
| 18 | + |
| 19 | +## Pins |
| 20 | + |
| 21 | +| Pin | Hardware pin | Alternative names | |
| 22 | +| ----------------- | ------------ | ----------------- | |
| 23 | +| `A0` | `PA4` | `ADC0` | |
| 24 | +| `A1` | `PA5` | `ADC1`, `SPI1_SCK_PIN`, `SPI0_SCK_PIN` | |
| 25 | +| `A2` | `PA6` | `ADC2`, `SPI1_SDI_PIN`, `SPI0_SDI_PIN` | |
| 26 | +| `A3` | `PA7` | `ADC3`, `SPI1_SDO_PIN`, `SPI0_SDO_PIN` | |
| 27 | +| `A4` | `PC1` | `ADC4`, `D18` | |
| 28 | +| `A5` | `PC0` | `ADC5`, `D19` | |
| 29 | +| `D0` | `PB7` | `UART1_RX_PIN` | |
| 30 | +| `D1` | `PB6` | `UART1_TX_PIN` | |
| 31 | +| `D2` | `PB3` | | |
| 32 | +| `D3` | `PB0` | | |
| 33 | +| `D4` | `PA12` | | |
| 34 | +| `D5` | `PA11` | | |
| 35 | +| `D6` | `PB1` | | |
| 36 | +| `D7` | `PB2` | | |
| 37 | +| `D8` | `PB4` | | |
| 38 | +| `D9` | `PB8` | | |
| 39 | +| `D10` | `PB9` | | |
| 40 | +| `D11` | `PB15` | | |
| 41 | +| `D12` | `PB14` | | |
| 42 | +| `D13` | `PB13` | | |
| 43 | +| `D20` | `PB10` | `I2C0_SCL_PIN` | |
| 44 | +| `D21` | `PB11` | `I2C0_SDA_PIN` | |
| 45 | +| `LED` | `PH10` | `LED3_R` | |
| 46 | +| `LED3_G` | `PH11` | | |
| 47 | +| `LED3_B` | `PH12` | | |
| 48 | +| `LED4_R` | `PH13` | | |
| 49 | +| `LED4_G` | `PH14` | | |
| 50 | +| `LED4_B` | `PH15` | | |
| 51 | +| `UART_TX_PIN` | `PG7` | `UART2_TX_PIN` | |
| 52 | +| `UART_RX_PIN` | `PG8` | `UART2_RX_PIN` | |
| 53 | +| `I2C1_SCL_PIN` | `PD12` | | |
| 54 | +| `I2C1_SDA_PIN` | `PD13` | | |
| 55 | + |
| 56 | +## Machine Package Docs |
| 57 | + |
| 58 | +[Documentation for the machine package for the Arduino UNO Q](../../machine/arduino-uno-q) |
| 59 | + |
| 60 | +## Flashing |
| 61 | + |
| 62 | +### adb |
| 63 | + |
| 64 | +To use the `tinygo flash` command to flash your Arduino UNO Q directly from your computer without an external monitor or keyboard, you must install the Android Debug Bridge (adb) tool. |
| 65 | + |
| 66 | +You can obtain the `adb` command line tool for your platform here: |
| 67 | +https://developer.android.com/tools/releases/platform-tools |
| 68 | + |
| 69 | +### Troubleshooting |
| 70 | + |
| 71 | +Any troubleshooting info goes here. |
| 72 | + |
| 73 | +## Notes |
| 74 | + |
| 75 | +The onboard LED matrix has a driver in the TinyGo drivers repo located here: |
| 76 | +https://github.com/tinygo-org/drivers/tree/release/unoqmatrix |
| 77 | + |
| 78 | +For more examples and info about using the Arduino UNO Q with TinyGo, see the examples repo located here: |
| 79 | +https://github.com/tinygo-org/tinygo-arduino-unoq-examples |
0 commit comments