summaryrefslogtreecommitdiff
path: root/OpenPLC_modules/openplc_modules/motor/motor.sch
blob: 278e126344c042e23f9b34cff14ec5f4dcbba9e6 (plain)
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
EESchema Schematic File Version 4
LIBS:motor-cache
EELAYER 26 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Wire Wire Line
	3600 4100 3800 4100
Wire Wire Line
	3600 4200 3800 4200
Wire Wire Line
	3600 4300 3800 4300
Wire Wire Line
	3600 4400 3800 4400
Text Label 3600 4100 2    50   ~ 0
GND
Text Label 3600 4200 2    50   ~ 0
sw1
Text Label 3600 4300 2    50   ~ 0
sw2
Text Label 3600 4400 2    50   ~ 0
sw3
Wire Wire Line
	5350 4600 5350 4750
Wire Wire Line
	5350 4750 5450 4750
Wire Wire Line
	5750 4750 5750 4600
Wire Wire Line
	5650 4600 5650 4750
Connection ~ 5650 4750
Wire Wire Line
	5650 4750 5750 4750
Wire Wire Line
	5450 4600 5450 4750
Connection ~ 5450 4750
Wire Wire Line
	5450 4750 5550 4750
$Comp
L power:GND #PWR0101
U 1 1 5C2DBC6F
P 5550 4850
F 0 "#PWR0101" H 5550 4600 50  0001 C CNN
F 1 "GND" H 5555 4677 50  0000 C CNN
F 2 "" H 5550 4850 50  0001 C CNN
F 3 "" H 5550 4850 50  0001 C CNN
	1    5550 4850
	1    0    0    -1  
$EndComp
Wire Wire Line
	5550 4850 5550 4750
Connection ~ 5550 4750
Wire Wire Line
	5550 4750 5650 4750
$Comp
L Connector:Screw_Terminal_01x02 J3
U 1 1 5C2DBD8E
P 7350 3250
F 0 "J3" V 7223 3330 50  0000 L CNN
F 1 "motor" H 7450 3200 50  0000 L CNN
F 2 "TerminalBlocks_Phoenix:TerminalBlock_Phoenix_MPT-2.54mm_2pol" H 7350 3250 50  0001 C CNN
F 3 "~" H 7350 3250 50  0001 C CNN
	1    7350 3250
	1    0    0    -1  
$EndComp
NoConn ~ 6050 3800
NoConn ~ 5050 3800
$Comp
L power:+5V #PWR0102
U 1 1 5C2DEEA9
P 5450 2650
F 0 "#PWR0102" H 5450 2500 50  0001 C CNN
F 1 "+5V" H 5465 2823 50  0000 C CNN
F 2 "" H 5450 2650 50  0001 C CNN
F 3 "" H 5450 2650 50  0001 C CNN
	1    5450 2650
	1    0    0    -1  
$EndComp
$Comp
L power:+12V #PWR0103
U 1 1 5C2DEF1F
P 5650 2650
F 0 "#PWR0103" H 5650 2500 50  0001 C CNN
F 1 "+12V" H 5665 2823 50  0000 C CNN
F 2 "" H 5650 2650 50  0001 C CNN
F 3 "" H 5650 2650 50  0001 C CNN
	1    5650 2650
	1    0    0    -1  
$EndComp
Wire Wire Line
	5450 2800 5450 2700
Wire Wire Line
	5050 3600 4750 3600
Wire Wire Line
	4750 3600 4750 2700
Wire Wire Line
	4750 2700 5450 2700
Connection ~ 5450 2700
Wire Wire Line
	5450 2700 5450 2650
$Comp
L Driver_Motor:L293D U1
U 1 1 5C2E03BE
P 5550 3800
F 0 "U1" H 6150 4850 50  0000 C CNN
F 1 "L293D" H 6150 4750 50  0000 C CNN
F 2 "Housings_DIP:DIP-16_W7.62mm_Socket_LongPads" H 5800 3050 50  0001 L CNN
F 3 "http://www.ti.com/lit/ds/symlink/l293.pdf" H 5250 4500 50  0001 C CNN
	1    5550 3800
	1    0    0    -1  
$EndComp
Wire Wire Line
	7150 3200 7150 3250
Wire Wire Line
	6050 3200 6500 3200
Wire Wire Line
	7150 3400 7150 3350
Wire Wire Line
	6050 3400 6500 3400
Wire Wire Line
	5650 2650 5650 2800
$Comp
L Connector:Conn_01x05_Male J4
U 1 1 5C2E1BA3
P 6900 4200
F 0 "J4" H 6550 4300 50  0000 C CNN
F 1 "towards uC" H 6500 4200 50  0000 C CNN
F 2 "Connectors_JST:JST_EH_B05B-EH-A_05x2.50mm_Straight" H 6900 4200 50  0001 C CNN
F 3 "~" H 6900 4200 50  0001 C CNN
	1    6900 4200
	1    0    0    -1  
