2020-01-27 18:34:08 +00:00
|
|
|
## ST7789 LCD
|
|
|
|
|
|
|
|
https://learn.adafruit.com/adafruit-1-3-and-1-54-240-x-240-wide-angle-tft-lcd-displays/pinouts
|
|
|
|
|
|
|
|
| Identifier | Description | Arduino pin | ATMega328p pin |
|
|
|
|
|------------|----------------------------|-------------|----------------|
|
|
|
|
| MOSI | SPI master out - slave in | 11 | 15 - PB3 |
|
|
|
|
| SCLK | SPI clock | 13 | 17 - PB5 |
|
|
|
|
| CS | Chip select | N/C | N/C |
|
|
|
|
| RST | Reset | 9 | 13 - PB1 |
|
|
|
|
| DC | SPI data / command select | 8 | 12 - PB0 |
|
|
|
|
| BL | Backlight PWM | 7 | 11 - PD7 |
|
|
|
|
|
|
|
|
|
|
|
|
## Polulu G2 motor driver
|
|
|
|
|
|
|
|
https://www.pololu.com/product/2995
|
|
|
|
|
|
|
|
| Identifier | Description | Arduino pin | ATMega328p pin |
|
|
|
|
|------------|----------------------------|-------------|----------------|
|
|
|
|
| PWM | Motor PWM | 14 | 23 - PC0 |
|
|
|
|
| DIR | Direction | 15 | 24 - PC1 |
|
|
|
|
| SLP | Sleep (active low) | 16 | 25 - PC2 |
|
2020-01-31 09:36:36 +00:00
|
|
|
| CS | Current sensing | 17 / A3 | 26 - PC3 |
|
2020-01-27 18:34:08 +00:00
|
|
|
|
|
|
|
CS has a voltage of 50mV + 20mV per A.
|
|
|
|
|
|
|
|
|
|
|
|
## VL53L0X time-of-flight sensor
|
|
|
|
|
|
|
|
https://learn.adafruit.com/adafruit-vl53l0x-micro-lidar-distance-sensor-breakout/pinouts
|
|
|
|
|
|
|
|
| Identifier | Description | Arduino pin | ATMega328p pin |
|
|
|
|
|------------|----------------------------|-------------|----------------|
|
2020-01-28 15:52:18 +00:00
|
|
|
| SCL | I²C clock | 18 / A4 | 28 - PC5 |
|
|
|
|
| SDA | I²C data | 19 / A5 | 27 - PC4 |
|
2020-01-27 18:34:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Buttons
|
|
|
|
|
|
|
|
| Description | Arduino pin | ATMega328p pin |
|
|
|
|
|-------------|-------------|----------------|
|
|
|
|
| Up | 3 | 1 - PD3 |
|
|
|
|
| Menu | 5 | 9 - PD5 |
|
|
|
|
| Down | 6 | 10 - PD6 |
|