{"id":551,"date":"2026-06-11T13:03:55","date_gmt":"2026-06-11T05:03:55","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/nrf24l01-multi-channel-rc-controller-arduino-farsi\/"},"modified":"2026-06-11T13:03:55","modified_gmt":"2026-06-11T05:03:55","slug":"nrf24l01-multi-channel-rc-controller-arduino-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/nrf24l01-multi-channel-rc-controller-arduino-farsi\/","title":{"rendered":"\u0633\u0627\u062e\u062a \u06a9\u0646\u062a\u0631\u0644\u0631 RC \u0686\u0646\u062f \u06a9\u0627\u0646\u0627\u0644 \u0628\u0627 nRF24L01+ \u0648 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648: \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0627\u0631\u0632\u0627\u0646 FlySky (\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\/post82-nrf24-rc.jpg' alt='nRF24L01 RC Controller 8 Channel Arduino' 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'>nRF24L01 \u0648 RC Controller \u0686\u06cc\u0633\u062a\u061f (\u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p>\u0645\u0627\u0698\u0648\u0644 <strong>nRF24L01+<\/strong> \u06cc\u06a9 \u062a\u0631\u0627\u0646\u0633\u06cc\u0648\u0631 \u06f2.\u06f4GHz \u0628\u0627 \u0642\u06cc\u0645\u062a \u0632\u06cc\u0631 \u06f3 \u062f\u0644\u0627\u0631 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0686\u06cc\u067e \u0627\u0632 Nordic Semiconductor \u0627\u0632 SPI \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u06f1\u06f2\u06f5 \u06a9\u0627\u0646\u0627\u0644 \u0645\u062e\u062a\u0644\u0641 \u0628\u06cc\u0646 \u06f2.\u06f4 \u062a\u0627 \u06f2.\u06f5GHz \u06a9\u0627\u0631 \u06a9\u0646\u062f \u2014 \u0627\u06cc\u0646 \u0628\u0647 \u0645\u0639\u0646\u0627\u06cc \u0645\u0642\u0627\u0648\u0645\u062a \u062e\u0648\u0628 \u062f\u0631 \u0628\u0631\u0627\u0628\u0631 \u062a\u062f\u0627\u062e\u0644 WiFi \u0627\u0633\u062a.<\/p>\n<p>\u06cc\u06a9 <strong>RC Controller<\/strong> (\u06a9\u0646\u062a\u0631\u0644\u0631 \u0631\u0627\u062f\u06cc\u0648\u06cc\u06cc) \u0645\u0639\u0645\u0648\u0644\u06cc \u0645\u062b\u0644 FlySky FS-i6 \u062d\u062f\u0648\u062f \u06f1\u06f5\u06f0-\u06f3\u06f0\u06f0 \u0647\u0632\u0627\u0631 \u062a\u0648\u0645\u0627\u0646 \u0642\u06cc\u0645\u062a \u062f\u0627\u0631\u062f. \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 + nRF24L01 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9 \u06a9\u0646\u062a\u0631\u0644\u0631 \u06f8 \u06a9\u0627\u0646\u0627\u0644 \u0628\u0627 <strong>CPPM<\/strong> (Combined PPM) \u0633\u0627\u062e\u062a \u06a9\u0647 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0628\u0647 FC \u0648\u0635\u0644 \u0645\u06cc\u200c\u0634\u0648\u062f \u2014 \u0628\u0627 \u0642\u06cc\u0645\u062a \u0632\u06cc\u0631 \u06f5\u06f0 \u0647\u0632\u0627\u0631 \u062a\u0648\u0645\u0627\u0646!<\/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 \u06a9\u0646\u062a\u0631\u0644\u0631 RC \u06f8 \u06a9\u0627\u0646\u0627\u0644 \u0628\u0627 \u06f2 \u062c\u0648\u06cc\u200c\u0627\u0633\u062a\u06cc\u06a9 \u0648 \u0686\u0646\u062f \u0633\u0648\u0626\u06cc\u0686\u060c \u062e\u0631\u0648\u062c\u06cc CPPM \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 FC.<\/p>\n<ul>\n<li><strong>\u0647\u0632\u06cc\u0646\u0647 \u06a9\u0644:<\/strong> \u06f2\u06f0-\u06f4\u06f0 \u0647\u0632\u0627\u0631 \u062a\u0648\u0645\u0627\u0646<\/li>\n<li><strong>\u0628\u0631\u062f:<\/strong> \u06f1\u06f0\u06f0-\u06f5\u06f0\u06f0 \u0645\u062a\u0631 (\u0628\u0627 \u0622\u0646\u062a\u0646 \u06f1\u06f7mm)<\/li>\n<li><strong>\u06a9\u0627\u0646\u0627\u0644\u200c\u0647\u0627:<\/strong> \u062a\u0627 \u06f8 \u06a9\u0627\u0646\u0627\u0644 \u0631\u0648\u06cc \u06cc\u06a9 \u0633\u06cc\u06af\u0646\u0627\u0644 CPPM<\/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='55' width='260' height='120' rx='14' fill='#e8f4ff' stroke='#3a60c0' stroke-width='2'\/>\n<text x='160' y='90' text-anchor='middle' font-size='13' font-family='Tahoma'>TX Controller<\/text>\n<text x='160' y='108' text-anchor='middle' font-size='11' font-family='Tahoma'>Arduino Nano<\/text>\n<text x='160' y='123' text-anchor='middle' font-size='11' font-family='Tahoma'>Joystick\u00d72 + SW\u00d74<\/text>\n<text x='160' y='138' text-anchor='middle' font-size='11' font-family='Tahoma'>nRF24L01+ PA+LNA<\/text>\n<line x1='290' y1='115' x2='400' y2='115' stroke='#555' stroke-width='2.5' stroke-dasharray='6,3'\/>\n<text x='345' y='108' text-anchor='middle' font-size='11' font-family='Tahoma'>2.4GHz<\/text>\n<rect x='400' y='55' width='260' height='120' rx='14' fill='#b7e4a0' stroke='#3a7a1e' stroke-width='2'\/>\n<text x='530' y='90' text-anchor='middle' font-size='13' font-family='Tahoma'>RX Receiver<\/text>\n<text x='530' y='108' text-anchor='middle' font-size='11' font-family='Tahoma'>Arduino Pro Mini<\/text>\n<text x='530' y='123' text-anchor='middle' font-size='11' font-family='Tahoma'>nRF24L01+ \u067e\u06cc\u0646 D2<\/text>\n<text x='530' y='138' text-anchor='middle' font-size='11' font-family='Tahoma'>CPPM \u2192 FC<\/text>\n<text x='430' y='185' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#888'>nRF24 RC \u2014 \u0632\u06cc\u0631 \u06f4\u06f0 \u0647\u0632\u0627\u0631 \u062a\u0648\u0645\u0627\u0646\u060c \u06f8 \u06a9\u0627\u0646\u0627\u0644 CPPM<\/text>\n<\/svg><\/p>\n<h2>\u06a9\u062f TX \u2014 \u0627\u0631\u0633\u0627\u0644 \u06f8 \u06a9\u0627\u0646\u0627\u0644<\/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;RF24.h&gt;\n#include &lt;SPI.h&gt;\n\nRF24 radio(9, 10);  \/\/ CE, CSN\nconst byte addr[] = \"RC001\";\nuint16_t ch[8];  \/\/ \u06f8 \u06a9\u0627\u0646\u0627\u0644\u060c \u0647\u0631 \u06a9\u062f\u0627\u0645 1000-2000\u03bcs\n\nvoid setup() {\n  radio.begin();\n  radio.setChannel(108);        \/\/ \u062f\u0648\u0631 \u0627\u0632 WiFi\n  radio.setDataRate(RF24_250KBPS);\n  radio.setPALevel(RF24_PA_MAX);\n  radio.openWritingPipe(addr);\n  radio.stopListening();\n}\n\nvoid loop() {\n  ch[0] = map(analogRead(A0),0,1023,1000,2000); \/\/ Roll\n  ch[1] = map(analogRead(A1),0,1023,1000,2000); \/\/ Pitch\n  ch[2] = map(analogRead(A2),0,1023,1000,2000); \/\/ Throttle\n  ch[3] = map(analogRead(A3),0,1023,1000,2000); \/\/ Yaw\n  ch[4] = digitalRead(4) ? 2000 : 1000;          \/\/ Mode SW\n  ch[5] = digitalRead(5) ? 2000 : 1000;          \/\/ Arm SW\n  ch[6] = 1500; ch[7] = 1500;                    \/\/ \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc\n\n  radio.write(ch, sizeof(ch));\n  delay(20);  \/\/ 50Hz rate\n}\n<\/code><\/pre>\n<h2>\u06a9\u062f RX \u2014 \u062e\u0631\u0648\u062c\u06cc CPPM<\/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;RF24.h&gt;\nRF24 radio(9, 10);\nconst byte addr[] = \"RC001\";\nuint16_t ch[8];\nunsigned long lastRx;\n\n\/\/ CPPM \u0631\u0648\u06cc D3 (Timer2 PWM)\n\/\/ PPM Frame: \u067e\u0627\u0644\u0633 sync 300\u03bcs + \u06f8 \u06a9\u0627\u0646\u0627\u0644\n#define PPM_PIN 3\n\nvoid generatePPM() {\n  \/\/ \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc PPM \u0628\u0627 Timer2 ISR\n  \/\/ \u06cc\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 PPMEncoder\n}\n\nvoid setup() {\n  radio.begin(); radio.setChannel(108);\n  radio.setDataRate(RF24_250KBPS);\n  radio.openReadingPipe(0, addr);\n  radio.startListening();\n  pinMode(PPM_PIN, OUTPUT);\n  for(int i=0;i<8;i++) ch[i]=1500;\n}\n\nvoid loop() {\n  if(radio.available()) {\n    radio.read(ch, sizeof(ch));\n    lastRx = millis();\n  }\n  \/\/ Failsafe: \u0627\u06af\u0631 \u06f5\u06f0\u06f0ms \u067e\u06cc\u0627\u0645 \u0646\u0631\u0633\u06cc\u062f\n  if(millis()-lastRx > 500) {\n    ch[2] = 1000;  \/\/ Throttle \u0635\u0641\u0631\n    ch[5] = 1000;  \/\/ Disarm\n  }\n  generatePPM();\n}\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u062a\u0633\u062a<\/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'>\u062a\u0633\u062a<\/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'>nRF24 \u067e\u0627\u0633\u062e \u0645\u06cc\u200c\u062f\u0647\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>radio.begin() = true<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>\u06f8 \u06a9\u0627\u0646\u0627\u0644 \u062f\u0631 Betaflight\/iNAV \u062f\u06cc\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>Receiver Tab \u0628\u0627\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>Failsafe \u062f\u0631 \u06f5\u06f0\u06f0ms Throttle \u0635\u0641\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>TX \u0631\u0627 \u062e\u0627\u0645\u0648\u0634 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>\u062f\u0631 \u06f5\u06f0 \u0645\u062a\u0631 \u0628\u062f\u0648\u0646 dropout\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610<\/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='#8bd3dd' stroke='#1f6f78' 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='#b7e4a0' stroke='#3a7a1e' 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'>Joystick\u00d72<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Arduino TX<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>nRF24L01+<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>2.4GHz 250kbps<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>CPPM Output<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u06f8 \u06a9\u0627\u0646\u0627\u0644<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>FC iNAV\/BF<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>UAV\/UGV<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>nRF24 RC \u2014 \u06f4\u06f0 \u0647\u0632\u0627\u0631 \u062a\u0648\u0645\u0627\u0646\u060c \u06f8 \u06a9\u0627\u0646\u0627\u0644 CPPM \u2192 FC<\/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\/SLDSPGQCu28' title='DIY RC Transmitter nRF24L01 Arduino' 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\/mSv5HcMJQNc' title='nRF24L01 8 Channel RC PPM Output' 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\/nRF24L01_%DA%A9%D9%86%D8%AA%D8%B1%D9%84%D8%B1_RC_%D8%A2%D8%B1%D8%AF%D9%88%DB%8C%D9%86%D9%88' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: nRF24L01 \u06a9\u0646\u062a\u0631\u0644\u0631 RC \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0641\u0627\u0631\u0633\u06cc<\/a><\/li>\n<li><a href='https:\/\/github.com\/nRF24\/RF24' target='_blank'>GitHub: RF24 Library Documentation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0633\u0627\u062e\u062a \u06a9\u0646\u062a\u0631\u0644\u0631 RC \u06f8 \u06a9\u0627\u0646\u0627\u0644 \u0628\u0627 \u0645\u0627\u0698\u0648\u0644 nRF24L01+ (\u0632\u06cc\u0631 \u06f3 \u062f\u0644\u0627\u0631) \u0648 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u061b \u06a9\u062f\u06cc\u0646\u06af PPM\u060c \u06af\u06cc\u0631\u0646\u062f\u0647 \u0633\u0631\u0648\u060c \u062a\u0646\u0638\u06cc\u0645 Failsafe\u060c \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0627\u0631\u0632\u0627\u0646 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc RC \u062a\u062c\u0627\u0631\u06cc.<\/p>\n","protected":false},"author":1,"featured_media":550,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[19,17],"tags":[336,166,333,335,334,21,294,337],"class_list":["post-551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-2","category-uav","tag-cppm","tag-failsafe","tag-nrf24l01","tag-ppm","tag-rc-controller","tag-arduino","tag-294","tag-337"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/551","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=551"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"predecessor-version":[{"id":552,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/551\/revisions\/552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/550"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}