$EndComp
$Comp
L Connector:Conn_01x04_Male J1
U 1 1 5C2E1CA4
P 4000 3550
F 0 "J1" H 3972 3430 50  0000 R CNN
F 1 "power" H 3972 3521 50  0000 R CNN
F 2 "Connectors_JST:JST_EH_B04B-EH-A_04x2.50mm_Straight" H 4000 3550 50  0001 C CNN
F 3 "~" H 4000 3550 50  0001 C CNN
	1    4000 3550
	-1   0    0    -1  
$EndComp
Wire Wire Line
	3800 3650 3550 3650
Wire Wire Line
	3800 3550 3550 3550
$Comp
L Connector:Conn_01x04_Male J2
U 1 1 5C2E2661
P 4000 4300
F 0 "J2" H 3973 4180 50  0000 R CNN
F 1 "from switches" H 3973 4271 50  0000 R CNN
F 2 "Connectors_JST:JST_EH_B04B-EH-A_04x2.50mm_Straight" H 4000 4300 50  0001 C CNN
F 3 "~" H 4000 4300 50  0001 C CNN
	1    4000 4300
	-1   0    0    1   
$EndComp
Text Label 3550 3550 2    50   ~ 0
+12V
Text Label 3550 3650 2    50   ~ 0
+5V
Text Label 3550 3750 2    50   ~ 0
GND
Wire Wire Line
	7100 4000 7400 4000
Wire Wire Line
	7100 4100 7400 4100
Wire Wire Line
	7100 4200 7400 4200
Wire Wire Line
	7100 4300 7400 4300
Wire Wire Line
	7100 4400 7400 4400
Text Label 7400 4000 0    50   ~ 0
sw3
Text Label 7400 4100 0    50   ~ 0
sw2
Text Label 7400 4200 0    50   ~ 0
sw1
Wire Wire Line
	5050 3200 4950 3200
Wire Wire Line
	5050 3400 4950 3400
Text Label 4950 3200 0    50   ~ 0
1a
Text Label 4950 3400 0    50   ~ 0
2a
Text Label 7400 4300 0    50   ~ 0
1a
Text Label 7400 4400 0    50   ~ 0
2a
$Comp
L Device:C C2
U 1 1 5C2E4D95
P 6500 3550
F 0 "C2" H 6615 3596 50  0000 L CNN
F 1 "1uf" H 6615 3505 50  0000 L CNN
F 2 "Capacitors_THT:C_Disc_D3.8mm_W2.6mm_P2.50mm" H 6538 3400 50  0001 C CNN
F 3 "~" H 6500 3550 50  0001 C CNN
	1    6500 3550
	1    0    0    -1  
$EndComp
Connection ~ 6500 3400
Wire Wire Line
	6500 3400 7150 3400
$Comp
L power:GND #PWR0104
U 1 1 5C2E4DCB
P 6500 3700
F 0 "#PWR0104" H 6500 3450 50  0001 C CNN
F 1 "GND" H 6505 3527 50  0000 C CNN
F 2 "" H 6500 3700 50  0001 C CNN
F 3 "" H 6500 3700 50  0001 C CNN
	1    6500 3700
	1    0    0    -1  
$EndComp
$Comp
L Device:C C1
U 1 1 5C2E4DE2
P 6500 3050
F 0 "C1" H 6615 3096 50  0000 L CNN
F 1 "1uf" H 6615 3005 50  0000 L CNN
F 2 "Capacitors_THT:C_Disc_D3.8mm_W2.6mm_P2.50mm" H 6538 2900 50  0001 C CNN
F 3 "~" H 6500 3050 50  0001 C CNN
	1    6500 3050
	1    0    0    -1  
$EndComp
Connection ~ 6500 3200
Wire Wire Line
	6500 3200 7150 3200
$Comp
L power:GND #PWR0105
U 1 1 5C2E4E1A
P 6500 2900
F 0 "#PWR0105" H 6500 2650 50  0001 C CNN
F 1 "GND" H 6505 2727 50  0000 C CNN
F 2 "" H 6500 2900 50  0001 C CNN
F 3 "" H 6500 2900 50  0001 C CNN
	1    6500 2900
	-1   0    0    1   
$EndComp
$Comp
L Device:LED D1
U 1 1 5C2E5DA0
P 4500 4650
F 0 "D1" H 4491 4866 50  0000 C CNN
F 1 "LED" H 4491 4775 50  0000 C CNN
F 2 "LEDs:LED_D3.0mm" H 4500 4650 50  0001 C CNN
F 3 "~" H 4500 4650 50  0001 C CNN
	1    4500 4650
	1    0    0    -1  
