How to make 8 channel Universal Remote Controller Using Arduino for Aeroplane, JCB, Helicopter, Transformer Car, RC Toy Car

How to make 8 Channel Radio controller Using Arduino

 

 

 

Required Materials-

2X Arduino Nano 328P

2X Nrf24l01

4X JoyStick Module

2x 100uf/25V Capacitor

7.4 V Li-Po Battery

3.7V Li-Ion Battery

Brushless Motor & ESC

 

 

Procedure

 

First of all You need to make Remote Cases using 2-3mm Acrylic Sheet by following this Diagram

 

 

Making Circuit

Make a suitable circuit using Zero PCB by Following this Circuit Diagram

 

 

 

 

Circuit Correction

Warning- Must check your wiring connection using continuity mode of your Multi meter

 

Coding

You must have Arduino nano 328p to upload this code
Connect your Arduino to your PC or Lap Top through USB mini B Cable
Now open your Arduino(IDE) and select Board type, Select Processor, Select Com Port
Now Click Upload

 

 

You must need two Codes for doing this procedure

 

Transmitter Code

 

// 8 Channel Transmitter

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

const uint64_t pipeOut = 0xE9E8F0F0E1LL; //IMPORTANT: The same as in the receiver 0xE9E8F0F0E1LL
RF24 radio(7, 8); // select CE,CSN pin |

struct Signal {
byte throttle_a;
byte pitch_a;
byte roll_a;
byte yaw_a;
byte throttle_b;
byte pitch_b;
byte roll_b;
byte yaw_b;
};

Signal data;

void ResetData()
{
data.throttle_a = 127; // Motor Stop (254/2=127)(Signal lost position)
data.pitch_a = 127; // Center (Signal lost position)
data.roll_a = 127; // Center(Signal lost position)
data.yaw_a = 127; // Center (Signal lost position )
data.throttle_b = 127; // Center (Signal lost position )
data.pitch_b = 127; // Center (Signal lost position )
data.roll_b = 127; // Center (Signal lost position )
data.yaw_b = 127; // Center (Signal lost position )
}

void setup()
{
//Start everything up

radio.begin();
radio.openWritingPipe(pipeOut);
radio.stopListening(); //start the radio comunication for Transmitter
ResetData();
}

// Joystick center and its borders

int mapJoystickValues(int val, int lower, int middle, int upper, bool reverse)
{
val = constrain(val, lower, upper);
if ( val < middle )
val = map(val, lower, middle, 0, 128);
else
val = map(val, middle, upper, 128, 255);
return ( reverse ? 255 - val : val );
}

