Buat agip

Dependencies:   Motor_1 encoderKRAI mbed millis

Fork of Robo_Taker_Nasional_2018 by KRAI 2018

Committer:
Fathoni17
Date:
Fri Apr 27 15:09:03 2018 +0000
Revision:
8:8072ee4f1740
Parent:
7:8d8eb4676356
Child:
11:c682c965f781
Kecepatan max 0.7; Program BT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Fathoni17 0:22acd37ed695 1 // Pin Motor
Fathoni17 0:22acd37ed695 2 // Motor A
Fathoni17 0:22acd37ed695 3 #define PIN_PWM_A PB_6
Fathoni17 0:22acd37ed695 4 #define PIN_FWD_A PB_13
Fathoni17 0:22acd37ed695 5 #define PIN_REV_A PA_10
Fathoni17 0:22acd37ed695 6 // Motor B
Fathoni17 0:22acd37ed695 7 #define PIN_PWM_B PB_8
Fathoni17 0:22acd37ed695 8 #define PIN_FWD_B PA_5
Fathoni17 0:22acd37ed695 9 #define PIN_REV_B PA_9
Fathoni17 0:22acd37ed695 10 // Motor C
Fathoni17 0:22acd37ed695 11 #define PIN_PWM_C PB_9
Fathoni17 0:22acd37ed695 12 #define PIN_FWD_C PA_12
Fathoni17 0:22acd37ed695 13 #define PIN_REV_C PA_11
Fathoni17 0:22acd37ed695 14
Fathoni17 0:22acd37ed695 15 // Pin UART
Fathoni17 0:22acd37ed695 16 // Arduino
Fathoni17 0:22acd37ed695 17 #define PIN_TX PA_0
Fathoni17 0:22acd37ed695 18 #define PIN_RX PA_1
Fathoni17 0:22acd37ed695 19
Fathoni17 0:22acd37ed695 20 // Pin Encoder
Fathoni17 0:22acd37ed695 21 #define PIN_A_CHANNEL_A PC_0
Fathoni17 0:22acd37ed695 22 #define PIN_A_CHANNEL_B PC_1
Fathoni17 0:22acd37ed695 23 #define PIN_B_CHANNEL_A PC_6
Fathoni17 0:22acd37ed695 24 #define PIN_B_CHANNEL_B PC_7
Fathoni17 0:22acd37ed695 25 #define PIN_C_CHANNEL_A PC_5
Fathoni17 0:22acd37ed695 26 #define PIN_C_CHANNEL_B PC_4
Fathoni17 0:22acd37ed695 27
Fathoni17 0:22acd37ed695 28 // Pin pneumatik
Fathoni17 7:8d8eb4676356 29 #define PIN_PNEUMATIK_1 PD_2
Fathoni17 7:8d8eb4676356 30 #define PIN_PNEUMATIK_2 PA_14
Fathoni17 8:8072ee4f1740 31 #define PIN_PNEUMATIK_3 PA_15
Fathoni17 8:8072ee4f1740 32 #define PIN_PNEUMATIK_4 PC_14
Fathoni17 8:8072ee4f1740 33 #define PIN_PNEUMATIK_5 PC_13