Aeromodel

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models.

Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

12/08/2022  

 MENU 

HOBI ELECTRONIC / MAIN PAGE / RC MODELS

Simple and Cheap Radio Control Making for RC


Models. DIY RC
 02/17/2020

How to make a low cost 4 channel remote control for RC model aircraft, drone, cars and
boats.
Construction of remote controls with proportional controls, which cost about 13-14 USD.
It can be used for all kinds of model vehicle control such as model aircraft, drone, car,
boat, tank.

Necessary materials:

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 1/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

2 x Arduino Nano
1 x NRF24L01 + PA Wireless Module
1 x NRF24L01 Wireless Module
2 x Arduino joystick
2 x 100uF Capacitor (16V or above)
1 x 13 * 6 cm PCB Board
1 x 5 * 3.5 cm PCB Board

Arduino Nano: https://www.banggood.com/custlink/vvGKUFyfT9


Arduino Nano & USB Cable: https://www.banggood.com/custlink/vDDGkGyA0y
Arduino Joystick: https://www.banggood.com/custlink/333mMmdABV
NRF24L01 Wireless Modul: https://www.banggood.com/custlink/KGvvMmEbnR
NRF24L01 + PA Wireless Modul: https://www.banggood.com/custlink/33GGqGhQbZ
PCB Boards:
https://www.banggood.com/custlink/v33vUGYsUd
https://www.banggood.com/custlink/3vGmz3yNqC
100uF Capacitor: https://www.banggood.com/custlink/DKDvMvyQUe
Headers:
https://www.banggood.com/custlink/m3vGqKdnfN
https://www.banggood.com/custlink/vG33zGYUmd

Other materials:
SG90 Servos: https://www.banggood.com/custlink/Kv3DS6stKo
20A ESC: https://www.banggood.com/custlink/mvvDggsH4C
7.4V 450Mah 2S LiPo: https://www.banggood.com/custlink/KKKGU3EqE3
DC 180 Motor 39000 RPM: https://amzn.to/35rD8Ar or bit.ly/2L62JqC

Transmitter Circuit & Receiver Circuit

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 2/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

Cheap and Simple Radio Control Making for RC Mo…


Mo…

If you do not have experience with Arduino and library files, you should watch the
video below before uploading the code.

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 3/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

Arduino IDE Installation, Adding Library and Upl…


Upl…

Transmitter Code

1. // 4 Channel Transmitter | 4 Kanal Verici


2.
3. #include <SPI.h>
4. #include <nRF24L01.h>
5. #include <RF24.h>
6.
7. const uint64_t pipeOut = 0xE9E8F0F0E1LL; //IMPORTANT: The same as in the receiver
0xE9E8F0F0E1LL | Bu adres alıcı ile aynı olmalı
8. RF24 radio(7, 8); // select CE,CSN pin | CE ve CSN pinlerin seçimi
9.
10. struct Signal {
11. byte throttle;
12. byte pitch;
13. byte roll;
14. byte yaw;
15. };
16.
17. Signal data;
18.
19. void ResetData()
20. {
21. data.throttle = 127; // Motor Stop (254/2=127)| Motor Kapalı (Signal lost position |
sinyal kesildiğindeki pozisyon)
22. data.pitch = 127; // Center | Merkez (Signal lost position | sinyal kesildiğindeki
pozisyon)
23. data.roll = 127; // Center | merkez (Signal lost position | sinyal kesildiğindeki
pozisyon)
24. data.yaw = 127; // Center | merkez (Signal lost position | sinyal kesildiğindeki
pozisyon)
25. }
26.
27. void setup()
28. {
29. //Start everything up
30.

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 4/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…
31. radio.begin();
32. radio.openWritingPipe(pipeOut);
33. radio.stopListening(); //start the radio comunication for Transmitter | Verici
olarak sinyal iletişimi başlatılıyor
34. ResetData();
35. }
36.
37. // Joystick center and its borders | Joystick merkez ve sınırları
38.
39. int mapJoystickValues(int val, int lower, int middle, int upper, bool reverse)
40. {
41. val = constrain(val, lower, upper);
42. if ( val < middle )
43. val = map(val, lower, middle, 0, 128);
44. else
45. val = map(val, middle, upper, 128, 255);
46. return ( reverse ? 255 - val : val );
47. }
48.
49. void loop()
50. {
51. // Control Stick Calibration | Kumanda Kol Kalibrasyonları
52. // Setting may be required for the correct values of the control levers. | Kolların
doğru değerleri için ayar gerekebilir.
53.
54. data.throttle = mapJoystickValues( analogRead(A0), 524, 524, 1015, true );
55. data.roll = mapJoystickValues( analogRead(A1), 12, 524, 1020, true ); // "true"
or "false" for servo direction | "true" veya "false" servo yönünü belirler
56. data.pitch = mapJoystickValues( analogRead(A2), 12, 524, 1020, true ); // "true"
or "false" for servo direction | "true" veya "false" servo yönünü belirler
57. data.yaw = mapJoystickValues( analogRead(A3), 12, 524, 1020, true ); // "true"
or "false" for servo direction | "true" veya "false" servo yönünü belirler
58.
59. radio.write(&data, sizeof(Signal));
60. }

Receiver Code

1. // 4 Channel Receiver | 4 Kanal Alıcı