$EndComp
$Comp
L Device:LED D2
U 1 1 5C2E5E42
P 4500 4950
F 0 "D2" H 4491 5166 50  0000 C CNN
F 1 "LED" H 4491 5075 50  0000 C CNN
F 2 "LEDs:LED_D3.0mm" H 4500 4950 50  0001 C CNN
F 3 "~" H 4500 4950 50  0001 C CNN
	1    4500 4950
	1    0    0    -1  
$EndComp
$Comp
L Device:LED D3
U 1 1 5C2E5E7E
P 4500 5250
F 0 "D3" H 4491 5466 50  0000 C CNN
F 1 "LED" H 4491 5375 50  0000 C CNN
F 2 "LEDs:LED_D3.0mm" H 4500 5250 50  0001 C CNN
F 3 "~" H 4500 5250 50  0001 C CNN
	1    4500 5250
	1    0    0    -1  
$EndComp
Wire Wire Line
	4650 4650 4750 4650
Wire Wire Line
	4750 4650 4750 3600
Connection ~ 4750 3600
Wire Wire Line
	4650 4950 4750 4950
Wire Wire Line
	4750 4950 4750 4650
Connection ~ 4750 4650
Wire Wire Line
	4650 5250 4750 5250
Wire Wire Line
	4750 5250 4750 4950
Connection ~ 4750 4950
Wire Wire Line
	4350 4650 4200 4650
Wire Wire Line
	4350 4950 4200 4950
Wire Wire Line
	4350 5250 4200 5250
$Comp
L Device:R_US R1
U 1 1 5C2E932B
P 4050 4650
F 0 "R1" V 4255 4650 50  0000 C CNN
F 1 "470" V 4164 4650 50  0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 4090 4640 50  0001 C CNN
F 3 "~" H 4050 4650 50  0001 C CNN
	1    4050 4650
	0    -1   -1   0   
$EndComp
$Comp
L Device:R_US R2
U 1 1 5C2E9401
P 4050 4950
F 0 "R2" V 4255 4950 50  0000 C CNN
F 1 "470" V 4164 4950 50  0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 4090 4940 50  0001 C CNN
F 3 "~" H 4050 4950 50  0001 C CNN
	1    4050 4950
	0    -1   -1   0   
$EndComp
$Comp
L Device:R_US R3
U 1 1 5C2E9431
P 4050 5250
F 0 "R3" V 4255 5250 50  0000 C CNN
F 1 "470" V 4164 5250 50  0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 4090 5240 50  0001 C CNN
F 3 "~" H 4050 5250 50  0001 C CNN
	1    4050 5250
	0    -1   -1   0   
$EndComp
Text Label 3900 4650 2    50   ~ 0
sw1
Text Label 3900 4950 2    50   ~ 0
sw2
Text Label 3900 5250 2    50   ~ 0
sw3
Wire Wire Line
	4900 4000 5050 4000
Wire Wire Line
	5050 4200 4900 4200
Text Label 4900 4000 0    50   ~ 0
2a
Text Label 4900 4200 0    50   ~ 0
1a
$Comp
L Device:R_US R4
U 1 1 5C332B9A
P 6200 4250
F 0 "R4" H 6050 4300 50  0000 L CNN
F 1 "1K" H 6000 4200 50  0000 L CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical" V 6240 4240 50  0001 C CNN
F 3 "~" H 6200 4250 50  0001 C CNN
	1    6200 4250
	1    0    0    -1  
$EndComp
Wire Wire Line
	6050 4000 6200 4000
Wire Wire Line
	6200 4000 6200 4100
$Comp
L Device:LED D4
U 1 1 5C333823
P 6200 4550
F 0 "D4" H 6191 4766 50  0000 C CNN
F 1 "error" H 6191 4675 50  0000 C CNN
F 2 "LEDs:LED_D5.0mm" H 6200 4550 50  0001 C CNN
F 3 "~" H 6200 4550 50  0001 C CNN
	1    6200 4550
	0    -1   -1   0   
$EndComp
$Comp
L power:GND #PWR0106
U 1 1 5C3338C6
P 6200 4800
F 0 "#PWR0106" H 6200 4550 50  0001 C CNN
F 1 "GND" H 6205 4627 50  0000 C CNN
F 2 "" H 6200 4800 50  0001 C CNN
F 3 "" H 6200 4800 50  0001 C CNN
	1    6200 4800
	1    0    0    -1  
$EndComp
Wire Wire Line
	6200 4700 6200 4800
Text Notes 4650 1850 0    197  ~ 0
Motor Module
Wire Wire Line
	3800 3750 3550 3750
NoConn ~ 3800 3450
$EndSCHEMATC