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 2109 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
  • 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
  • roineust
    0 roineust over 9 years ago

    Thanks Enrico,

    i'll let you know the how, if i do manage to fix the vibration problem.

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

    Maybe you can show how the problem occur? When the servo is stopped, while running, in what position etc. It is more important than what you think image

     

    Some examples:

    TiltPan Micro Camera Arduino Shield is working now This is under exclusive Arduino control. It is a stop motion but I grant that position was almost stable and sure not vibrating

    TiltPan Software essentials ... and this is the Arduino software

     

    The following video instead is the version controlled by a MacBook PRO. Same architecture principle, arduino with modified firmata, custom controller board for servos (the shield mentioned in the previous articles) and a Java application on the Mac

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • 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

    Good idea,

    i'll try to describe in more details and maybe put a close-up video of the problem tomorrow.

    If this vibration problem reduces my quadcopter stability, this is a very serious problem for me. i'm hoping that maybe the quadcopter controller knows how to filter such kind of 'noise' ??

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

    Hello Enrico,

    Apparently it was only that specific servo, which was vibrating. Other servos are absolutely stable with the PC system, just as with the TX system.

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

    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 servos and all works fine we can consider the problem solved.

     

    BTW it's nice anyway if you spend few time to make some shooting to your project and publish them, maybe in an article in the Arduino section, why not?

     

    Cheers. Enrico

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

    Actually i think it is a good quality Savox servo, if you are aware of this brand by a chance - but one that i'v put through rigorous tasks, so maybe that is the reason for its flawed reactions. It is supposed to be a better brand than average, at least it appears so from the price of that servo.

    Regarding the project - i hope that in the very near future i will be able to share its details.

    • 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