![](/media/cache/profiles/nikki.png.50x50_q85.jpg)
19E042PIM DC motor
mb_pins.h@0:9e09213d299d, 2022-01-04 (annotated)
- Committer:
- tzwell
- Date:
- Tue Jan 04 14:36:43 2022 +0000
- Revision:
- 0:9e09213d299d
First publish, first commit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tzwell | 0:9e09213d299d | 1 | /* |
tzwell | 0:9e09213d299d | 2 | * This file contains all the pin names neccessary |
tzwell | 0:9e09213d299d | 3 | * for easy interaction with the EDS-MB for NUCLEOL476RG. |
tzwell | 0:9e09213d299d | 4 | * |
tzwell | 0:9e09213d299d | 5 | * University of Belgrade - School of Electrical Engineering |
tzwell | 0:9e09213d299d | 6 | * Department of Electronics |
tzwell | 0:9e09213d299d | 7 | * Bulevar Kralja Aleksandra 73, 11120 Belgrade, Serbia |
tzwell | 0:9e09213d299d | 8 | * |
tzwell | 0:9e09213d299d | 9 | * November 2021. |
tzwell | 0:9e09213d299d | 10 | * |
tzwell | 0:9e09213d299d | 11 | */ |
tzwell | 0:9e09213d299d | 12 | |
tzwell | 0:9e09213d299d | 13 | // LEDs, 560R in series, cathode to GND; left - red LED1; right - blue LED2: |
tzwell | 0:9e09213d299d | 14 | #define MB_LED1 PA_11 |
tzwell | 0:9e09213d299d | 15 | #define MB_LED2 PB_15 |
tzwell | 0:9e09213d299d | 16 | // Switches, DPST, pulled up with 10k resistor; left SW1, right SW2: |
tzwell | 0:9e09213d299d | 17 | // SW_EXT connector, from left to right: |
tzwell | 0:9e09213d299d | 18 | #define MB_SW1 PC_9 |
tzwell | 0:9e09213d299d | 19 | #define MB_SW2 PC_8 |
tzwell | 0:9e09213d299d | 20 | // Potentiometers; left POT1, right POT2: |
tzwell | 0:9e09213d299d | 21 | #define MB_POT1 PA_0 |
tzwell | 0:9e09213d299d | 22 | #define MB_POT2 PA_1 |
tzwell | 0:9e09213d299d | 23 | // Common anode, two digit seven-segment display. All signals active at '0': |
tzwell | 0:9e09213d299d | 24 | #define MB_SEL1 PB_6 |
tzwell | 0:9e09213d299d | 25 | #define MB_SEL2 PC_7 |
tzwell | 0:9e09213d299d | 26 | #define MB_A PA_10 |
tzwell | 0:9e09213d299d | 27 | #define MB_B PA_9 |
tzwell | 0:9e09213d299d | 28 | #define MB_C PA_8 |
tzwell | 0:9e09213d299d | 29 | #define MB_D PB_10 |
tzwell | 0:9e09213d299d | 30 | #define MB_E PB_5 |
tzwell | 0:9e09213d299d | 31 | #define MB_F PB_4 |
tzwell | 0:9e09213d299d | 32 | #define MB_G PB_3 |
tzwell | 0:9e09213d299d | 33 | // Piezoelectric buzzer, 10k in parallel; Active at '0': |
tzwell | 0:9e09213d299d | 34 | #define MB_BUZZ PA_11 |
tzwell | 0:9e09213d299d | 35 | // SDD1306-based OLED display; Uses I2C_2 to communicate with NUCLEO: |
tzwell | 0:9e09213d299d | 36 | #define MB_OLED_SDA PB_14 |
tzwell | 0:9e09213d299d | 37 | #define MB_OLED_SCL PB_13 |
tzwell | 0:9e09213d299d | 38 | // ESP-WROOM-02 WiFi microcontroller; Uses UART_3 to communicate with NUCLEO: |
tzwell | 0:9e09213d299d | 39 | #define MB_ESP_RST PA_12 |
tzwell | 0:9e09213d299d | 40 | #define MB_ESP_TX PC_4 |
tzwell | 0:9e09213d299d | 41 | #define MB_ESP_RX PC_5 |
tzwell | 0:9e09213d299d | 42 | #define MB_ESP_EN RESET |
tzwell | 0:9e09213d299d | 43 | // mikroBUS pinout, upper leftmost pin is no. 1: |
tzwell | 0:9e09213d299d | 44 | #define MB_MIKRO_AN PB_1 |
tzwell | 0:9e09213d299d | 45 | #define MB_MIKRO_RST PB_12 |
tzwell | 0:9e09213d299d | 46 | #define MB_MIKRO_CS PD_2 |
tzwell | 0:9e09213d299d | 47 | #define MB_MIKRO_SCK PC_10 |
tzwell | 0:9e09213d299d | 48 | #define MB_MIKRO_MISO PC_11 |
tzwell | 0:9e09213d299d | 49 | #define MB_MIKRO_MOSI PC_12 |
tzwell | 0:9e09213d299d | 50 | #define MB_MIKRO_SDA PB_14 |
tzwell | 0:9e09213d299d | 51 | #define MB_MIKRO_SCL PB_13 |
tzwell | 0:9e09213d299d | 52 | #define MB_MIKRO_TX PB_11 |
tzwell | 0:9e09213d299d | 53 | #define MB_MIKRO_RX PB_7 |
tzwell | 0:9e09213d299d | 54 | #define MB_MIKRO_INT PB_2 |
tzwell | 0:9e09213d299d | 55 | #define MB_MIKRO_PWM PC_6 |
tzwell | 0:9e09213d299d | 56 | // ANALOG_EXT connector, from left to right: |
tzwell | 0:9e09213d299d | 57 | #define MB_AI1 PC_3 |
tzwell | 0:9e09213d299d | 58 | #define MB_AI2 PC_2 |
tzwell | 0:9e09213d299d | 59 | #define MB_A0 PA_4 |