element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Arduino
  • Products
  • More
Arduino
Arduino Forum arduino ir control
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Arduino requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 87 subscribers
  • Views 199 views
  • Users 0 members are here
  • help
Related

arduino ir control

Former Member
Former Member over 6 years ago

i need help trying to figure out how to send ir packet to an rc helicopter that i am trying to hack. i have used a logic analyzer to figure out the 32 bit binary signal that encodes for each heli function... i am stuck on how to send these via the arduino .. my goal is to send a preprogrammed flight plan to the heli and have it fly autonomously ... how do i code for this??? pleeease help me

  • Reply
  • Cancel
  • Cancel
Parents
  • balearicdynamics
    0 balearicdynamics over 6 years ago

    There is a good Arduino IR library supporting both the send and receive features to control anything. I have already used it and you can setup a circuit very simple.

     

    The problem I met is that this library support almost all the IR TV controller so I had to become a bit crazy setting the right protocol and reducing the range, due a too big program with most of the features absolutely unused. I suggest, after finding what is the protocol adopted by your device, to remove or at least comment the others.

     

    You find the GitHub IRRemot code original library here: https://github.com/shirriff/Arduino-IRremote

     

    I suggest you use it without any other code but with one of the provided examples to self-detect the communication protocol (try also with a TV IR remote controller to see what's happens). Then if you need specific help as you discover that your device uses a different protocol let me know. I have already done a modified library to control a product.

     

    Enrico

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Reply
  • balearicdynamics
    0 balearicdynamics over 6 years ago

    There is a good Arduino IR library supporting both the send and receive features to control anything. I have already used it and you can setup a circuit very simple.

     

    The problem I met is that this library support almost all the IR TV controller so I had to become a bit crazy setting the right protocol and reducing the range, due a too big program with most of the features absolutely unused. I suggest, after finding what is the protocol adopted by your device, to remove or at least comment the others.

     

    You find the GitHub IRRemot code original library here: https://github.com/shirriff/Arduino-IRremote

     

    I suggest you use it without any other code but with one of the provided examples to self-detect the communication protocol (try also with a TV IR remote controller to see what's happens). Then if you need specific help as you discover that your device uses a different protocol let me know. I have already done a modified library to control a product.

     

    Enrico

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 6 years ago in reply to balearicdynamics

    Thanks for your reply, there is only one problem which is that the helicopter requires a continuous stream data .. do you think that would be possible

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 6 years ago in reply to Former Member

    Frankly I don't know in terms of hardware reliability but by the point of view of the software, I suggested just this solution because it is interrupt-driven. This means that as much as you kepp the signal frequence, as much you generate the IR data flow. Thus this is controlled by the hardware IRQ so your loop in theory will continue cycling with the control functions for autopilot.

    I am not so sure that the hardware really saves so much time between an IRQ call and the other loop features, so it depends on the kind of other things the program will do.

     

    The right approach in my vision is a interrupt driver IR driver integrated with the auto-pilot features taking in account when an immediate reactivity should be done. As a matter of fact, the auto-pilot process is a sort of macro that feeds continuously the IR controller, on request by the IR manager library. In this way, the IR IRQ control is not penalised.

     

    What I suggest - as it sounds obvious and I have also experimented personally - is to avoid tasks like LCD display or serial updates in a production version of the program because these kind of tasks slowdown the entire program due to the low speed of the peripherals.

     

    Enrico

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • peteroakes
    0 peteroakes over 6 years ago in reply to Former Member

    Basically, no

     

    it could be possible with very limited range and indoors so the IR signal can bounce arround the room and improve chance of getting to the copter.

     

    put it this way, how accurate is your TV remote control and how close do you need to be and in the right direction for it to work, this is no different

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube