Nghiên cứu và chế tạo mô hình máy bay quadrocopter
Nhiệm vụ:
- Thiết kế và thi công mô hình Quadrocopter với các thiết bị tương thích.
- Xây dựng thuật toán điều khiển Quadrocopter có khả năng tự thăng bằng trên trục, bay cân bằng trong không trung
- Xây dựng chương trình giám sát từ máy tính dùng LabVIEW
Luận văn " Nghiên cứu và chế tạo mô hình máy bay quadrocopter" dài 114 trang, chia làm 3 chương
114 trang |
Chia sẻ: banmai | Lượt xem: 3564 | Lượt tải: 2
Bạn đang xem trước 20 trang tài liệu Nghiên cứu và chế tạo mô hình máy bay quadrocopter, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Q YjFKӍWKӏ trong Front Panel
- %L͋Xÿ͛NK͙L %ORFNDiagram): OjFӱDVәVRҥQ WKҧR FKRFKѭѫQJ WUuQKÿӗKӑD
1ӝLGXQJKLӇQWKӏJӗPFy
x &iFNKӕLFRQWUROYjLQGLFDWRU FӫDFKѭѫQJWUuQKFKtQK
x &iFÿѭӡQJ Gk\ OLrQNӃWWtQKLӋX.
45
+uQK30 Block Diagram
1JRjL UD, Block Diagram FzQFKӭDFiFKjPfuntions) GQJ WURQJ WKLӃWNӃ WtQK
WRiQYjÿLӅXNKLӇQFiFKjPQj\VӁNK{QJKLӇQWKӏӣ)URQWPanel.
+uQK31 &iFKjPWURQJ%ORFN'LDJUDP
0jXGk\ OLrQNӃW WURQJQJ{QQJӳÿӗKӑDFӫDLabVIEW Oj NKiFQKDXFKRPӛi
NLӇXGӳOLӋX
+uQK32 0jXVҳFFӫDGk\GӳOLӋXWURQJLabVIEW
46
&+ѬѪ1*;Æ<'Ӵ1*0Ð+Î1+QUADROCOPTER
3.1 6ѫÿӗNKӕLWәQJWKӇFӫDKӋWKӕQJ
Khung
Quadrocopter
Joysticks
9LÿLӅX
NKLӇQ
Pin 9V
Pin Lipo
9LÿLӅX
NKLӇQ
ESCs
Motors
&ҧP
ELӃQ
3KiW5) Thu RF
: QăQJOѭӧQJ
: WiF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KѭVDX
sinXZ = sin(Axz) = Rx / Rxz ; cosZX = cos(Axz) = Rz / Rxz
sinYZ = sin(Ayz) = Ry / Ryz ; cosZY = cos(Ayz) = Rz / Ryz
=> tanXZ = tan(Axz) = sinXZ / cosXZ = Rx / Rz
tanYZ = tan(Ayz) = sinYZ / cosYZ = Ry / Rz
=> Axz = arctanXZ = atan2(Rx, Rz)
Ayz = arctanYZ = atan2(Ry, Rz)
7URQJÿy Rx Ry Rz [iFÿӏQKWKHR JLiWUӏ ÿLӋQiS ÿӑF ÿѭӧF ӣ QJ}UD FӫDFҧPELӃQ
Eҵng Eӝ FKX\ӇQÿәLADC 10-bit:
Rx = (ADC_Rx * Vref / 1023 ± VzeroGx) / Sensitivity
Ry = (ADC_Ry * Vref / 1023 ± VzeroGy) / Sensitivity
Rz = (ADC_Rz * Vref / 1023 ± VzeroGz) / Sensitivity
;iFÿӏQK FiFÿҥLOѭӧQJYұQWӕFJyF FӫDFҧPELӃQgyroscope QKѭVDX:
RateAxz = (ADC_GyroXZ * Vref / 1023 ± VzeroRatexz) / Sensitivity
RateAyz = (ADC_GyroYZ * Vref / 1023 ± VzeroRateyz) / Sensitivity
65
4.1.2 7͙L˱X KyD WKX̵WWRiQKalman
7KXұW WRiQ.DOPDQ EDRKjPFiFSKpS WRiQ WUrQPD WUұQYӟLFiFSKҫQ WӱÿӅXӣ
GҥQJVӕWKӵF'RÿyNKLÿѭDYjRWtQKWRiQWURQJYLÿLӅXNKLӇQFҫQSKҧLWKӵFKLӋQWӕL
ѭXKyDVDRFKRÿѫQJLҧQQKҩWQKҵPJLҧP WKӡLJLDQWtQK WRiQ WăQJFKXNǤ OjPYLӋF
QkQJFDRKLӋXVXҩWFKRKӋWKӕQJ
Ĉk\OjWKXұWWRiQ.DOPDQVDXNKLÿѭӧFWӕLѭX: [11]
{
// Inputs
u = gyros;
y = angle;
// Update the state estimate
// x = A * x + B * u
x_00 += (A_01 * x_10) + (B_00 * u);
// Compute the innovation -- error between measured value and state
// inn = y - c * x
inn_00 = y - x_00;
// Compute the covariance of the innovation
// s = C * P * C' + Sz
s_00 = P_00 + Sz;
// Compute AP matrix for use below
// AP = A * P
AP_00 = P_00 + A_01 * P_10;
AP_01 = P_01 + A_01 * P_11;
AP_10 = P_10;
AP_11 = P_11;
// Compute the kalman gain matrix
// K = A * P * C' * inv(s)
K_00 = AP_00 / s_00;
K_10 = AP_10 / s_00;
// Update the state estimate
// x = x + K * inn
x_00 += K_00 * inn_00;
x_10 += K_10 * inn_00;
// Compute the new covariance of the estimation error
// P = A * P * A' - K * C * P * A' + Sw
APAT_00 = AP_00 + (AP_01 * A_01);
APAT_01 = AP_01;
APAT_10 = AP_10 + (AP_11 * A_01);
APAT_11 = AP_11;
KCPAT_00 = (K_00 * P_00) + (K_00 * P_01) * A_01;
KCPAT_01 = (K_00 * P_01);
KCPAT_10 = (K_10 * P_00) + (K_10 * P_01) * A_01;
KCPAT_11 = (K_10 * P_01);
P_00 = APAT_00 - KCPAT_00 + Sw_00;
P_01 = APAT_01 - KCPAT_01;
P_10 = APAT_10 - KCPAT_10;
P_11 = APAT_11 - KCPAT_11 + Sw_11;
// Output
return = x_00;
}
66
4.1.3 ;iFÿ͓QKFiFWK{QJV͙YjKRjQFK͑QKE͡O͕F Kalman
&iFWK{QJVӕFӫDEӝOӑF.DOPDQOjNKiFQKDXÿӕLYӟLQKӳQJKӋWKӕQJNKiFQKDX
&K~QJÿѭӧF[iFÿӏQK FKӫ\ӃXEҵQJNӃWTXҧÿRÿҥF WKӵFQJKLӋP NK{QJWKӇGQJPӝW
SKѭѫQJSKiSWRiQKӑFQjRWtQKUDÿѭӧF
%ӝOӑF.DOPDQiSGөQJFKRKӋWKӕQJFҧPELӃQJӗPDFFHOHURPHWHUYjJ\URVFRSH
GQJWURQJÿӅWjL FyQKӳQJWK{QJVӕÿѭӧF[iFÿӏQKQKѭVDX
- WKӡLJLDQOҩ\PүXGW = െA_01 = B_00
- SKѭѫQJVDLQKLӉXÿROѭӡQJ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ӱOӵFÿҭ\ FiQKTXҥW FjQJOӟQNKӕLOѭӧQJ
ÿRÿѭӧF JLҧPÿLFjQJQKLӅX
ĈӇFyNӃWTXҧÿRFKtQK[iFWKuWUөFFӫDÿӝQJFѫSKҧLWUQJYӟLSKѭѫQJFӫDWUӑQJ
OӵFQJKƭDOjJyFFӫDGk\WUHRYұWQһQJYjkhung Quadrocopter SKҧLEҵQJo.
ӢOҫQÿRÿiSӭQJ OӵFÿҭ\P{KuQKVӱGөQJEӝ(6&HiModel GX-40A,
motor FC2835-10T YjFiQKTXҥWGWS EP-1060Rx3. ATmegaVӱGөQJTimer 16-
ELW WҥR[XQJ3:0WKHRFKӃÿӝPhase and Frequency Correct, gii WUӏ WUrQ WKDQKJKL
ÿLӅXNKLӇQWKD\ÿәLWӯÿӃQÿӇWҥRÿӝUӝQJ[XQJPVÿӃQPVFҩSFKR
ESC. [15]
Ӣ OҫQ ÿR ÿiS ӭQJ OӵF ÿҭ\ P{ KuQK WKD\ YjR (6&Hobbywing Pentium
30$ÿәLsang FiQKTXҥW EPP1045. ATmegaVӱGөQJTimer 16-ELWWҥR[XQJWKHR
FKӃ ÿӝ Fast PWM JLi WUӏ WKDQK JKL ÿLӅX NKLӇQ WKD\ ÿәL Wӯ 2 ÿӃQ 4 ÿӇ WҥR
ÿӝUӝQJ[XQJPVÿӃQPVFҩSFKR(6& [HPWKrPӣSKөOөF%.
Sau NKLNLӇPWUDYjÿiQKJLiNӃWTXҧQKyPFyÿѭӧFEҧQJWKDPFKLӃXJLiWUӏJLӳD
OӵFÿҭ\FӫDÿӝQJFѫYjWtQKLӋXÿLӅXNKLӇQ3:0
74
%ҧQJ4.1 %ҧQJWKDPFKLӃXÿiSӭQJOӵFÿҭ\ (1) FӫDÿӝQJFѫ
Thrust (g) Front ¨I Back ¨E Right ¨U Left ¨O
10 1107 - 1107 - 1107 - 1107 -
20 1123 16 1123 16 1123 16 1123 16
30 1135 12 1134 11 1132 9 1131 8
40 1142 7 1141 7 1140 8 1140 9
50 1155 13 1148 7 1148 8 1145 5
60 1164 9 1158 10 1156 8 1154 9
70 1172 8 1167 9 1168 12 1164 10
80 1181 9 1173 6 1175 7 1172 8
90 1190 9 1184 11 1184 9 1183 11
100 1202 12 1192 8 1192 8 1188 5
110 1205 3 1203 11 1199 7 1194 6
120 1213 8 1205 2 1204 5 1204 10
130 1227 14 1212 7 1206 2 1208 4
140 1233 6 1218 6 1216 10 1214 6
150 1240 7 1230 12 1233 17 1223 9
160 1253 13 1238 8 1241 8 1237 14
170 1261 8 1250 12 1250 9 1245 8
180 1268 7 1258 8 1260 10 1253 8
190 1270 2 1268 10 1270 10 1261 8
200 1276 6 1273 5 1273 3 1269 8
210 1285 9 1283 10 1281 8 1272 3
220 1294 9 1289 6 1286 5 1280 8
230 1302 8 1297 8 1294 8 1290 10
240 1310 8 1307 10 1302 8 1300 10
250 1323 13 1315 8 1307 5 1317 17
260 1335 12 1328 13 1319 12 1323 6
270 1343 8 1337 9 1330 11 1336 13
280 1357 14 1343 6 1340 10 1341 5
290 1362 5 1355 12 1349 9 1347 6
300 1366 4 1361 6 1354 5 1352 5
310 1368 2 1370 9 1360 6 1359 7
320 1376 8 1379 9 1371 11 1367 8
330 1387 11 1386 7 1380 9 1376 9
340 1398 11 1397 11 1390 10 1385 9
350 1403 5 1402 5 1399 9 1396 11
360 1410 7 1410 8 1409 10 1402 6
370 1415 5 1417 7 1417 8 1418 16
380 1423 8 1425 8 1424 7 1426 8
390 1431 8 1434 9 1430 6 1431 5
400 1440 9 1440 6 1434 4 1437 6
410 1448 8 1445 5 1439 5 1442 5
420 1452 4 1452 7 1448 9 1449 7
430 1462 10 1460 8 1459 11 1454 5
440 1464 2 1467 7 1466 7 1460 6
450 1468 4 1470 3 1471 5 1466 6
75
%ҧQJ4.2 %ҧQJWKDPFKLӃXÿiSӭQJOӵFÿҭ\ (2) FӫDÿӝQJFѫ
Thrust (g) Front ¨I Back ¨E Right ¨U Left ¨O
10 2100 - 2214 - 2214 - 2214 -
20 2130 30 2235 21 2235 21 2235 21
30 2160 30 2250 15 2255 20 2255 20
40 2190 30 2270 20 2278 23 2275 20
50 2222 32 2280 10 2285 7 2285 10
60 2255 33 2300 20 2310 25 2300 15
70 2285 30 2320 20 2327 17 2315 15
80 2315 30 2340 20 2343 16 2344 29
90 2345 30 2350 10 2355 12 2355 11
100 2375 30 2370 20 2375 20 2370 15
110 2403 28 2380 10 2390 15 2382 12
120 2430 27 2400 20 2402 12 2396 14
130 2455 25 2406 6 2414 12 2410 14
140 2485 30 2412 6 2430 16 2420 10
150 2510 25 2430 18 2443 13 2435 15
160 2530 20 2445 15 2460 17 2452 17
170 2560 30 2465 20 2477 17 2470 18
180 2590 30 2480 15 2495 18 2480 10
190 2620 30 2495 15 2510 15 2500 20
200 2645 25 2510 15 2525 15 2520 20
210 2670 25 2528 18 2541 16 2535 15
220 2696 26 2539 11 2550 9 2550 15
230 2715 19 2550 11 2568 18 2570 20
240 2740 25 2570 20 2580 12 2584 14
250 2770 30 2590 20 2605 25 2600 16
260 2800 30 2605 15 2625 20 2620 20
270 2825 25 2620 15 2640 15 2640 20
280 2855 30 2635 15 2655 15 2656 16
290 2885 30 2652 17 2673 18 2670 14
300 2915 30 2670 18 2683 10 2677 7
310 2945 30 2675 5 2695 12 2690 13
320 2975 30 2690 15 2710 15 2705 15
330 3010 35 2705 15 2725 15 2720 15
340 3040 30 2730 25 2740 15 2737 17
350 3070 30 2750 20 2757 17 2759 22
360 3100 30 2770 20 2777 20 2772 13
370 3120 20 2790 20 2797 20 2786 14
380 3150 30 2802 12 2810 13 2805 19
390 3180 30 2816 14 2822 12 2820 15
400 3200 20 2832 16 2832 10 2832 12
*KLFK~ ESC Hobbywing Pentium 30A ÿLӅXNKLӇQPRWRUÿһWӣSKtDWUѭӟF
ESC HiModel GX-$ÿLӅXNKLӇQPRWRUFzQOҥL
76
+uQK17 ĈӗWKӏÿiSӭQJOӵFÿҭ\FӫDÿӝQJFѫ
+uQK18 ĈӗWKӏÿiSӭQJOӵFÿҭ\FӫDÿӝQJFѫ
1100
1150
1200
1250
1300
1350
1400
1450
1500
10 30 50 70 90 11
0
13
0
15
0
17
0
19
0
21
0
23
0
25
0
27
0
29
0
31
0
33
0
35
0
37
0
39
0
41
0
43
0
45
0
Back Front Right Left
2100
2300
2500
2700
2900
3100
10 30 50 70 90 11
0
13
0
15
0
17
0
19
0
21
0
23
0
25
0
27
0
29
0
31
0
33
0
35
0
37
0
39
0
Back Front Right Left
77
1K̵Q[pW
- ĈѭӡQJÿiSӭQJOӵFÿҭ\QKuQFKXQJOjWX\ӃQWtQKYӟLWtQKLӋXÿLӅXNKLӇQ
- 7X\QKLrQ, WUrQÿѭӡQJÿiSӭQJ Fy[XҩWKLӋQQKLӅXÿRҥQJm\NK~FQJX\rQQKkQ
OjGREӝÿLӅXWӕF(6&KRҥWÿӝQJFKѭDWӕWKuQKGiQJNKtÿӝQJKӑFFӫDFiQKTXҥWFKѭD
WӕWQrQOӵFÿҭ\WҥRUDNK{QJÿӗQJÿӅX
- ĈiSӭQJ OӵF ÿҭ\ WKX ÿѭӧF Oj WӕW QKҩW YӟL(6&Hobbywing Pentium 30$Yj
FiQKTXҥW(331045.
4.3.2 ĈiSͱQJFͯDP{KuQKYͣLFiFWK{QJV͙ÿL͉XNKL͋Q3,'
+uQK19 6ѫÿӗNKӕLEӝÿLӅXNKLӇQ3,'YӟLFiFNKkXWӍOӋWtFKSKkQÿҥRKjP
Trong ÿLӅXNKLӇQFkQEҵQJP{KuQKPi\ED\QuadURFRSWHU WKѭӡQJVӱGөQJ
ORҥLÿLӅXNKLӇQOj33'Yj3,'YӟLJLiWUӏFҫQKLӋXFKӍQKOjFiF JyFUROOSLWFK\DZ
QKұQWӯFҧPELӃQ,08
'RJLӟLKҥQFӫDÿӅWjLFKӍWұSWUXQJYjRJLҧLWKXұWÿLӅXNKLӇQFkQEҵQJFKѭDFy
FҧPELӃQ FKӍSKѭѫQJÿӇ [iFÿӏQKJyF yaw QrQVӁ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Fy NK̫ QăQJ QăQJ W FkQ E̹QJ Yj GL FKX\͋Q WURQJ QKj,
TP.HCM, 10/2009.
[2] Tommaso Bresciani, Modelling, Identification and Control of a Quadrotor
Helicopter, Lund University, Sweden, 10/2008.
[3] 1JX\ӉQĈuQK+ӧL/r7KDQK/RQJ1JX\ӉQ1JӑF7X\ӅQĈӛ$QK7KѭѫQJ
ĈһQJ $QK 7~ 7KL͇W N͇ FK͇ W̩R P{ KuQK ED\ 4XDGURWRU ĈҥL KӑF &{QJ
QJKLӋS+j1ӝL
[4] 6WHIiQ %DOGXUVVRQ BLDC Motor Modelling and Control ± A
Matlab/Simulink Implementation, Chalmers University, Sweden, 05/2005.
[5] 0DL9ăQ1DP/r1JX\rQ%uQK+RjQJ4XDQJ0LQK7Ut1JKLrQFͱXWKL͇W
N͇ FK͇ W̩R [H W FkQ E̹QJ ÿ͡QJ ĈҥL KӑF 6ѭ SKҥP .ӻ WKXұW 73+&0
07/2009.
[6] 0DL7XҩQĈҥW;HKDLEiQK WFkQE̹QJGLFKX\͋QWUrQÿ͓DKuQKSK̻QJĈҥL
KӑF%iFKNKRD73+&0.
[7] Prentice Hall, LabVIEW for Everyone: Graphical Program Made Easy and
Fun, Third Edition, 27/07/2006.
[8] National Instruments, LabVIEW Basics I & II Course Manual version 6.0,
09/2010.
[9] RC Groups, Quadrocopter and Tricopter Info Mega Link Index, 12/2010.
URL
[10] Starlino, A Guide To using IMU (Accelerometer and Gyroscope Devices) in
Embedded Applications, 12/2010.
URL
[11] SparkFun Electronics, Help with implementing Kalman filter for IMU 5?,
09/2010.
URL
[12] &kXOҥFEӝ0{KuQK.
URL
[13] MikroKopter, 01/2011.
URL
https://www.mikrocontroller.com/
[14] Multicopter Wiki, Multicopter Table, 12/2010.
URL
[15] Machine Intelligence Laboratory, Generating PWM signals using Timers in
the ATmega chip, 08/2010.
URL
87
3+Ө/Ө&A
BҦN VӀ 0Ð+Î1+0È<%$<QUADROCOPTER
88
3+Ө/Ө&%V,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QKJKL$'&65$
+uQKB.2 6ѫÿӗNKӕLÿѫQJLҧQFӫD Eӝ$'&WURQJ$95
%ӝ$'&FyFKӃÿӝKRҥWÿӝQJ
- Free running: FKX\ӇQÿәLOLrQWөF, OjFKӃÿӝVDXNKLNKӣLÿӝQJWKuEӝ$'&WKӵF
KLӋQFKX\ӇQÿәLOLrQWөF
- Single conversion: FKX\ӇQÿәLWӯQJEѭӟF Eӝ$'&VDXNKLKRjQWKjQKFKX\ӇQ
ÿәLVӁQJӯQJFKX\ӇQÿәLWLӃSWKHRÿѭӧFEҳWÿҫXNKL Fy\rXFҫX
&iFWKDQKJKLFӫDEӝFKX\ӇQÿәL$'&
1/ ADC Multiplexer Selection Register ± ADMUX: thanh ghi OӵDFKӑQQJ}Yjo analog.
2/ ADC Control and Status Register A ± ADCSRA: WKDQKJKLWUҥQJWKiLYjÿLӅXNKLӇQ
3/ The ADC Data Register ± ADCL Yj ADCH: WKDQKJKLFKӭDNӃWTXҧ FKX\ӇQÿәL
9ӟLGzQJYLÿLӅXNKLӇQ$95YLӋFWKLӃWOұSFiFWKDQKJKLQj\ÿѭӧFKӛWUӧEҵQJ
FKӭFQăQJ&RGH:L]DUG WURQJSKҫQPӅP OұS WUuQK&RGH9LVLRQ$95JL~SFKRQJѭӡL
VӱGөQJGӉGjQJWKDRWiFYӟLFiFWtQKQăQJÿDGҥQJFӫDYLÿLӅXNKLӇQ
ĈӇWKLӃWOұSKRҥWÿӝQJFKR Eӝ$'&YӟLFKӭFQăQJ KӛWUӧ&RGHWizardAVR Qj\,
WDWKӵFKLӋQFiFEѭӟFVDX
- &KRSKpSEӝ$'&KRҥWÿӝQJ
- &ҩXKuQKFKREӝ$'&FKӑQÿLӋQiS WKDPFKLӃXWҫQVӕxung clock, FKӃÿӝKRҥW
ÿӝQJ (8-bit, 10-bit)FiFQJҳW
91
+uQK%7KLӃWOұS Eӝ $'&GQJ&RGH:L]DUG$95
B.2 USART trong ATmega128
B.2.1 7yPO˱ͫWY͉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ÿӗNKӕLWUrQFySKҫQFKtQK Clock Generation, Transmitter, Receiver.
&KkQ;&. FKӍ ÿѭӧF GQJ WURQJPRGH WUX\ӅQ ÿӗQJ Eӝ &K~QJ WD KRjQ WRjQ Fy WKӇ
NLӇPWUDTXi WUuQKWUX\ӅQQKұQGLӉQUDQKѭWKӃQjRTXDIUDPHHUURUGDWDRYHUUXQYj
parity errors.
&iFWKDQKJKLFӫDNKӕL86$57
1/ Internal Clock Generation ± The USART Baud Rate Generator ± UBRR: thanh ghi
WKLӃWOұSWӕFÿӝWUX\ӅQ.
2/ USART I/O Data Register ± UDRn: WKDQKJKLEӝÿӋPWUX\ӅQQKұQGӳOLӋX
3/ USART Control and Status Register A ± UCSRnA
4/ USART Control and Status Register B ± UCSRnB
5/ USART Control and Status Register C ± UCSRnC
6/ USART Baud Rate Registers ± UBRRnL Yj UBRRnH: WKDQKJKLWӕFÿӝWUX\ӅQ
93
ĈӇWKLӃWOұS Eӝ8$57YӟL&RGH:L]DUG$95 WDWKӵFKLӋQFiFEѭӟFVDX
+uQK%5 7KLӃWOұS UART GQJ&RGH:L]DUG$95
- &KӑQ NKӕL86$57FҫQVӱGөQJ86$57KRһF86$57FKӑQFKӃÿӝWUX\ӅQEҩW
ÿӗQJEӝ$V\QFKURQRXV.
- &ҩXKuQKNKӕL86$57EұWNrQKWUX\ӅQ / QKұQWӕFÿӝWUX\ӅQFiFWK{QJVӕJLDRWLӃS
FiFQJҳW.
B.3 7ҥRWtQKLӋX PWM EҵQJ7LPHUtrong ATmega128
ATmegaFyEӝÿӏQKWKӡLEӝÿӏQKWKӡLYjOjEӝÿӏQKWKӡL-bitEӝÿӏQK
WKӡLYjOjEӝÿӏQKWKӡL-bit.
&iFÿӏQKQJKƭDTXDQWUӑQJWUѭӟFNKLWuPKLӇXWtQQăQJ3:0FӫD FiFEӝÿӏQKWKӡL
(Timer/Counter).
- BOTTOM: OjJLiWUӏWKҩSQKҩWPjbӝTimer/Counter FyWKӇÿҥWÿѭӧF JLiWUӏQj\
OX{QOj
- MAX: OjJLi WUӏOӟQQKҩWPjEӝTimer/Counter FyWKӇÿҥWÿѭӧF9tGөYӟLEӝ
Timer/Counter 8-bit WKuMAX Oj[)) 16-bit WKu MAX Oj[))))
- TOP: OjJLiWUӏkhi Timer/Counter ÿҥWÿӃQQyVӁWKD\ÿәLWUҥQJWKiL JLiWUӏQj\
NK{QJQKҩWWKLӃWOjMAX, JLiWUӏTOP ÿѭӧFWKD\ÿәLEҵQJFiFKÿLӅXNKLӇQFiF thanh
ghi WѭѫQJӭQJ
94
&iFWKDQKJKLWURQJTimer/Counter 1 (Timer/Counter 3 WѭѫQJWӵ):
1/ Timer/Counter 1 Control Register A ± TCCR1A: WKDQKJKLÿLӅXNKLӇQ
Bit 7:2 ± COMnX1:0 (X= A,B,C): Compare Output Mode for channel X: ÿLӅXNKLӇQ
FiFKKRҥWÿӝQJFӫDQJ} UD VR ViQK &RPSDUH2XWSXWFӫD OҫQ OѭӧW FiFFKkQ2&Q$
OCnB, OCnC (n=1,3).
Bit 1:0 ± WGMn1:0: Waveform Generation Mode: kӃW KӧS YӟL FiF ELW:*0Q
WURQJ WKDQKJKL7&&5Q%QKӳQJELW Qj\FKRSKpS OӵD FKӑQFKӃÿӝ WKӵF WKL FӫDEӝ
ÿӏQKWKӡLTX\ÿӏQKFKӃÿӝKRҥWÿӝQJ FӫDTimer/Counter 1.
2/ Timer/Counter 1 Control Register B ±TCCR1B:
Bit 2:0 ± CS12:0: Clock Select: TX\ÿӏQKFKӑQQJXӗQ[XQJFORFNFKR7imer/Counter.
95
3/ Timer/Counter1± TCNT1H Yj TCNT1L: tKDQKJKLEӝÿӏQKWKӡL7&17OjWKDQKJKL
16-bit ÿѭӧF NӃW KӧS Wӯ KDL WKDQK JKL 7&17+ Yj thanh ghi TCNT1L. Thanh ghi
7&17Fy WKӇÿӑFKD\JKL. .K{QJQrQFKӍQKVӱD WKDQKJKL7&17Q (n=1,3) NKLQy
ÿDQJÿӃPÿӇWUiQKEӏKӓQJ&RPSDUH0DWFKJLӳD7&17QYjPӝW WURQJQKӳQJ WKDQK
ghi OCRnX (n=1,3. X=A,B,C)
4/ Output Compare Registers:
Output Compare Register 1 A ± OCR1AH Yj OCR1AL
Output Compare Register 1 B ± OCR1BH Yj OCR1BL
Output Compare Register 1 B ± OCR1CH Yj OCR1CL
/jWKDQKJKLFKӭDJLiWUӏ-ELWOX{QÿѭӧFVRViQKYӟL7&17 PӝWVӵNLӋQ[ҧ\
UDNKLWKDQKJKLQj\EҵQJQKDX WҥRGҥng xung ng} UDӣFiF FKkQ2&Q;
5/ Input Capture Register 1 ± ICR1H Yj ICR1L: thanh ghi Input CDSWXUH,&5QVӁ
FұSQKұWJLi WUӏ FӫDEӝÿӃP7&17QPӛLNKL[ҧ\ UD VӵNLӋQӣFKkQ ,&3Q1JRjL UD
WKDQKJKLQj\FzQÿѭӧFVӱGөQJÿӇÿӏQKQJKƭDJLiWUӏTOP FӫDEӝÿӃP
6/ Timer/Counter Interrupt Mask Register ± TIMSK: WKDQKJKLÿLӅXNKLӇQQJҳW
Ba FKӃÿӝÿLӅXFKӃÿӝUӝQJ[XQJ (PWM) FKtQKWURQJ7imer/Counter 1:
- Fast PWM: 3:0WҫQVӕFDR +RҥWÿӝQJWUrQ1 VѭӡQ[XQJ ÿӃPWӯBOTTOM
OrQTOP VDXÿyUHVHWYӅBOTTOM ÿӃPOҥL
+uQK%6 *LҧQÿӗWKӡLJLDQӣFKӃÿӝ)DVW3:0
&{QJWKӭF[iFÿӏQKWҫQVӕFKRFast PWM 1OjKӋVӕFKLD1, 8, 64, 256, 1024):
- Phase Correct PWM: 3:0YӟLSKDFKtQK[iF (hight resolution). &KӃÿӝQj\
KRҥWÿӝQJGӵDWUrQVѭӡQOrQ[XӕQJ, ÿӃPWӯBOTTOM OrQTOP UӗL Wӯ723 WUӣYӅ
BOTTOM. HRҥWÿӝQJWKHRVѭӡQ[XQJQrQFKӃÿӝQj\NK{QJWҥRUDWҫQ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