19E042PIM Servomotor SG90

Dependencies:   mbed

Committer:
tzwell
Date:
Tue Jan 04 14:34:40 2022 +0000
Revision:
0:35383655148b
First publish, first commit

Who changed what in which revision?

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