-
Notifications
You must be signed in to change notification settings - Fork 1
/
gpio.txt
202 lines (162 loc) · 2.52 KB
/
gpio.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
==========
GPIO SETUP
==========
1R 1 2 2R
3Br 3 4 3R
3W 5 6 2B
1O 7 8
1B 9 10
2Y 11 12 5V
13 14 3B
15 16
17 18
4Y 19 20
21 22
4G 23 24
4Bl 25 26
R = red
Br = brown
W = white
O = orange
B = black
Bl = blue
G = green
Y = yellow
V = violet
DS18B20 temp
------------
1R = +3.3v
1O = GPIO04 (data IN) (+ ext pullup)
1B = GND
Thermo Relay
------------
2R = +5v
2B = GND
2Y = GPIO17 (data IN/OUT)
Gate Relay
----------
2R = +5v
2B = GND
5V = GPIO18 (data IN/OUT)
I2C LCD
-------
3R = +5v
3B = GND
3Br = GPIO2 (SDA)
3W = GPIO3 (SCL)
SPI LED (WS2801)
----------------
4Bl = GND
4G = SPI CLK
4Y = SPI MOSI
LCD GPIO DISPLAY
================
lcd_rs = GPIO27 # Note this might need to be changed to 21 for older revision Pi's.
lcd_en = GPIO22
lcd_d4 = GPIO25
lcd_d5 = GPIO24
lcd_d6 = GPIO23
lcd_d7 = GPIO18
lcd_backlight = GPIO4 # PWM disabled
pwr_+5
gnd_gn
bkl_bk => power supply for BKL (pot)
1R 1 2 2R
3 4 +5
5 6 2B
1O 7 8
1B 9 10
2Y 11 12 D7
RS 13 14 GN
EN 15 16 D6
17 18 D5
19 20
21 22 D4
23 24
25 26
Number samples
==============
***** *****
***** *****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
***** ***** *****
***** ***** *****
***** *****
***** *****
*****
*****
*****
***** *****
***** *****
*****
*****
*****
*****
*****
***** ***** *****
***** ***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** ***** *****
***** ***** *****
*****
*****
*****
*****
*****
*****
*****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
*****
*****
*****
***** *****
***** *****
***** *****
***** *****
*****
*****
*****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
***** *****
*****
*****
20x4 screens
+--------------------+
|_ 12:12 |
| XXX XXX XXX ° |
| XXX XXX.XXX |
|M rem ipsum dolor si|
+--------------------+
+--------------------+
|_ 12:12 |
| XXX XXX XXX ° |
| XXX XXX.XXX |
|M Upstairs 19.0°C|
+--------------------+