void loop()
{
// Control Stick Calibration
// Setting may be required for the correct values of the control levers.

data.throttle_a = mapJoystickValues( analogRead(A0), 524, 524, 1015, false );
data.roll_a = mapJoystickValues( analogRead(A1), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.pitch_a = mapJoystickValues( analogRead(A2), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.yaw_a = mapJoystickValues( analogRead(A3), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.throttle_b = mapJoystickValues( analogRead(A4), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.roll_b = mapJoystickValues( analogRead(A5), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.pitch_b = mapJoystickValues( analogRead(A6), 12, 524, 1020, true ); // "true" or "false" for servo direction
data.yaw_b = mapJoystickValues( analogRead(A7), 12, 524, 1020, true ); // "true" or "false" for servo direction

radio.write(&data, sizeof(Signal));
}

 

Receiver Code

 

// 8 Channel Receiver

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <Servo.h>

int ch_width_1 = 0;
int ch_width_2 = 0;
int ch_width_3 = 0;
int ch_width_4 = 0;
int ch_width_5 = 0;
int ch_width_6 = 0;
int ch_width_7 = 0;
int ch_width_8 = 0;

Servo ch1;
Servo ch2;
Servo ch3;
Servo ch4;
Servo ch5;
Servo ch6;
Servo ch7;
Servo ch8;

struct Signal {
byte throttle_a;
byte pitch_a;
byte roll_a;
byte yaw_a;
byte throttle_b;
byte pitch_b;
byte roll_b;
byte yaw_b;
};

Signal data;

const uint64_t pipeIn = 0xE9E8F0F0E1LL;
RF24 radio(7, 8);

void ResetData()
{
// Define the inicial value of each data input.
// The middle position for Potenciometers. (254/2=127)
data.throttle_a = 127; // Motor Stop
data.pitch_a = 127; // Center
data.roll_a = 127; // Center
data.yaw_a = 127; // Center
data.throttle_b = 127; // Center
data.pitch_b = 127; // Center
data.roll_b = 127; // Center
data.yaw_b = 127; // Center
}

void setup()
{
//Set the pins for each PWM signal
ch1.attach(2);
ch2.attach(3);
ch3.attach(4);
ch4.attach(5);
ch5.attach(1);
ch6.attach(6);
ch7.attach(9);
ch8.attach(10);

//Configure the NRF24 module
ResetData();
radio.begin();
radio.openReadingPipe(1,pipeIn);

radio.startListening(); //start the radio comunication for receiver
}

unsigned long lastRecvTime = 0;

void recvData()
{
while ( radio.available() ) {
radio.read(&data, sizeof(Signal));
lastRecvTime = millis(); // receive the data
}
}

void loop()
{
recvData();
unsigned long now = millis();
if ( now - lastRecvTime > 1000 ) {
ResetData(); // Signal lost.. Reset data
}

ch_width_1 = map(data.throttle_a, 0, 255, 1000, 2000);
ch_width_2 = map(data.pitch_a, 0, 255, 1000, 2000);
ch_width_3 = map(data.roll_a, 0, 255, 1000, 2000);
ch_width_4 = map(data.yaw_a, 0, 255, 1000, 2000);
ch_width_5 = map(data.throttle_b, 0, 255, 1000, 2000);
ch_width_6 = map(data.pitch_b, 0, 255, 1000, 2000);
ch_width_7 = map(data.roll_b, 0, 255, 1000, 2000);
ch_width_8 = map(data.yaw_b, 0, 255, 1000, 2000);

// Write the PWM signal
ch1.writeMicroseconds(ch_width_1);
ch2.writeMicroseconds(ch_width_2);
ch3.writeMicroseconds(ch_width_3);
ch4.writeMicroseconds(ch_width_4);
ch5.writeMicroseconds(ch_width_5);
ch6.writeMicroseconds(ch_width_6);
ch7.writeMicroseconds(ch_width_7);
ch8.writeMicroseconds(ch_width_8);
}

 

 

Now Give power to your board and Enjoy

 

Thank You So Much for Watching……

 

133 Comments

  1. It looks like this outputs a PWM signal to the servos. What would I change to send a PPM signal instead so that it can be used to control most ESCs that would control a motor?

  2. you are truly a excellent webmaster. The site loading pace is incredible.
    It sort of feels that you are doing any distinctive trick.
    Furthermore, The contents are masterpiece. you’ve done a
    fantastic activity in this topic!

  3. Still many different elements that is affecting one’s life such spirits or as little as they’d like.

    Spirituality psychic and click of the tools like cellphone call and
    now there is. Subscribe to their websites could attract
    you extra confidence on the way you now. That means and as soon as your instruments make you
    comfy to make use of the time for self-pity
    is over. Many psychics can immediately help join you with the readings or ask plenty of modern time.

    As we speak online course is when reversed one can infer that the seeker
    go in with major Arcana. Only if in case you have until
    you understand the key Arcana is comprised of.
    Dr Jai Jamison smiled broadly as she has
    helped a number of you who really find out about. 1 California psychics
    will know the facts related to your family focusing on. Psychic readers will claim to be useful in the
    long run is unpredictable. Psychic Oz supplies viable readings by video chat as certainly one of most
    astrology Lovers. At United 21 years as one time or when you’d
    favor to be.

  4. Hey! I know this is kinda off topic nevertheless I’d figured
    I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog post or vice-versa?
    My website covers a lot of the same topics as yours and I feel we could greatly
    benefit from each other. If you’re interested feel free
    to shoot me an email. I look forward to hearing from you!
    Terrific blog by the way!

  5. We are a group of volunteers and opening a new scheme in our community.
    Your web site offered us with valuable info to work on. You’ve
    done an impressive job and our entire community will be thankful to you.

  6. I like the valuable information you provide in your articles.
    I’ll bookmark your weblog and check again here regularly. I’m quite certain I’ll learn a lot of new stuff right here!
    Good luck for the next!

  7. Hey there! I realize this is somewhat off-topic however I needed
    to ask. Does building a well-established website such as yours take a
    lot of work? I am completely new to operating a blog but I do write in my diary every day.

    I’d like to start a blog so I can easily share
    my own experience and thoughts online. Please let
    me know if you have any suggestions or tips for brand new aspiring blog owners.
    Thankyou!

  8. Superb post however , I was wanting to know if you could write a litte more on this subject?
    I’d be very grateful if you could elaborate a little bit more.
    Bless you!

  9. You really make it appear really easy with your presentation but I to find this
    matter to be actually one thing that I think I’d never understand.
    It seems too complicated and extremely broad for me.
    I’m having a look ahead to your subsequent post, I will try to get the
    grasp of it!

  10. Wonderful site you have here but I was wondering if you knew
    of any user discussion forums that cover the same topics
    discussed here? I’d really love to be a part of community where
    I can get responses from other knowledgeable people that share the same
    interest. If you have any suggestions, please let
    me know. Cheers!

  11. I blog quite often and I really thank you for your content.
    This article has truly peaked my interest. I will bookmark
    your blog and keep checking for new information about once per week.

    I subscribed to your RSS feed too.

  12. I think that everything said made a ton of
    sense. However, what about this? suppose you added a
    little content? I mean, I don’t wish to tell you how
    to run your blog, however what if you added something that grabbed a person’s attention? I mean How to make 8 channel Universal Remote Controller Using Arduino for Aeroplane, JCB, Helicopter, Transformer Car, RC Toy Car | TecH BoyS ToyS is a little plain. You might
    peek at Yahoo’s home page and note how they write post headlines to grab viewers to open the links.
    You might add a related video or a related picture or two to get readers excited
    about what you’ve got to say. In my opinion, it might bring your posts a little bit more interesting.

  13. Hi, I do believe this is a great web site. I stumbledupon it 😉 I may come back yet again since
    I bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  14. Have you ever considered creating an ebook or
    guest authoring on other sites? I have a blog based upon on the same subjects you discuss and would love to have you share some stories/information. I know my readers would appreciate your work.
    If you are even remotely interested, feel free to shoot me an e-mail.

  15. Excellent post. I was checking continuously this
    blog and I’m impressed! Extremely helpful info specially the
    final part 🙂 I handle such information much. I used to be looking
    for this particular information for a long time. Thanks and good luck.

  16. Ahaa, its nice dialogue on the topic of this paragraph at this place at this weblog, I have
    read all that, so now me also commenting at this place.

  17. I love your blog.. very nice colors & theme.
    Did you make this website yourself or did you hire someone to do
    it for you? Plz respond as I’m looking to design my own blog and would
    like to know where u got this from. many thanks

  18. You are so interesting! I do not think I’ve truly read through anything
    like this before. So wonderful to find another person with genuine thoughts on this issue.
    Really.. thanks for starting this up. This site is one thing that
    is needed on the web, someone with a bit of originality!

  19. Hi, I do believe your website may be having browser compatibility issues.
    Whenever I look at your blog in Safari, it looks fine but when opening in IE, it’s got some overlapping issues.

    I merely wanted to provide you with a quick heads up!
    Aside from that, wonderful website!

  20. I am really loving the theme/design of your weblog.
    Do you ever run into any internet browser compatibility problems?

    A few of my blog readers have complained about my blog not working correctly
    in Explorer but looks great in Opera. Do you have any advice to help fix
    this issue?

  21. I’m amazed, I must say. Seldom do I come across a blog that’s both educative and amusing, and without a doubt, you’ve
    hit the nail on the head. The issue is something that
    too few people are speaking intelligently about.
    I am very happy I found this during my hunt for something concerning this.

  22. I really like your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone to do it
    for you? Plz reply as I’m looking to design my own blog and would like
    to find out where u got this from. thanks a lot

  23. Hello just wanted to give you a quick heads up.
    The words in your post seem to be running off the screen in Ie.
    I’m not sure if this is a formatting issue or something to do
    with browser compatibility but I thought I’d post to let you know.

    The design look great though! Hope you get the issue solved soon. Cheers

  24. Howdy, There’s no doubt that your site could be having browser
    compatibility problems. When I look at your blog in Safari, it looks fine but when opening in I.E., it has some overlapping issues.
    I simply wanted to give you a quick heads up! Aside from that, wonderful blog!

  25. Have you ever thought about writing an e-book or guest authoring
    on other websites? I have a blog based on the same ideas you discuss and would
    really like to have you share some stories/information. I know my subscribers would
    value your work. If you are even remotely interested, feel free to shoot me an email.

  26. Excellent article. Keep posting such kind of information on your blog.
    Im really impressed by it.
    Hey there, You’ve done an incredible job. I’ll certainly digg it
    and for my part recommend to my friends. I’m confident they will be benefited from this site.

  27. Howdy I am so delighted I found your web site, I
    really found you by accident, while I was browsing on Aol
    for something else, Anyways I am here now and would just like to say thanks a
    lot for a fantastic post and a all round interesting blog (I also love
    the theme/design), I don’t have time to browse it
    all at the moment but I have book-marked it and also included
    your RSS feeds, so when I have time I will be back to
    read more, Please do keep up the awesome job.

  28. I’m extremely pleased to uncover this page.
    I wanted to thank you for your time due to this fantastic read!!

    I definitely appreciated every part of it and i also have you book marked to see new information in your web
    site.

  29. Howdy I am so grateful I found your website, I really
    found you by accident, while I was browsing on Askjeeve for something else, Anyways I am here now and would just like to say kudos for a marvelous post and a all round
    interesting blog (I also love the theme/design), I don’t have time to browse it all at
    the moment but I have book-marked it and also added
    in your RSS feeds, so when I have time I will be back to read a lot
    more, Please do keep up the superb job.

  30. Superb blog! Do you have any recommendations for aspiring writers?

    I’m planning to start my own website soon but I’m
    a little lost on everything. Would you recommend starting with a free platform like WordPress
    or go for a paid option? There are so many choices out
    there that I’m completely overwhelmed .. Any suggestions?
    Thanks!

  31. You really make it appear so easy with your presentation but I
    find this matter to be actually something that I think
    I would by no means understand. It seems too complicated and very vast for me.

    I am having a look forward in your next put up, I will try to get
    the hold of it!

  32. Thank you a lot for sharing this with all folks you actually know what you’re speaking approximately!

    Bookmarked. Please also discuss with my site =). We could
    have a link change agreement among us

  33. Hi, i think that i saw you visited my site thus i came to “return the favor”.I’m attempting
    to find things to enhance my website!I suppose its ok to use
    some of your ideas!!

  34. Excellent website you have here but I was wanting to know if you knew of
    any discussion boards that cover the same topics talked about in this article?
    I’d really love to be a part of group where I can get feed-back from other experienced
    people that share the same interest. If you have any suggestions,
    please let me know. Thanks!

  35. Unquestionably consider that that you stated. Your favorite reason appeared
    to be at the web the simplest factor to be
    aware of. I say to you, I certainly get irked at the
    same time as folks think about concerns that they just do not recognise about.
    You controlled to hit the nail upon the top as well as
    defined out the whole thing without having side effect ,
    people could take a signal. Will probably be again to get more.
    Thanks

  36. I’ve been browsing online greater than 3 hours as of late, but I
    by no means discovered any attention-grabbing article like yours.
    It’s lovely worth sufficient for me. Personally, if all webmasters and bloggers made
    good content as you probably did, the net will be a lot more useful than ever before.

  37. Howdy! I could have sworn I’ve been to this blog before
    but after browsing through some of the post I realized it’s new to me.

    Anyways, I’m definitely glad I found it and I’ll be book-marking and
    checking back frequently!

  38. Hey there! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in trading links or maybe guest authoring a blog post or vice-versa?
    My site goes over a lot of the same subjects
    as yours and I feel we could greatly benefit from each other.
    If you are interested feel free to send me an email. I look forward to hearing
    from you! Superb blog by the way!

  39. Great beat ! I wish to apprentice at the same time as you amend your
    website, how can i subscribe for a blog site?
    The account aided me a applicable deal. I were a little bit familiar
    of this your broadcast provided vibrant transparent concept

  40. Hey there would you mind letting me know which webhost you’re utilizing?
    I’ve loaded your blog in 3 different browsers and I must
    say this blog loads a lot faster then most.
    Can you recommend a good hosting provider at a fair price?
    Many thanks, I appreciate it!

Leave a reply

Please enter your comment!
Please enter your name here

Related Articles