-
Notifications
You must be signed in to change notification settings - Fork 1
/
PortMapping.txt
40 lines (36 loc) · 1.12 KB
/
PortMapping.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Pin Mappings:
Joystick:
(Port) : (Function) : (Signal)
PB5 : X1 : Analog
PE4 : Y1 : Analog
PB1 : B2 : Digital
PB4 : B3 : Digital
PB3 : B1 : Digital
PB2 : B4 : Digital
Arm:
(Port) : (Function) (Color) : (Signal)
PE0 : Up/Down (Black) : PWM
PE5 : Forward/Back (Green) : PWM
PC5 : Claw (Yellow) : PWM
PC4 : Rotation (Blue) : PWM
Movement:
Button 1: Close Claw
Button 2: Up
Button 3: Down
Button 4: Open Claw
x-axis: Rotation
y-axis: Foward/Back
Deadzone:
x-avg = 1900 +/- 600
y-avg = 1832 +/- 500
The circuit for LCD:
* LCD RS pin to digital pin 28 (PE2)
* LCD Enable pin to digital pin 27 (PE1)
* LCD D4 pin to digital pin 23 (PD0)
* LCD D5 pin to digital pin 24 (PD1)
* LCD D6 pin to digital pin 25 (PD2)
* LCD D7 pin to digital pin 26 (PD3)
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)