{"id":1163,"date":"2026-06-21T15:15:50","date_gmt":"2026-06-21T07:15:50","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/gps-compass-module-wiring-uart-i2c-farsi\/"},"modified":"2026-06-21T15:15:51","modified_gmt":"2026-06-21T07:15:51","slug":"gps-compass-module-wiring-uart-i2c-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/gps-compass-module-wiring-uart-i2c-farsi\/","title":{"rendered":"\u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc \u0645\u0627\u0698\u0648\u0644 GPS \u0648 \u0642\u0637\u0628\u200c\u0646\u0645\u0627 \u2014 UART \u0648 I2C (\u0641\u0627\u0631\u0633\u06cc)"},"content":{"rendered":"<div class='hero-image-container' style='margin-bottom:28px;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,0.08)'>\n<img src='https:\/\/projectleon.net\/make\/wp-content\/uploads\/2026\/06\/post267-gps-wiring.jpg' alt='\u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc GPS Compass' style='width:100%;height:auto;display:block' loading='eager'\/>\n<\/div>\n<div class='beginner-intro' style='background:#f0f7ff;border-right:4px solid #2e5fb6;padding:16px 20px;border-radius:10px;margin-bottom:22px'>\n<h2 style='margin-top:0'>GPS \u0648 Compass \u062f\u0648 \u0628\u0627\u0633 \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u062f\u0627\u0631\u0646\u062f<\/h2>\n<p>\u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u062a\u0631\u06a9\u06cc\u0628\u06cc GPS+Compass \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0648 \u0628\u0627\u0633 \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u062f\u0627\u0631\u0646\u062f. <strong>GPS<\/strong> \u0631\u0648\u06cc <strong>UART<\/strong> (\u0633\u0631\u06cc\u0627\u0644) \u0648 <strong>\u0642\u0637\u0628\u200c\u0646\u0645\u0627<\/strong> \u0631\u0648\u06cc <strong>I2C<\/strong> \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u06cc\u0639\u0646\u06cc \u0628\u0627\u06cc\u062f \u0647\u0631 \u062f\u0648 \u0628\u062e\u0634 \u0631\u0627 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0647\u0631 \u062f\u0648 \u062f\u0633\u062a\u06af\u0627\u0647 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<p>\u0645\u0634\u06a9\u0644 \u0631\u0627\u06cc\u062c: GPS \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f \u0627\u0645\u0627 \u0642\u0637\u0628\u200c\u0646\u0645\u0627 \u0646\u0647\u060c \u06cc\u0627 \u0628\u0627\u0644\u0639\u06a9\u0633. \u0627\u06cc\u0646 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0627\u062a\u0635\u0627\u0644 \u0646\u0627\u062f\u0631\u0633\u062a I2C \u06cc\u0627 \u0641\u0631\u0627\u0645\u0648\u0634 \u06a9\u0631\u062f\u0646 \u062a\u063a\u0630\u06cc\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u067e\u0633\u062a \u06cc\u06a9 \u0646\u0642\u0634\u0647 \u0648\u0627\u0636\u062d \u0627\u0632 \u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<\/div>\n<div style='background:#fff8e1;border:1px solid #ffd54f;border-radius:10px;padding:16px;margin-bottom:22px'>\n<h3 style='margin-top:0'>&#x1f6e0;&#xfe0f; \u06a9\u0627\u0631\u062a \u067e\u0631\u0648\u0698\u0647<\/h3>\n<table style='width:100%;border-collapse:collapse'>\n<tr>\n<td style='padding:6px;font-weight:bold;width:40%'>GPS<\/td>\n<td style='padding:6px'>UART (TX\/RX)<\/td>\n<\/tr>\n<tr style='background:#fffde7'>\n<td style='padding:6px;font-weight:bold'>Compass<\/td>\n<td style='padding:6px'>I2C (SDA\/SCL)<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h2>\u0646\u0642\u0634\u0647 \u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:12px;border-radius:8px;font-size:12px;margin-bottom:14px'><code>GPS:\n  \u0645\u0627\u0698\u0648\u0644 GPS TX \u2192 FC RX (UART \u0627\u0646\u062a\u062e\u0627\u0628\u06cc)\n  \u0645\u0627\u0698\u0648\u0644 GPS RX \u2192 FC TX (UART \u0627\u0646\u062a\u062e\u0627\u0628\u06cc)\n  \u0645\u0627\u0698\u0648\u0644 5V\/GND \u2192 FC 5V\/GND\n\nCompass (I2C):\n  \u0645\u0627\u0698\u0648\u0644 SDA \u2192 FC SDA\n  \u0645\u0627\u0698\u0648\u0644 SCL \u2192 FC SCL\n  \u0645\u0627\u0698\u0648\u0644 5V\/GND \u2192 FC 5V\/GND<\/code><\/pre>\n<h2>SVG: \u0627\u062a\u0635\u0627\u0644 GPS+Compass<\/h2>\n<p><svg viewBox='0 0 600 220' style='width:100%;max-width:600px;background:#f5f8ff;border-radius:10px;margin-bottom:18px'>\n<rect x='30' y='40' width='150' height='140' rx='6' fill='#2e5fb6'\/><text x='105' y='70' fill='#fff' font-size='13' text-anchor='middle'>Flight Controller<\/text>\n<text x='105' y='110' fill='#fff' font-size='10' text-anchor='middle'>UART RX\/TX<\/text>\n<text x='105' y='140' fill='#fff' font-size='10' text-anchor='middle'>I2C SDA\/SCL<\/text>\n<text x='105' y='170' fill='#fff' font-size='10' text-anchor='middle'>5V \/ GND<\/text>\n<rect x='420' y='40' width='150' height='140' rx='6' fill='#43a047'\/><text x='495' y='70' fill='#fff' font-size='13' text-anchor='middle'>GPS+Compass<\/text>\n<text x='495' y='110' fill='#fff' font-size='10' text-anchor='middle'>GPS TX\/RX<\/text>\n<text x='495' y='140' fill='#fff' font-size='10' text-anchor='middle'>Mag SDA\/SCL<\/text>\n<text x='495' y='170' fill='#fff' font-size='10' text-anchor='middle'>5V \/ GND<\/text>\n<line x1='180' y1='90' x2='420' y2='90' stroke='#c62828' stroke-width='2'\/><text x='300' y='82' fill='#c62828' font-size='10' text-anchor='middle'>UART TX&#x2194;RX<\/text>\n<line x1='180' y1='130' x2='420' y2='130' stroke='#1565c0' stroke-width='2'\/><text x='300' y='148' fill='#1565c0' font-size='10' text-anchor='middle'>I2C SDA&#x2194;SDA, SCL&#x2194;SCL<\/text>\n<\/svg><\/p>\n<h2>\u0639\u06cc\u0628\u200c\u06cc\u0627\u0628\u06cc<\/h2>\n<table style='width:100%;border-collapse:collapse;margin-bottom:18px'>\n<tr style='background:#2e5fb6;color:#fff'>\n<th style='padding:8px'>\u0645\u0634\u06a9\u0644<\/th>\n<th style='padding:8px'>\u0631\u0627\u0647\u200c\u062d\u0644<\/th>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>GPS \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0646\u0645\u06cc\u200c\u0634\u0648\u062f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>TX&#x2194;RX \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f\u060c \u067e\u0648\u0631\u062a \u0631\u0627 \u062f\u0631 Configurator \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr style='background:#f5f8ff'>\n<td style='padding:8px;border:1px solid #ddd'>Compass \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0646\u0645\u06cc\u200c\u0634\u0648\u062f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>SDA\/SCL \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0622\u062f\u0631\u0633 I2C \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>\u0646\u0627\u0648\u0628\u0631\u06cc \u0646\u0627\u0645\u0631\u062a\u0628<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06a9\u0627\u0644\u06cc\u0628\u0631\u0627\u0633\u06cc\u0648\u0646 \u0642\u0637\u0628\u200c\u0646\u0645\u0627 \u0648 \u062f\u0648\u0631 \u0628\u0648\u062f\u0646 \u0627\u0632 \u062a\u062f\u0627\u062e\u0644<\/td>\n<\/tr>\n<\/table>\n<div style='background:#ffebee;border-right:4px solid #c62828;padding:14px 18px;border-radius:10px;margin-bottom:20px'>\n<strong>\u0646\u06a9\u062a\u0647: GND \u0645\u0634\u062a\u0631\u06a9<\/strong> \u2014 \u062d\u062a\u06cc \u0627\u06af\u0631 GPS \u0648 Compass \u0627\u0632 \u06cc\u06a9 \u0645\u0627\u0698\u0648\u0644 \u0648\u0627\u062d\u062f \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f GND \u0645\u0634\u062a\u0631\u06a9 \u0628\u0647 FC \u0645\u062a\u0635\u0644 \u0627\u0633\u062a. \u06af\u0627\u0647\u06cc \u06cc\u06a9 \u06a9\u0627\u0628\u0644 \u062a\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc UART \u0648 \u06a9\u0627\u0628\u0644 \u062f\u06cc\u06af\u0631\u06cc \u0628\u0631\u0627\u06cc I2C \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f.\n<\/div>\n<div style='display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin:20px 0'>\n<iframe width='100%' height='280' src='https:\/\/www.youtube.com\/embed\/qULIJpqf9Sw' title='GPS Compass Wiring Guide' frameborder='0' allowfullscreen><\/iframe><br \/>\n<iframe width='100%' height='280' src='https:\/\/www.youtube.com\/embed\/Lc1d2tHEKBE' title='I2C UART GPS Connection' frameborder='0' allowfullscreen><\/iframe>\n<\/div>\n<h2>\u0645\u0646\u0627\u0628\u0639 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0628\u06cc\u0634\u062a\u0631<\/h2>\n<ul>\n<li><a href='https:\/\/ardupilot.org\/copter\/docs\/common-installing-3dr-ublox-gps-compass-module.html' target='_blank'>\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0631\u0633\u0645\u06cc \u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc GPS+Compass<\/a><\/li>\n<li><a href='https:\/\/www.aparat.com\/result\/%D8%B3%DB%8C%D9%85+%DA%A9%D8%B4%DB%8C+GPS+%D9%82%D8%B7%D8%A8+%D9%86%D9%85%D8%A7' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: \u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc GPS \u0642\u0637\u0628\u200c\u0646\u0645\u0627<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0633\u06cc\u0645\u200c\u06a9\u0634\u06cc \u0645\u0627\u0698\u0648\u0644 GPS+Compass: \u0627\u062a\u0635\u0627\u0644 GPS \u0631\u0648\u06cc UART \u0628\u0627 TX&#x2194;RX\u060c \u0627\u062a\u0635\u0627\u0644 \u0642\u0637\u0628\u200c\u0646\u0645\u0627 \u0631\u0648\u06cc I2C (SDA\/SCL)\u060c \u062a\u063a\u0630\u06cc\u0647 \u06f5V\u060c \u0648 \u0631\u0641\u0639 \u0645\u0634\u06a9\u0644 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0646\u0634\u062f\u0646 GPS \u06cc\u0627 Compass.<\/p>\n","protected":false},"author":1,"featured_media":1162,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[17,20],"tags":[183,47,838,908,907,309,50,837,32],"class_list":["post-1163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uav","category-projects-2","tag-compass","tag-gps","tag-i2c","tag-scl","tag-sda","tag-uart","tag-50","tag-837","tag-beginner"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/1163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/comments?post=1163"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/1163\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/1163\/revisions\/1164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/1162"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=1163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=1163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=1163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}