ESP Line Following Buggy
2nd Year Embedded System Project (Group 48 - 2023/24)
Loading...
Searching...
No Matches
pin_assignments.h
Go to the documentation of this file.
1
8#pragma once
9
10// Debug LED pin
11#define LED_PIN LED1
12
13// Motor 1 Pins
14#define MOTORL_BIPOLAR_PIN PA_6
15#define MOTORL_DIRECTION_PIN PA_7
16#define MOTORL_PWM_PIN PB_6
17
18// Motor 2 Pins
19#define MOTORR_BIPOLAR_PIN PC_7
20#define MOTORR_DIRECTION_PIN PA_9
21#define MOTORR_PWM_PIN PA_8
22
23// Other Motor Driver Board Pins
24#define DRIVER_ENABLE_PIN PB_10
25#define DRIVER_MONITOR_PIN PB_4
26
27// Motor Encoder Channels Pins
28#define MOTORL_CHA_PIN PA_0
29#define MOTORL_CHB_PIN PA_1
30#define MOTORR_CHA_PIN PB_3
31#define MOTORR_CHB_PIN PA_10
32
33// Bluetooth Pins
34#define BT_TX_PIN PA_11
35#define BT_RX_PIN PA_12
36
37// Sensor Analog Input Pins
38#define SENSOR0_OUT_PIN PB_2
39#define SENSOR1_OUT_PIN PB_1
40#define SENSOR2_OUT_PIN PB_15
41#define SENSOR3_OUT_PIN PB_14
42#define SENSOR4_OUT_PIN PB_13
43#define SENSOR5_OUT_PIN PC_4
44
45// Sensor Digital Output Control Pin
46#define SENSOR0_IN_PIN PC_2
47#define SENSOR1_IN_PIN PC_3
48#define SENSOR2_IN_PIN PA_4
49#define SENSOR3_IN_PIN PB_0
50#define SENSOR4_IN_PIN PC_1
51#define SENSOR5_IN_PIN PC_0