{"id":560,"date":"2026-06-11T13:04:44","date_gmt":"2026-06-11T05:04:44","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/hc12-subghz-uart-uav-telemetry-simple-farsi\/"},"modified":"2026-06-11T13:04:45","modified_gmt":"2026-06-11T05:04:45","slug":"hc12-subghz-uart-uav-telemetry-simple-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/hc12-subghz-uart-uav-telemetry-simple-farsi\/","title":{"rendered":"\u0645\u0627\u0698\u0648\u0644 HC-12 Sub-GHz \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 UAV: \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u0633\u0627\u062f\u0647 UART \u0628\u062f\u0648\u0646 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 (\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\/post85-hc12-uav.jpg' alt='HC-12 Sub-GHz UART UAV \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u0627\u0631\u0632\u0627\u0646' 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'>HC-12 \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0631\u0627\u06cc UAV \u0639\u0627\u0644\u06cc \u0627\u0633\u062a\u061f (\u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p>\u0645\u0627\u0698\u0648\u0644 <strong>HC-12<\/strong> \u06cc\u06a9 \u062a\u0631\u0627\u0646\u0633\u06cc\u0648\u0631 Sub-GHz \u0628\u0627 \u0642\u06cc\u0645\u062a \u0632\u06cc\u0631 \u06f8 \u062f\u0644\u0627\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0631\u0648\u06cc \u0686\u06cc\u067e Si446x \u0627\u0632 Silicon Labs \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647. \u0633\u0627\u062f\u0647\u200c\u062a\u0631\u06cc\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0622\u0646: \u0628\u0647 TX\/RX \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u0647\u0631 \u0686\u06cc\u0632\u06cc \u06a9\u0647 \u0631\u0648\u06cc Serial \u0645\u06cc\u200c\u0646\u0648\u06cc\u0633\u06cc\u062f\u060c \u0627\u0632 \u0637\u0631\u0641 \u062f\u06cc\u06af\u0631 \u062e\u0648\u0627\u0646\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u2014 \u0645\u062b\u0644 \u06cc\u06a9 \u06a9\u0627\u0628\u0644 \u0633\u0631\u06cc\u0627\u0644 \u0628\u06cc\u200c\u0633\u06cc\u0645!<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u06f1\u06f0\u06f0 \u06a9\u0627\u0646\u0627\u0644 \u0628\u06cc\u0646 \u06f4\u06f3\u06f3.\u06f4MHz \u062a\u0627 \u06f4\u06f7\u06f3.\u06f0MHz \u062f\u0627\u0631\u062f. \u062a\u0648\u0627\u0646 \u062e\u0631\u0648\u062c\u06cc \u0642\u0627\u0628\u0644 \u062a\u0646\u0638\u06cc\u0645 (\u06f1 \u062a\u0627 \u06f1\u06f0\u06f0mW) \u0648 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0627\u0632 Baud Rate 1200 \u062a\u0627 115200 bps. \u062f\u0631 \u062d\u0627\u0644\u062a FU3 (Sleep \u0628\u06cc\u0646 \u067e\u06a9\u062a\u200c\u0647\u0627) \u0628\u0631\u062f \u062a\u0627 \u06f1.\u06f8km \u062f\u0627\u0631\u062f! \u0647\u0645\u06cc\u0646 \u0645\u0634\u062e\u0635\u0627\u062a \u0622\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u0627\u0631\u0632\u0627\u0646 UAV\/UGV \u0627\u06cc\u062f\u0647\u200c\u0622\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<\/div>\n<div style='border:1px solid #d8d8d8;padding:18px 20px;border-radius:12px;background:#fafafa;margin-bottom:22px'>\n<h2 style='margin-top:0'>\u0645\u062d\u0635\u0648\u0644\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u0633\u0627\u0632\u06cc\u062f<\/h2>\n<p>\u0644\u06cc\u0646\u06a9 \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u062f\u0648\u0637\u0631\u0641\u0647 GPS \u0628\u0631\u0627\u06cc UAV \u2014 \u0627\u0631\u0633\u0627\u0644 \u0645\u0648\u0642\u0639\u06cc\u062a \u0648 \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u0633\u062a\u0648\u0631 \u0627\u0632 GCS.<\/p>\n<ul>\n<li><strong>\u0647\u0632\u06cc\u0646\u0647:<\/strong> \u06f2 \u00d7 \u06f8 \u062f\u0644\u0627\u0631 = \u06f1\u06f6 \u062f\u0644\u0627\u0631<\/li>\n<li><strong>\u0628\u0631\u062f:<\/strong> \u062a\u0627 \u06f1.\u06f8km (\u062d\u0627\u0644\u062a FU3)<\/li>\n<li><strong>\u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc:<\/strong> \u0641\u0642\u0637 \u06f3 \u067e\u06cc\u0646 \u2014 TX\u060c RX\u060c SET<\/li>\n<\/ul>\n<\/div>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#fff;border:1px solid #e0e0e0;border-radius:12px;margin-bottom:22px'>\n<rect x='30' y='60' width='230' height='100' rx='14' fill='#b7e4a0' stroke='#3a7a1e' stroke-width='2'\/>\n<text x='145' y='100' text-anchor='middle' font-size='13' font-family='Tahoma'>UAV (\u067e\u0647\u067e\u0627\u062f)<\/text>\n<text x='145' y='118' text-anchor='middle' font-size='11' font-family='Tahoma'>GPS + Arduino + HC-12<\/text>\n<text x='145' y='134' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0627\u0631\u0633\u0627\u0644: lat,lon,alt,bat<\/text>\n<line x1='260' y1='95' x2='380' y2='95' stroke='#e53935' stroke-width='2' stroke-dasharray='6,3'\/>\n<line x1='380' y1='125' x2='260' y2='125' stroke='#4caf50' stroke-width='2' stroke-dasharray='6,3'\/>\n<text x='320' y='88' text-anchor='middle' font-size='11' font-family='Tahoma' fill='#e53935'>GPS \u2190<\/text>\n<text x='320' y='140' text-anchor='middle' font-size='11' font-family='Tahoma' fill='#4caf50'>\u2192 CMD<\/text>\n<rect x='380' y='60' width='230' height='100' rx='14' fill='#e8f4ff' stroke='#3a60c0' stroke-width='2'\/>\n<text x='495' y='100' text-anchor='middle' font-size='13' font-family='Tahoma'>GCS (\u0644\u067e\u200c\u062a\u0627\u067e)<\/text>\n<text x='495' y='118' text-anchor='middle' font-size='11' font-family='Tahoma'>Arduino\/USB + HC-12<\/text>\n<text x='495' y='134' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0646\u0642\u0634\u0647 + \u0641\u0631\u0645\u0627\u0646<\/text>\n<text x='430' y='185' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#888'>HC-12 \u2014 UART \u0634\u0641\u0627\u0641 \u2192 GPS \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u06f1.\u06f8km<\/text>\n<\/svg><\/p>\n<h2>\u062a\u0646\u0638\u06cc\u0645 HC-12 \u0628\u0627 AT Commands<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code>\n\/\/ \u062a\u0646\u0638\u06cc\u0645 HC-12 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u06cc\u0646 SET:\n\/\/ SET \u2192 LOW (GND) = Config Mode\n\/\/ SET \u2192 HIGH (3.3V\/float) = Normal Mode\n\n\/\/ \u0646\u0645\u0648\u0646\u0647 \u06a9\u062f \u062a\u0646\u0638\u06cc\u0645:\nvoid hc12Config() {\n  digitalWrite(SET_PIN, LOW);  \/\/ \u0648\u0631\u0648\u062f \u0628\u0647 Config Mode\n  delay(100);\n  Serial.println(\"AT\");             \/\/ \u2192 OK\n  Serial.println(\"AT+B9600\");       \/\/ Baud Rate = 9600\n  Serial.println(\"AT+C001\");        \/\/ Channel 1 = 433.4MHz\n  Serial.println(\"AT+P8\");          \/\/ \u0642\u062f\u0631\u062a = 100mW\n  Serial.println(\"AT+FU3\");         \/\/ \u062d\u0627\u0644\u062a FU3 = \u0628\u06cc\u0634\u062a\u0631\u06cc\u0646 \u0628\u0631\u062f\n  delay(200);\n  digitalWrite(SET_PIN, HIGH);  \/\/ \u0628\u0631\u06af\u0634\u062a \u0628\u0647 Normal\n}\n\n\/\/ Channel\u200c\u0647\u0627:\n\/\/ AT+C001 = 433.4MHz\n\/\/ AT+C040 = 437.4MHz\n\/\/ AT+C100 = 473.0MHz\n\n\/\/ Baud Rates: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200\n<\/code><\/pre>\n<h2>\u06a9\u062f \u0627\u0631\u0633\u0627\u0644 GPS \u0627\u0632 UAV<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:16px;border-radius:10px;overflow-x:auto;font-size:13px'><code class='language-cpp'>\n#include &lt;TinyGPS++.h&gt;\n#include &lt;SoftwareSerial.h&gt;\n\nSoftwareSerial gpsSerial(4,5);   \/\/ GPS RX\/TX\nSoftwareSerial hc12(2,3);        \/\/ HC-12 RX\/TX\nTinyGPSPlus gps;\n\nvoid setup() {\n  gpsSerial.begin(9600);\n  hc12.begin(9600);\n}\n\nvoid loop() {\n  while(gpsSerial.available()) gps.encode(gpsSerial.read());\n\n  if(gps.location.isValid() && gps.location.age() < 1000) {\n    String pkt = \"G,\" +\n      String(gps.location.lat(),6) + \",\" +\n      String(gps.location.lng(),6) + \",\" +\n      String(gps.altitude.meters(),1) + \",\" +\n      String(gps.satellites.value()) + \",\" +\n      String(analogRead(A0)*4.7\/1023.0*3.0, 1);  \/\/ \u0648\u0644\u062a\u0627\u0698\n\n    hc12.println(pkt);\n  }\n  delay(2000);  \/\/ \u0647\u0631 \u06f2 \u062b\u0627\u0646\u06cc\u0647\n}\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u0648 \u0645\u0642\u0627\u06cc\u0633\u0647 \u062d\u0627\u0644\u062a\u200c\u0647\u0627\u06cc FU<\/h2>\n<table style='width:100%;border-collapse:collapse;margin-bottom:18px'>\n<thead>\n<tr style='background:#e8f0fe'>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u062d\u0627\u0644\u062a<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u062a\u0623\u062e\u06cc\u0631<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0628\u0631\u062f<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0645\u0646\u0627\u0633\u0628<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>FU1 (Power Save)<\/td>\n<td style='padding:8px;border:1px solid #ddd'>~\u06f1\u06f5ms<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u0645\u062a\u0648\u0633\u0637<\/td>\n<td style='padding:8px;border:1px solid #ddd'>IoT \u06a9\u0645\u200c\u0628\u0631\u0642<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>FU2 (Balanced)<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06f3ms<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u0645\u062a\u0648\u0633\u0637<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06a9\u0646\u062a\u0631\u0644 \u0633\u0631\u06cc\u0639<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>FU3 (Long Range)<\/td>\n<td style='padding:8px;border:1px solid #ddd'>~\u06f1\u06f5ms<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06f1.\u06f8km \u2713<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc UAV<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>FU4 (High Speed)<\/td>\n<td style='padding:8px;border:1px solid #ddd'>~\u06f1ms<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06a9\u0645<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u062f\u0627\u062f\u0647 \u0632\u06cc\u0627\u062f \u06a9\u0648\u062a\u0627\u0647<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#fff;border:1px solid #e0e0e0;border-radius:12px;margin-bottom:22px'>\n<rect x='40' y='75' width='155' height='60' rx='12' fill='#b7e4a0' stroke='#3a7a1e' stroke-width='2'\/>\n<rect x='245' y='75' width='155' height='60' rx='12' fill='#f7d794' stroke='#a06d00' stroke-width='2'\/>\n<rect x='450' y='75' width='155' height='60' rx='12' fill='#8bd3dd' stroke='#1f6f78' stroke-width='2'\/>\n<rect x='655' y='75' width='165' height='60' rx='12' fill='#e8f4ff' stroke='#3a60c0' stroke-width='2'\/>\n<line x1='195' y1='105' x2='245' y2='105' stroke='#555' stroke-width='2.5'\/>\n<line x1='400' y1='105' x2='450' y2='105' stroke='#555' stroke-width='2.5' stroke-dasharray='6,3'\/>\n<line x1='605' y1='105' x2='655' y2='105' stroke='#555' stroke-width='2.5'\/>\n<text x='117' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>GPS NEO-M8N<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>UAV Arduino<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>HC-12 FU3<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>433MHz 1.8km<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>HC-12 GCS<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Serial \u067e\u0627\u0631\u0633<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>\u0646\u0642\u0634\u0647 Google<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0645\u0648\u0642\u0639\u06cc\u062a UAV<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>HC-12 \u2014 UART \u0634\u0641\u0627\u0641\u060c AT \u062a\u0646\u0638\u06cc\u0645\u060c \u06f1.\u06f8km \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc UAV<\/text>\n<\/svg><\/p>\n<h2>\u0648\u06cc\u062f\u0626\u0648\u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc<\/h2>\n<div style='display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin:20px 0'>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/bBBTwEyY7dI' title='HC-12 433MHz Arduino Wireless Tutorial' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe><br \/>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/Mx-D0w5QRZY' title='HC-12 Long Range GPS Telemetry UAV' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe>\n<\/div>\n<h2>\u0645\u0646\u0627\u0628\u0639 \u0628\u06cc\u0634\u062a\u0631<\/h2>\n<ul>\n<li><a href='https:\/\/www.aparat.com\/result\/HC-12_433MHz_%D8%AA%D9%84%D9%87%E2%80%8C%D9%85%D8%AA%D8%B1%DB%8C' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: HC-12 433MHz \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc \u0641\u0627\u0631\u0633\u06cc<\/a><\/li>\n<li><a href='https:\/\/www.mantech.co.za\/datasheets\/products\/hc-12.pdf' target='_blank'>HC-12 Datasheet: AT Commands Reference<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0639\u0645\u0644\u06cc \u0645\u0627\u0698\u0648\u0644 HC-12 (433MHz Sub-GHz\u060c \u0632\u06cc\u0631 \u06f8 \u062f\u0644\u0627\u0631) \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0627\u0632 \u0637\u0631\u06cc\u0642 UART\u061b \u06a9\u0646\u062a\u0631\u0644 UAV\/UGV\u060c \u0627\u0631\u0633\u0627\u0644 \u062a\u0644\u0647\u200c\u0645\u062a\u0631\u06cc GPS\u060c \u062a\u0646\u0638\u06cc\u0645 Channel \u0648 Power \u0627\u0632 \u0637\u0631\u06cc\u0642 AT commands.<\/p>\n","protected":false},"author":1,"featured_media":559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[16,17],"tags":[124,347,346,57,309,49,294,293],"class_list":["post-560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ugv","category-uav","tag-433mhz","tag-at-command","tag-hc-12","tag-sub-ghz","tag-uart","tag-uav","tag-294","tag-293"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/560","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=560"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/560\/revisions\/561"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}