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……

176 Comments

  1. 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.

  2. 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!

  3. 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.

  4. 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!

  5. 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!

  6. 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!

  7. 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.

  8. 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.

  9. 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

  10. 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!

  11. 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?

  12. 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

  13. 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

  14. 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!

  15. 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.

  16. 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

  17. 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!!

  18. 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!

  19. 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

  20. 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!

  21. After exploring a handful of the blog posts on your web site,
    I seriously appreciate your way of blogging.
    I book marked it to my bookmark site list and will be checking back
    in the near future. Take a look at my website too and let me know how
    you feel.

  22. Having read this I thought it was extremely enlightening.
    I appreciate you finding the time and effort to put this article together.
    I once again find myself personally spending a significant amount of time both reading and leaving comments.
    But so what, it was still worthwhile!

  23. I think this is one of the most significant info
    for me. And i’m glad reading your article. But wanna remark on few general things, The web site style is ideal,
    the articles is really excellent : D. Good job, cheers

  24. An intriguing discussion is worth comment. I do believe that you ought to publish more
    on this topic, it may not be a taboo matter but typically people do not
    speak about these subjects. To the next! Many thanks!!

  25. Howdy! This is kind of off topic but I need some advice
    from an established blog. Is it very hard to set up your own blog?

    I’m not very techincal but I can figure things out pretty fast.

    I’m thinking about setting up my own butt I’m not sure where to
    start. Do you have any tips or suggestions?
    Cheers

  26. An intriguing discussion is definitely worth comment.
    There’s no doubt that that you ought to publish more on this subject,
    it may not be a taboo matter but typically people don’t discuss these issues.
    To the next! Cheers!!

  27. I am now not certain the place you’re getting your info, but
    good topic. I needs to spend a while studying much more or figuring out more.
    Thank you for great information I was searching for this info for my mission.

  28. Woah! I’m really enjoying the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between superb usability and appearance.

    I must say you have done a excellent job with this. Also,
    the blog loads very fast for me on Safari. Exceptional Blog!

  29. I am not certain the place you’re getting your info, however great topic.

    I needs to spend some time studying much more or understanding more.
    Thanks for wonderful info I was looking for this information for my mission.

  30. I like the valuable information you provide in your articles.
    I’ll bookmark your blog and check again here regularly.
    I am quite certain I will learn lots of new stuff right here!
    Best of luck for the next!

  31. You actually make it seem so easy with your presentation but I find this topic to be actually
    something which I think I would never understand.
    It seems too complex and extremely broad for me.
    I’m looking forward for your next post, I’ll try to get the hang of it!

  32. I’m no longer sure the place you’re getting your
    information, however great topic. I must spend a while studying more or understanding more.
    Thank you for great information I was looking for this info for my mission.

  33. 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

  34. This is really fascinating, You are a very professional
    blogger. I have joined your rss feed and sit up for in quest of more of your magnificent
    post. Also, I’ve shared your web site in my social networks

  35. What i don’t understood is if truth be told how you’re now not really much more neatly-appreciated than you might
    be right now. You’re very intelligent. You realize thus considerably in the case of
    this subject, made me individually consider it from a lot of varied angles.
    Its like men and women don’t seem to be fascinated until
    it’s something to accomplish with Woman gaga!
    Your own stuffs outstanding. All the time take care
    of it up!

  36. I’m really impressed with your writing skills as well as with the layout on your blog.
    Is this a paid theme or did you customize it yourself?

    Anyway keep up the nice quality writing, it is rare to see a nice blog like this one nowadays.

  37. Usually I don’t learn article on blogs, however I would
    like to say that this write-up very compelled me to try and do
    it! Your writing style has been amazed me. Thank you, very nice article.

  38. I was very happy to uncover this website. I want to to thank you for
    ones time for this particularly fantastic read!! I definitely really liked every bit of it and I have you
    book marked to see new stuff on your website.

  39. I love your blog.. very nice colors & theme.

    Did you create this website yourself or did you hire someone to
    do it for you? Plz reply as I’m looking to construct my own blog and would like to find
    out where u got this from. many thanks

  40. I’m pretty pleased to discover this site. I want to to thank
    you for ones time for this particularly wonderful read!! I
    definitely appreciated every bit of it and i also
    have you book-marked to check out new information in your blog.

  41. With havin so much content do you ever run into any issues of plagorism or
    copyright infringement? My blog has a lot of unique content I’ve either created myself or outsourced but it seems a
    lot of it is popping it up all over the web without
    my agreement. Do you know any solutions to help
    prevent content from being ripped off? I’d definitely appreciate it.

  42. Thanks for some other informative web site.
    Where else may I get that kind of information written in such an ideal manner?
    I’ve a mission that I’m simply now running on, and I have been on the glance out for such
    info.

  43. Excellent beat ! I would like to apprentice whilst you amend your web
    site, how could i subscribe for a blog site?

    The account helped me a applicable deal. I were tiny bit acquainted of this your broadcast offered bright transparent concept

  44. Hello there, just became aware of your blog through Google, and found
    that it’s truly informative. I am going to watch
    out for brussels. I’ll be grateful if you continue this
    in future. Many people will be benefited from your writing.
    Cheers!

  45. I believe everything published was actually very reasonable.

    But, think on this, what if you added a little content? I ain’t suggesting your content is not solid, however what if you
    added a post title 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
    could peek at Yahoo’s front page and note how they create article
    titles to get people interested. You might try adding
    a video or a picture or two to grab readers interested
    about what you’ve written. Just my opinion, it would bring your posts a little bit more interesting.

  46. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your weblog?
    My blog site is in the very same area of interest as yours and my
    visitors would truly benefit from a lot of the information you provide here.
    Please let me know if this okay with you. Appreciate it!

  47. Its like you read my mind! You seem to know a lot about
    this, like you wrote the book in it or something. I think that you could do with some pics to
    drive the message home a bit, but other than that, this is excellent blog.
    An excellent read. I’ll certainly be back.

  48. I’m amazed, I have to admit. Seldom do I come across a blog
    that’s equally educative and entertaining, and let me tell you,
    you’ve hit the nail on the head. The issue is something too few men and women are speaking intelligently
    about. I am very happy I found this during my search for something
    relating to this.

  49. Pretty great post. I just stumbled upon your weblog and wished to mention that I have truly loved browsing your blog posts.
    After all I’ll be subscribing for your rss feed and
    I’m hoping you write again soon!

  50. Hi, I do believe this is a great website.
    I stumbledupon it 😉 I will return yet again since i have bookmarked it.
    Money and freedom is the best way to change, may you be rich and continue to help
    other people.

  51. Somebody essentially lend a hand to make significantly articles I might state.
    That is the first time I frequented your web page and
    so far? I amazed with the analysis you made to make
    this particular submit amazing. Great task!

  52. Terrific article! This is the type of info that are supposed to be shared across the internet.

    Shame on the search engines for not positioning this post higher!
    Come on over and visit my web site . Thank you =)

  53. I do not know whether it’s just me or if perhaps everyone else experiencing problems with your website.
    It appears as if some of the text in your content are running
    off the screen. Can somebody else please provide feedback and let me know if this is happening to them too?
    This may be a problem with my browser because I’ve had this happen previously.

    Kudos

  54. Hey, I think your blog might be having browser compatibility
    issues. When I look at your blog site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other
    then that, awesome blog!

  55. Hello! I could have sworn I’ve been to this site before but after looking at a few of
    the posts I realized it’s new to me. Nonetheless, I’m
    definitely happy I found it and I’ll be book-marking
    it and checking back regularly!

  56. I am really inspired along with your writing talents as neatly as with
    the structure on your weblog. Is this a paid topic or did you modify it yourself?
    Anyway keep up the excellent quality writing, it’s rare to see a nice blog like this one
    these days..

  57. When I originally commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get several e-mails with the same
    comment. Is there any way you can remove me from that service?
    Appreciate it!

  58. I do accept as true with all of the concepts you have presented
    to your post. They are really convincing and can definitely
    work. Still, the posts are very brief for starters.
    Could you please lengthen them a little from subsequent time?
    Thanks for the post.

  59. fantastic submit, very informative. I ponder why the other specialists of this
    sector do not understand this. You should continue your writing.
    I am sure, you’ve a huge readers’ base already!

  60. Hello, i feel that i noticed you visited
    my website so i got here to go back the favor?.I am trying to find issues to improve
    my web site!I suppose its good enough to use some of your ideas!!

  61. Having read this I believed it was very informative.
    I appreciate you spending some time and energy to put this short article together.

    I once again find myself personally spending a significant amount of
    time both reading and commenting. But so what, it was
    still worthwhile!

  62. Have you ever thought about adding a little bit more than just your articles?

    I mean, what you say is fundamental and all. However imagine if you added some great photos
    or videos to give your posts more, “pop”! Your content is excellent
    but with images and video clips, this website could
    definitely be one of the most beneficial in its field.
    Amazing blog!

  63. You made some really good points there. I checked on the net for more
    info about the issue and found most individuals will
    go along with your views on this site.

  64. Hello there! I just wish to give you a huge thumbs up for your
    great information you’ve got here on this post. I’ll be returning to your site for more soon.

  65. This is very interesting, You’re a very professional blogger.
    I’ve joined your rss feed and look forward
    to searching for extra of your wonderful post. Also, I’ve shared your site in my social networks

  66. Nice post. I was checking continuously this blog and I’m impressed!
    Very helpful info specially the ultimate section 🙂 I take care of such information much.

    I was looking for this particular info for a very lengthy time.
    Thank you and best of luck.

Leave a reply

Please enter your comment!
Please enter your name here

Related Articles