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

    Roi,

    as you can see in the following image, there are several kind of Firmata "versions" you can upload to your Arduino board. Depending on the one you choose you can use the same protocol to manage analog signals instead of PWM and so on.

    here are two links related to the protocol: image

    Firmata Messages : Outgoing | Devartia

    Firmata Messages : Incoming | Devartia 

     

    I suggest to try to upload the StandardFirmata version, sure excluding the Ethernet, Yun and Analog, Servo firmata as they are specific for features that you don't need. Then try it the communication works fine with the PC.

     

    Enrico

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

    Roi,

    as you can see in the following image, there are several kind of Firmata "versions" you can upload to your Arduino board. Depending on the one you choose you can use the same protocol to manage analog signals instead of PWM and so on.

    here are two links related to the protocol: image

    Firmata Messages : Outgoing | Devartia

    Firmata Messages : Incoming | Devartia 

     

    I suggest to try to upload the StandardFirmata version, sure excluding the Ethernet, Yun and Analog, Servo firmata as they are specific for features that you don't need. Then try it the communication works fine with the PC.

     

    Enrico

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

    Enrico,

    i'm very close - but not there yet.

    After uploading the StandardFirmata protocol to the Arduino - the PC software is finally connecting at 57600 Baud.

    But no matter what configuration i try on the Devo 7E TX side, the sliders on the PC software won't make the servo move - only the TX stick makes it move.

    i'v tried all the options in the 'PPM in' menu of the TX to no avail.

     

    Have you got any idea what i should do?

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

    I wrote :  I suggest to try to upload the StandardFirmata versionI

    This will be the first try I'll do. Continuing to exclude something very specific like Ethernet and Yun firmata version that will work with dedicated protocols, the fast tries you can do is to replace the standard firmata with the other version, maybe - as you have to move servos - from Firmata servo. Then if this continue to not working try the other remaining versions. At least we can exclude, if none won't work again, that it is not the firmata version you are using. If things goes well we are happy with minimum effort else we try to see in depth how this PC program work and what expect to receive from the Arduino board with firmata installed.

     

    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

    Sorry for not mentioning this - i'v tried all the Firmata protocols there are in my Firmata examples as well - Some of them won't enable the PC software to connect with the Arduino at all and some, like the StandardFirmata, will enable it to connect. But none will take control over the servo movement (while the TX stick does control it as mentioned). i suspect the problem is either in the way i used the 3.5mm stereo jack to connect to the Arduino or in the TX configuration menu.

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

    Ooops - my bad. image

     

    The correct Arduino sketch is already given in the download ZIP file at Richard's page. Everything is working nice for me now - besides the fact that the servos are a little bit wobbling and vibrating, when under the PC control and not vibrating at all, under the TX control.

     

    Do you have an idea what is the cause for this?

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

    Mmmmhhhh. I have not saw the sources of the PC side but I am tempted to think that this depends on the stability of the Arduino - supposing - PWM control. As in the article it is mentioned that they have used a modified version of the standard firmata, maybe a program error. But should be checked in depth what these changes do.

    As far as I know, Arduino is not the ultimate solution in the world, but I have used firmata to control servos and the response (with a modified Firmata to adapt to my needs) was almost good. But these are only suppositions, at this point a serious analysis of the sources is needed image

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
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