element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Controlling your R/C transmitter from a PC using an Arduino
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 21 replies
  • Answers 14 answers
  • Subscribers 393 subscribers
  • Views 2111 views
  • Users 0 members are here
Related

Controlling your R/C transmitter from a PC using an Arduino

roineust
roineust over 9 years ago

Hello,

Here is a project i am trying to build:

https://www.min.at/prinz/?x=entry:entry130721-182227

 

The problem is that i understand Arduino scripting only at a very basic level.

 

My question is:

Should i upload the protocol code with all the hex addresses in it **as is** to the Arduino or is it only a protocol general description, from which one is supposed to build the Arduino code itself?

 

Since i only understand simple Arduino scripts and know almost nothing about hex addresses (besides the way they look)...is it complicated to build the Arduino code itself, from that protocol description? How should that be done?

 

Thanks.

  • Sign in to reply
  • Cancel

Top Replies

  • balearicdynamics
    balearicdynamics over 9 years ago in reply to roineust +2 suggested
    Roi, it's not the first time I find - especially with low cost "hobby" servos defective ones. Their cost is so low that it is not the worth to ask for replacing them So, I think that if you try with other…
  • balearicdynamics
    balearicdynamics over 9 years ago +1 suggested
    Hello as this is shown as the code (I took a fast look to the link you mentioned) I suppose that this is the code that should be uploaded "as-is". Obviously I expect that it works just with the specific…
  • clem57
    clem57 over 9 years ago +1 suggested
    Did you do a pull request at https://github.com/firmata/arduino/blob/master/examples/StandardFirmata/StandardFirmata.ino If not you may have gotten bad code. Clem
Parents
  • balearicdynamics
    0 balearicdynamics over 9 years ago

    Hello as this is shown as the code (I took a fast look to the link you mentioned) I suppose that this is the code that should be uploaded "as-is". Obviously I expect that it works just with the specific hardware and the exact connections, wires, circuitry etc as shown in the article. Anyway this will be a good starting point to see what happens then you can get some helpful hints here (here and there image ) to change the stuff as well to fit you specific needs (best if you explain exactly what differs in your project from this).

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • roineust
    0 roineust over 9 years ago in reply to balearicdynamics

    Thanks Enrico,

    My project almost differs at nothing from the project description - even the RC TX i'm using is the same model.

    That is good news for me, your estimation that this is a code that is ready for upload as is.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to roineust

    This project sounds interesting Roi, so it will be interesting if you document your setup so other users can see what happens. Then if some problem arise let us know image

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • roineust
    0 roineust over 9 years ago in reply to balearicdynamics

    Enrico,

    When trying to upload the code to Arduino i get the following error messages:

     

    Arduino: 1.6.2 (Windows 8.1), Board: "Arduino Uno"

     

     

    RC_to_Arduino.ino:2:1: error: 'Send' does not name a type

     

     

    RC_to_Arduino.ino:108:44: error: expected unqualified-id before '>' token

     

     

    RC_to_Arduino.ino:108:58: error: expected unqualified-id before numeric constant

     

     

    RC_to_Arduino.ino:116:44: error: expected unqualified-id before '>' token

     

     

    RC_to_Arduino.ino:116:58: error: expected unqualified-id before numeric constant

     

     

    Do you have any idea why this happens?

    As well, in my previous computer, the Arduino IDE used to mark-up the lines in which there is an error and now, it only shows the error messages at the bottom of the window, do you know how can i make it mark-up the error lines? I can't find such an option in the menu..

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to roineust

    SORRY !!!

     

    It was my mistake as I have not read in detail. Veeery sorry image  Then, it is an error of the author too as he put in a code source box (with comments in c-style) what is probably an output from the serial port.

     

    This was the bad news. instead the good news is that this project uses the Firmata protocol. This means that there is no code to write at all on the arduino. The firmata protocol is a source that is already present in the IDE and that should simply uplaoded to your Arduino. This convert the Arduino as a microcontroller able to receive commands and execute them with a specific protocol, usually connecting it to the serial. This means that you will use it as a machine and the only code needed are the commands that you send, in this case from the Pc.

     

    Take a look to the firmata protocol in arduino.cc, I have used it in one of my projects to control hardware from a Java application on the Mac. If you have difficult to follow the instruction uploading the protocol on the Arduino let me know, anyway it is just one of the examples you can simply upload to your board.

     

    I apologize for this mistake.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to roineust

    SORRY !!!

     

    It was my mistake as I have not read in detail. Veeery sorry image  Then, it is an error of the author too as he put in a code source box (with comments in c-style) what is probably an output from the serial port.

     

    This was the bad news. instead the good news is that this project uses the Firmata protocol. This means that there is no code to write at all on the arduino. The firmata protocol is a source that is already present in the IDE and that should simply uplaoded to your Arduino. This convert the Arduino as a microcontroller able to receive commands and execute them with a specific protocol, usually connecting it to the serial. This means that you will use it as a machine and the only code needed are the commands that you send, in this case from the Pc.

     

    Take a look to the firmata protocol in arduino.cc, I have used it in one of my projects to control hardware from a Java application on the Mac. If you have difficult to follow the instruction uploading the protocol on the Arduino let me know, anyway it is just one of the examples you can simply upload to your board.

     

    I apologize for this mistake.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

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 © 2025 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

  • X
  • Facebook
  • linkedin
  • YouTube