-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircuit-wiring.txt
55 lines (44 loc) · 1.52 KB
/
circuit-wiring.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Here is the required wiring for the Arduino
AdaFruit Display:
Display Pin Arduino Mega Pin
1 GND BB GND bus
2 Vcc BB Vcc (+ive) bus
3 RESET Pin 8
4 D/C Pin 7
Data/Command
5 CARD_CS Pin 5
Card Chip Select
6 TFT_CS Pin 6
TFT/screen Chip Select
7 MOSI Pin 51
Master Out Slave In
8 SCK (Clock) Pin 52
9 MISO Pin 50
Master In Slave Out
10 LITE BB Vcc (+ive) bus
Backlite
Zoom in and out buttons:
Turn on pullup resistors.
Insted of connecting the buttons between the input pin and ground, use
the debounce circuit as per
http://ugweb.cs.ualberta.ca/~c274/web/ConcreteComputing/section/interrupts.htm
That is,
1. use a 560 Ohm (Grn Blu Red) resistor to connect one side of the button
to GND
2. connect the other side of the button to the input pin on the Arduino
3. connect a 1 uF capacitor between the input pin on the Arduino and GND
Button Arduino Mega Pin
Zoom In Pin 3
Zoom Out Pin 2
Joystick connections:
Turn on pullup resistor
Joystick Pin Arduino Mega Pin
Vcc Vcc
GND GND
Horizontal Analog 0
Vertical Analog 1
Button Pin 4
Modified version that debounces the button:
Button --- 560 Ohm Resistor ---|--- 1 uF capacitor --- GND
|
Pin 4