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