Kode Taker 2018

Dependencies:   mbed PS_PAD encoderKRAI Motor_1 millis

Committer:
gatulz
Date:
Tue Jul 03 13:52:06 2018 +0000
Revision:
1:1dc7c9cb4f8c
Parent:
0:8c6f29487664
tambah pad lingkaran.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gatulz 0:8c6f29487664 1 // Pin Motor
gatulz 0:8c6f29487664 2 // Motor A
gatulz 0:8c6f29487664 3 #define PIN_PWM_A PB_6
gatulz 0:8c6f29487664 4 #define PIN_FWD_A PB_13
gatulz 0:8c6f29487664 5 #define PIN_REV_A PA_10
gatulz 0:8c6f29487664 6 // Motor B
gatulz 0:8c6f29487664 7 #define PIN_PWM_B PB_8
gatulz 0:8c6f29487664 8 #define PIN_FWD_B PA_5
gatulz 0:8c6f29487664 9 #define PIN_REV_B PA_9
gatulz 0:8c6f29487664 10 // Motor C
gatulz 0:8c6f29487664 11 #define PIN_PWM_C PB_9
gatulz 0:8c6f29487664 12 #define PIN_FWD_C PA_12
gatulz 0:8c6f29487664 13 #define PIN_REV_C PA_11
gatulz 0:8c6f29487664 14
gatulz 0:8c6f29487664 15 // Pin UART
gatulz 0:8c6f29487664 16 // Arduino
gatulz 0:8c6f29487664 17 #define PIN_TX PA_0
gatulz 0:8c6f29487664 18 #define PIN_RX PA_1
gatulz 0:8c6f29487664 19
gatulz 0:8c6f29487664 20 // Pin Encoder
gatulz 0:8c6f29487664 21 #define PIN_A_CHANNEL_A PC_0
gatulz 0:8c6f29487664 22 #define PIN_A_CHANNEL_B PC_1
gatulz 0:8c6f29487664 23 #define PIN_B_CHANNEL_A PC_6
gatulz 0:8c6f29487664 24 #define PIN_B_CHANNEL_B PC_7
gatulz 0:8c6f29487664 25 #define PIN_C_CHANNEL_A PC_5
gatulz 0:8c6f29487664 26 #define PIN_C_CHANNEL_B PC_4
gatulz 0:8c6f29487664 27
gatulz 0:8c6f29487664 28 // Pin pneumatik
gatulz 0:8c6f29487664 29 #define PIN_PNEUMATIK_1 PC_11
gatulz 0:8c6f29487664 30 #define PIN_PNEUMATIK_2 PA_15
gatulz 0:8c6f29487664 31 #define PIN_PNEUMATIK_3 PC_14
gatulz 0:8c6f29487664 32 #define PIN_PNEUMATIK_4 PH_0
gatulz 0:8c6f29487664 33 #define PIN_PNEUMATIK_5 PH_1
gatulz 0:8c6f29487664 34 #define PIN_PNEUMATIK_6 PA_4
gatulz 0:8c6f29487664 35 #define PIN_PNEUMATIK_7 PC_15
gatulz 0:8c6f29487664 36 #define PIN_PNEUMATIK_8 PC_13
gatulz 0:8c6f29487664 37 #define PIN_PNEUMATIK_9 PA_14
gatulz 0:8c6f29487664 38 #define PIN_PNEUMATIK_10 PC_10