2. // PWM output on pins D2, D3, D4, D5 (Çıkış pinleri)
3.
4. #include <SPI.h>
5. #include <nRF24L01.h>
6. #include <RF24.h>
7. #include <Servo.h>
8.
9. int ch_width_1 = 0;
10. int ch_width_2 = 0;
11. int ch_width_3 = 0;
12. int ch_width_4 = 0;
13.
14. Servo ch1;
15. Servo ch2;
16. Servo ch3;
17. Servo ch4;
18.
19. struct Signal {
20. byte throttle;
21. byte pitch;
https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 5/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…
22. byte roll;
23. byte yaw;
24. };
25.
26. Signal data;
27.
28. const uint64_t pipeIn = 0xE9E8F0F0E1LL;
29. RF24 radio(7, 8);
30.
31. void ResetData()
32. {
33. // Define the inicial value of each data input. | Veri girişlerinin başlangıç
değerleri
34. // The middle position for Potenciometers. (254/2=127) | Potansiyometreler için orta
konum
35. data.throttle = 127; // Motor Stop | Motor Kapalı
36. data.pitch = 127; // Center | Merkez
37. data.roll = 127; // Center | Merkez
38. data.yaw = 127; // Center | Merkez
39. }
40.
41. void setup()
42. {
43. //Set the pins for each PWM signal | Her bir PWM sinyal için pinler belirleniyor.
44. ch1.attach(2);
45. ch2.attach(3);
46. ch3.attach(4);
47. ch4.attach(5);
48.
49. //Configure the NRF24 module
50. ResetData();
51. radio.begin();
52. radio.openReadingPipe(1,pipeIn);
53.
54. radio.startListening(); //start the radio comunication for receiver | Alıcı olarak
sinyal iletişimi başlatılıyor
55. }
56.
57. unsigned long lastRecvTime = 0;
58.
59. void recvData()
60. {
61. while ( radio.available() ) {
62. radio.read(&data, sizeof(Signal));
63. lastRecvTime = millis(); // receive the data | data alınıyor
64. }
65. }
66.
67. void loop()
68. {
69. recvData();
70. unsigned long now = millis();
71. if ( now - lastRecvTime > 1000 ) {
72. ResetData(); // Signal lost.. Reset data | Sinyal kayıpsa data resetleniyor
73. }
74.
75. ch_width_1 = map(data.throttle, 0, 255, 1000, 2000); // pin D2 (PWM signal)
76. ch_width_2 = map(data.pitch, 0, 255, 1000, 2000); // pin D3 (PWM signal)
77. ch_width_3 = map(data.roll, 0, 255, 1000, 2000); // pin D4 (PWM signal)
78. ch_width_4 = map(data.yaw, 0, 255, 1000, 2000); // pin D5 (PWM signal)
79.
80. // Write the PWM signal | PWM sinyaller çıkışlara gönderiliyor
81. ch1.writeMicroseconds(ch_width_1);
82. ch2.writeMicroseconds(ch_width_2);

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 6/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…
83. ch3.writeMicroseconds(ch_width_3);
84. ch4.writeMicroseconds(ch_width_4);
85. }

Files with .h extension in the “include lines in the code are library files. Search for them
with their names. Download it to your computer and copy it to the Arduino / Libraries
folder. You must do this before uploading the code to the arduino).

Example: Necessary library link for NRF24L01: https://github.com/maniacbug/RF24


(Different version library files may be required depending on the Arduino board. It can be
found by trying)

TikTok KendinYap: https://www.tiktok.com/@kendinyap_tt

TAGGED ARDUINO RADIO CONTROL ARDUINO RC MAKING DIY RADIO CONTROL


HOMEMADE REMOTE CONTROL HOW TO MAKE RADIO CONTROL RADIO CONTROL CIRCUIT
REMOTE CONTROL CIRCUIT

PREVIOUS POST NEXT POST


How to Make a Rc Acrobatics Plane SKYRC T60X80 AC/DC Digital Charger
From Foam Board

YOU MIGHT ALSO LIKE

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 7/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

How To Make Fast RC Boat. Diy Basic Single Motor RC Boat


 08/20/2020

How To Make DC Motor Speed Controller Circuit. DIY PWM Motor Controller.
 06/12/2019

3.3V and 5V Constant Voltage Regulators Circuits. DIY


 10/12/2022

English

Türkçe

Search … SEARCH

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 8/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

RECENT POSTS

Making a Very Useful Mini Table Saw With 3D Printer

Making a LONG DISTANCE 8-Channel and Digital Trim Remote Control. DIY RC | PART-2

Adjustable DC To DC Booster Circuit. 5-15V to Max. 40V

3.3V and 5V Constant Voltage Regulators Circuits. DIY

Making a Long Range Remote Control. DIY 1 to 8 Channel Arduino RC | PART-1

3.7V Li-ion & LiPo battery voltaj indicator circuit

Making RC Boat for 3D Printed Outboard Motor. DIY RC 3D Printed BOAT

Make a Simple RC Boat & Make a Micro Lake. How They Are Made.

CATEGORIES

Hobi Electronic

Main page

RC Models

Reviews

Tools & Equipments

Uncategorized

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 9/10
08/12/2022 21:35 Simple and Cheap Radio Control Making for RC Models. DIY RC – RC Araç Yapımı, DIY Hobi Elektronik, Arduino projeler, R…

copyright @ rcpano.net .. TikTok KendinYap: https://www.tiktok.com/@kendinyap_tt ... Powered by


WordPress and Bam.

https://www.rcpano.net/2020/02/17/simple-and-cheap-radio-control-making-for-rc-models-diy-rc/ 10/10

You might also like