{"id":635,"date":"2026-06-11T13:30:50","date_gmt":"2026-06-11T05:30:50","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/animal-tracker-lora-gfsk-ook-livestock-arduino-18dollar-farsi\/"},"modified":"2026-06-11T13:30:50","modified_gmt":"2026-06-11T05:30:50","slug":"animal-tracker-lora-gfsk-ook-livestock-arduino-18dollar-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/animal-tracker-lora-gfsk-ook-livestock-arduino-18dollar-farsi\/","title":{"rendered":"\u0633\u0627\u062e\u062a \u062f\u0633\u062a\u06af\u0627\u0647 \u0631\u062f\u06cc\u0627\u0628 \u062d\u06cc\u0648\u0627\u0646\u0627\u062a \u0628\u0627 LoRa GFSK OOK: \u0631\u062f\u06cc\u0627\u0628\u06cc \u06af\u0644\u0647 \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0632\u06cc\u0631 \u06f1\u06f8 \u062f\u0644\u0627\u0631 (\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\/post110-animal-tracker-lora.jpg' alt='\u0631\u062f\u06cc\u0627\u0628 \u062d\u06cc\u0648\u0627\u0646\u0627\u062a LoRa GFSK SX1278 \u06af\u0644\u0647' 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'>\u0631\u062f\u06cc\u0627\u0628 LoRa GFSK \u0628\u0631\u0627\u06cc \u062d\u06cc\u0648\u0627\u0646\u0627\u062a \u0686\u06cc\u0633\u062a\u061f (\u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p>\u06af\u0645 \u0634\u062f\u0646 \u062f\u0627\u0645 \u062f\u0631 \u0645\u0632\u0627\u0631\u0639 \u0628\u0632\u0631\u06af \u06cc\u06a9 \u0645\u0634\u06a9\u0644 \u0648\u0627\u0642\u0639\u06cc \u0627\u0633\u062a. \u06cc\u06a9 \u0631\u062f\u06cc\u0627\u0628 LoRa \u06a9\u0648\u0686\u06a9 \u0632\u06cc\u0631 <strong>\u06f1\u06f8 \u062f\u0644\u0627\u0631<\/strong> \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0631\u0648\u06cc \u06af\u0631\u062f\u0646 \u06af\u0627\u0648 \u06cc\u0627 \u06af\u0648\u0633\u0641\u0646\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u062f \u06a9\u0647 \u0645\u0648\u0642\u0639\u06cc\u062a GPS \u0631\u0627 \u0647\u0631 \u06f5 \u062f\u0642\u06cc\u0642\u0647 \u0628\u0627 <strong>LoRa 433MHz<\/strong> \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u062f \u06f3-\u06f5km \u0648 \u0645\u0635\u0631\u0641 \u0628\u0633\u06cc\u0627\u0631 \u06a9\u0645 (\u0628\u0627\u062a\u0631\u06cc \u06f3 \u0645\u0627\u0647\u0647 \u0628\u0627 AA) \u0627\u06cc\u0646 \u0631\u0627\u0647\u200c\u062d\u0644 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0634\u0627\u0648\u0631\u0632\u0627\u0646 \u0639\u0645\u0644\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p>\u0645\u062f\u0648\u0644\u0627\u0633\u06cc\u0648\u0646 <strong>GFSK<\/strong> (Gaussian Frequency Shift Keying) \u062f\u0631 SX1278 \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0637\u06cc\u0641\u06cc \u062e\u0648\u0628\u06cc \u062f\u0627\u0631\u062f \u2014 \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u06a9\u0648\u0686\u06a9 GPS \u0631\u0627 \u062f\u0631 \u0686\u0646\u062f \u0645\u06cc\u0644\u06cc\u200c\u062b\u0627\u0646\u06cc\u0647 \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0628\u0642\u06cc\u0647 \u0648\u0642\u062a \u062f\u0631 Deep Sleep \u0645\u06cc\u200c\u0645\u0627\u0646\u062f. \u062d\u062a\u06cc \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0627\u0632 \u0645\u062f <strong>OOK<\/strong> (On-Off Keying) \u0628\u0631\u0627\u06cc \u0645\u0635\u0631\u0641 \u06a9\u0645\u062a\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\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>\u06cc\u06a9 \u0631\u062f\u06cc\u0627\u0628 LoRa GFSK \u0628\u0631\u0627\u06cc \u06af\u0644\u0647 \u2014 \u0646\u0642\u0634\u0647 \u0632\u0646\u062f\u0647 \u0631\u0648\u06cc \u0645\u0648\u0628\u0627\u06cc\u0644.<\/p>\n<ul>\n<li><strong>\u0647\u0632\u06cc\u0646\u0647 \u0647\u0631 \u0631\u062f\u06cc\u0627\u0628:<\/strong> SX1278+Mini GPS+ATmega = \u06f1\u06f8 \u062f\u0644\u0627\u0631<\/li>\n<li><strong>\u0628\u0627\u062a\u0631\u06cc:<\/strong> \u06f3 \u0645\u0627\u0647 \u0628\u0627 \u06f4\u00d7 AA (Deep Sleep)<\/li>\n<li><strong>\u0628\u0631\u062f:<\/strong> \u06f3-\u06f5km \u062f\u0631 \u0645\u0632\u0631\u0639\u0647 \u0628\u0627\u0632<\/li>\n<\/ul>\n<\/div>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#e8f4e8;border:1px solid #4caf50;border-radius:12px;margin-bottom:22px'>\n<rect x='0' y='0' width='860' height='200' rx='12' fill='#f1f8e9'\/>\n<!-- \u0686\u0646\u062f \u062d\u06cc\u0648\u0627\u0646 -->\n<circle cx='200' cy='120' r='18' fill='#ffcc02' stroke='#f57f17' stroke-width='2'\/>\n<text x='200' y='124' text-anchor='middle' font-size='10' font-family='Tahoma'>\u062f\u0627\u0645 \u06f1<\/text>\n<circle cx='340' cy='80' r='18' fill='#ffcc02' stroke='#f57f17' stroke-width='2'\/>\n<text x='340' y='84' text-anchor='middle' font-size='10' font-family='Tahoma'>\u062f\u0627\u0645 \u06f2<\/text>\n<circle cx='480' cy='140' r='18' fill='#ff7043' stroke='#bf360c' stroke-width='2'\/>\n<text x='480' y='144' text-anchor='middle' font-size='10' font-family='Tahoma'>\u062e\u0627\u0631\u062c!<\/text>\n<circle cx='620' cy='100' r='18' fill='#ffcc02' stroke='#f57f17' stroke-width='2'\/>\n<text x='620' y='104' text-anchor='middle' font-size='10' font-family='Tahoma'>\u062f\u0627\u0645 \u06f3<\/text>\n<!-- \u062e\u0637 \u0645\u062d\u062f\u0648\u062f\u0647 -->\n<rect x='100' y='50' width='580' height='120' rx='8' fill='none' stroke='#4caf50' stroke-width='2' stroke-dasharray='8,4'\/>\n<text x='430' y='185' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#1b5e20'>\u0631\u062f\u06cc\u0627\u0628 \u06af\u0644\u0647 \u2014 \u0647\u0634\u062f\u0627\u0631 \u062e\u0631\u0648\u062c \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u0647 (GeofenceAlert)<\/text>\n<\/svg><\/p>\n<h2>\u0633\u06cc\u0645\u200c\u0628\u0646\u062f\u06cc \u0631\u062f\u06cc\u0627\u0628 \u06a9\u0648\u0686\u06a9<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code>\nArduino Pro Mini 3.3V + SX1278 + L80 GPS Mini\n\n\/\/ SX1278 \u0628\u0647 Pro Mini:\nMOSI \u2192 Pin 11, MISO \u2192 Pin 12, SCK \u2192 Pin 13\nCS   \u2192 Pin 10, RST \u2192 Pin 9, DIO0 \u2192 Pin 2\n\n\/\/ GPS L80 \u0628\u0647 Pro Mini (SoftwareSerial):\nGPS_TX \u2192 Pin 4 (RX), GPS_RX \u2192 Pin 5 (TX)\n\n\/\/ \u0628\u0627\u062a\u0631\u06cc:\n4\u00d7 AA \u2192 \u0642\u0628\u0644 \u0627\u0632 Pro Mini \u06cc\u06a9 MCP1700 3.3V LDO\n(\u0627\u0632 6V \u0628\u0627\u062a\u0631\u06cc \u0628\u0647 3.3V \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647)\n\n\/\/ LED \u0627\u0646\u062f\u06cc\u06a9\u0627\u062a\u0648\u0631 (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc):\nLED \u2192 Pin 8 \u0627\u0632 \u0637\u0631\u06cc\u0642 330\u03a9\n<\/code><\/pre>\n<h2>\u06a9\u062f \u0631\u062f\u06cc\u0627\u0628 \u0628\u0627 Deep Sleep<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code class='language-cpp'>\n#include &lt;LoRa.h&gt;\n#include &lt;TinyGPS++.h&gt;\n#include &lt;SoftwareSerial.h&gt;\n#include &lt;avr\/sleep.h&gt;\n#include &lt;avr\/wdt.h&gt;\n\nSoftwareSerial gpsSerial(4,5);\nTinyGPSPlus gps;\nvolatile int wdtCount=0;\n\nISR(WDT_vect) { wdtCount++; }\n\nvoid sleep8s() {\n  wdt_enable(WDTO_8S);\n  WDTCSR |= (1 << WDIE);\n  set_sleep_mode(SLEEP_MODE_PWR_DOWN);\n  sleep_enable(); sleep_mode(); sleep_disable();\n  wdt_disable();\n}\n\nvoid setup() {\n  gpsSerial.begin(9600);\n  LoRa.begin(433.175E6);\n  LoRa.setSpreadingFactor(9);  \/\/ SF9 GFSK-like tradeoff\n  LoRa.setSignalBandwidth(125E3);\n  LoRa.setTxPower(17);\n}\n\nvoid loop() {\n  \/\/ \u0628\u06cc\u062f\u0627\u0631 \u0634\u062f\u0646 \u0648 GPS Fix \u06af\u0631\u0641\u062a\u0646 (\u062d\u062f\u0627\u06a9\u062b\u0631 \u06f6\u06f0 \u062b\u0627\u0646\u06cc\u0647):\n  unsigned long t=millis();\n  while(millis()-t < 60000) {\n    while(gpsSerial.available()) gps.encode(gpsSerial.read());\n    if(gps.location.isUpdated()) break;\n  }\n\n  if(gps.location.isValid()) {\n    char buf[50];\n    snprintf(buf,50,\"%.6f,%.6f,%.1f\",\n      gps.location.lat(), gps.location.lng(),\n      gps.altitude.meters());\n    LoRa.beginPacket();\n    LoRa.print(\"ID:01,\");  \/\/ \u0634\u0646\u0627\u0633\u0647 \u062d\u06cc\u0648\u0627\u0646\n    LoRa.print(buf);\n    LoRa.endPacket();\n  }\n\n  \/\/ \u062e\u0648\u0627\u0628 \u06f5 \u062f\u0642\u06cc\u0642\u0647 (38 \u00d7 8 \u062b\u0627\u0646\u06cc\u0647 \u2248 \u06f5 \u062f\u0642\u06cc\u0642\u0647):\n  LoRa.sleep();\n  for(int i=0;i<38;i++) sleep8s();\n  LoRa.begin(433.175E6);\n}\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u0631\u062f\u06cc\u0627\u0628 \u06af\u0644\u0647<\/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'>\u0628\u0631\u0631\u0633\u06cc<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0646\u062a\u06cc\u062c\u0647<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>\u0645\u0635\u0631\u0641 Sleep \u0632\u06cc\u0631 \u06f5\u03bcA\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u0628\u0627 \u0622\u0645\u067e\u0631\u0645\u062a\u0631 \u062f\u0642\u06cc\u0642<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>GPS Fix \u062f\u0631 \u0645\u0632\u0631\u0639\u0647 \u062f\u0631 \u06f6\u06f0s\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>\u067e\u06a9\u062a \u062f\u0631 \u06f3km \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc\u200c\u0634\u0648\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>Geofence Alert \u062f\u0631 \u062e\u0631\u0648\u062c \u0627\u0632 \u0645\u0632\u0631\u0639\u0647\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u062f\u0631 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 GCS<\/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'>Pro Mini<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>GPS+SX1278<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>LoRa 433 GFSK<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>SF9 \u06f3km<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>Gateway GCS<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Raspberry Pi<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>\u0646\u0642\u0634\u0647 \u06af\u0644\u0647<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0647\u0634\u062f\u0627\u0631 \u062e\u0631\u0648\u062c<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>\u0631\u062f\u06cc\u0627\u0628 \u06af\u0644\u0647 \u2014 LoRa GFSK\u060c \u06f1\u06f8 \u062f\u0644\u0627\u0631\u060c \u06f3 \u0645\u0627\u0647 \u0628\u0627\u062a\u0631\u06cc\u060c \u06f3km<\/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\/ZUMT-xPnj1w' title='LoRa GPS Tracker Livestock Monitoring DIY' 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\/N5sAYHFTMzw' title='Arduino Deep Sleep GPS LoRa Asset Tracker' 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\/%D8%B1%D8%AF%DB%8C%D8%A7%D8%A8_%D8%AF%D8%A7%D9%85_%D9%84%D9%88%D8%B1%D8%A7_%D8%A2%D8%B1%D8%AF%D9%88%DB%8C%D9%86%D9%88' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: \u0631\u062f\u06cc\u0627\u0628 \u062f\u0627\u0645 \u0644\u0648\u0631\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0641\u0627\u0631\u0633\u06cc<\/a><\/li>\n<li><a href='https:\/\/www.thethingsnetwork.org\/labs\/story\/livestock-tracking-with-ttn' target='_blank'>TTN Labs: Livestock Tracking with LoRa<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0633\u0627\u062e\u062a \u0631\u062f\u06cc\u0627\u0628 LoRa GFSK \u0628\u0631\u0627\u06cc \u062d\u06cc\u0648\u0627\u0646\u0627\u062a \u0627\u0647\u0644\u06cc (\u06af\u0648\u0633\u0641\u0646\u062f\u060c \u06af\u0627\u0648) \u0628\u0627 SX1278 433MHz\u060c \u0632\u06cc\u0631 \u06f1\u06f8 \u062f\u0644\u0627\u0631\u061b \u0627\u0631\u0633\u0627\u0644 GPS+\u062d\u0631\u0627\u0631\u062a\u060c \u0646\u0642\u0634\u0647 \u06af\u0644\u0647 \u0631\u0648\u06cc \u0645\u0648\u0628\u0627\u06cc\u0644\u060c \u0628\u0627\u062a\u0631\u06cc \u06f3 \u0645\u0627\u0647\u0647.<\/p>\n","protected":false},"author":1,"featured_media":634,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[19,16],"tags":[124,292,44,318,234,21,264,421],"class_list":["post-635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-2","category-ugv","tag-433mhz","tag-gfsk","tag-lora","tag-ook","tag-sx1278","tag-arduino","tag-264","tag-421"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/635","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=635"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/635\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/635\/revisions\/636"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/634"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}