Wednesday, July 24, 2013

PPM Output (Draft - Looking for testers)

If we have code capable of generating servo signals its very simple to adapt this to generate a PPM output instead.

In a previous post we looked at reading an incoming PPM signal and we saw how the PPM Signal describes the individual servo pulses -
http://rcarduino.blogspot.ae/2012/11/how-to-read-rc-receiver-ppm-stream.html

To generate the PPM Stream from a set of servo commands all we need to do is change our code to toggle a single pin instead of individual pins for each servo.


If we look at the point where the channel 1 pulse ends and the channel 2 pulse starts in the diagram above. The code needs to find which pin is associated with the current chanel, then set the pin low to end the pulse. It then finds the next channel, sets its pin high and then sets the timer compare register so that a interrupt routine will be called again when its time to end the new channels pulse and start the next channels pulse.

To output PPM its actually a lot simpler. We are always dealing with the same pin so all we need to do is set the pin high, set the compare register so that the interrupt is called again to when we need start the next channel pulse and then we immediately set the PPM pin low again and exit. Systems which expect a PPM Input are only interested in the rising edge of the PPM Pulse so once we have set it high (giving the external system the rising pulse edge it is looking for) we can immediately set it low again and get out.

Timers, Compare Registers, Service Routines

The following posts provide an indepth background to how the standard Arduino Servo library uses timers, compare registers and interrupt service routines to control upto 12 Servos. The RCArduinoFastLib uses the same approach with a number of optimizations including support for more servos, faster refresh rates, dual refresh rates and reading incoming PPM signals. The remainder of this post presents a small modification of the RCArduinoFastLib which will provide a PPM output instead of individual servo channels.

Background posts
Standard Arduino servo library overview
http://rcarduino.blogspot.ae/2012/01/can-i-control-more-than-x-servos-with.html

RCArduinoFastLib
http://rcarduino.blogspot.ae/2012/11/how-to-read-rc-channels-rcarduinofastlib.html
http://rcarduino.blogspot.ae/2012/11/how-to-read-rc-receiver-ppm-stream.html

The Modified RCArduinoFastLib with PPM Output
Looking for testers, PM me Duane B on the Arduino forum for a zip folder to build the library and test sketch.





37 comments:

  1. Very interested in the library. Tried to reach you via Arduino forum with no luck. Could you check your account or contact me at laborenz-at-gmail.com
    THX a lot, Kai

    ReplyDelete
  2. Sent, let me know that you have received it.

    Duane.

    ReplyDelete
  3. Got it! Thanks. Will test it asap...

    ReplyDelete
  4. Duane,

    sent pm at arduino forum, but posting here just in case... also interested in trying out your library. contact info: timsenecal(at)comcast.net

    thanks

    Tim Senecal

    ReplyDelete
  5. Duane,

    I also forwarded you request via PM on the Arduino forums to test your new modified library.

    Does the PPM output modification change the entire functionality of the library or is it additional functionality to the original posted RCArduinoFastLib library?

    Thank You

    ReplyDelete
    Replies
    1. You should be able to download a zip here - https://drive.google.com/file/d/0B8WjAvuO3LnIQm5XQ1NwM3o5bTA/view?usp=sharing

      Duane.

      Delete
    2. Its basically the same library but instead of toggling lots of different pins to drive individual servo channels, it toggles a single pin to generate PWM. Apart from the pin toggling, its the same code.

      Duane

      Delete
  6. Hi Duane - very impressed by your Arduino RC work here. I've used a Duinotech compatible UNO and been able to interface my JRPROPO 6-channel XP662 TX and R700 RX such that I can read all 6 channels from the PPM stream. However I am most interested in getting the UNO to produce its own PPM output stream but after trying many things I've been unable to generate any PPM stream output. I see that some time has passed since you last posted on this.Are you still interested in PPM stream output? I'm available to help as required. Thanks!

    ReplyDelete
  7. Solved! Hi Duane, based on your Fast Servo library, I now have a Uno and a Mega 2560 which can generate a 6 channel Buddy Box signal - also known as Trainer or Direct Servo Control (DSC) signal. Check out my explanation / tutorial at: https://www.youtube.com/watch?v=ZyXZ_XSHgVo

    ReplyDelete
    Replies
    1. Can you post your code on github or Google drive?

      Delete
  8. Hello Duane .
    I keep looking and do not find anything as I wish . Your projects are the closest to what I seek . Any idea, can be as exiting the Arduino to have PWM signal and no servo or ESC ? I like the RC transmitter to control DC motors .

    Thank you.

    ReplyDelete
  9. If you want your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you need to watch this video
    right away...

    (VIDEO) Get your ex back with TEXT messages?

    ReplyDelete
  10. Thanks Great Post. We are professional, delivering a world-class moving, relocation, removal, and storage solutions at highly competitive market prices in Dubai-UAE.
    movers in dubai
    best movers in dubai
    best movers and packers in dubai
    Cheap in dubai
    office movers in dubai

    ReplyDelete
  11. Thanks Great Post. We are professional, delivering a world-class moving, relocation, removal, and storage solutions at highly competitive market prices in Dubai-UAE.movers in dubai, best movers in dubai, best movers and packers in dubai, Cheap movers in dubai, office movers in dubai. Respond in 24 hours, Phone: +971-526062215 East West Mover company that offers local movers, residential, commercial and worldwide moving services.

    ReplyDelete
  12. I was watching this video on youtube, a door unlocker using knocks, the arduino reas your knocks and compares, if its a match , it opens the door!

    ReplyDelete
  13. Power Suggest Pro is a highly acclaimed keyword and market research tool which has received numerous positive reviews from internet entrepreneurs and marketers who have found the software to be powerful yet extremely easy-to-use and more importantly, a valuable tool for their businesses. Read more here - https://www.powersuggestpro.com/hfy748

    ReplyDelete
  14. Gulf movers and packers provide Gulf Movers in Dubai and on time Relocation Services in Dubai services with professional 6 years moving Experience. We are best Best Packers and Movers with Local moving services Throughout UAE. Gulf Movers are among the Best Best Moving Companies in Dubai with quick and fast service. We also offer the reliable Movers and Packers in Dubai. For More details you can check our website http://www.gulfexpress.ae/


    Gulf Movers and Packers are the best Cheap Movers in Dubai and which gives on time Local Moving Companies services with professional 6 years moving Experience. We are the best Dubai Movers and Packers with Local moving services Throughout UAE. Gulf Movers are among the Best Moving Companies which provides Best International Movers in Dubai services with quick and fast response. We also offer the reliable Storage Companies in Dubai. We are the best Office Relocation Dubai with Local moving services Throughout UAE. For More details you can check our website http://www.gulfexpress.ae/

    ReplyDelete
  15. If you're looking to burn fat then you certainly have to jump on this brand new personalized keto meal plan.

    To create this keto diet service, licensed nutritionists, fitness trainers, and professional cooks have joined together to produce keto meal plans that are effective, painless, economically-efficient, and delicious.

    From their grand opening in early 2019, 1000's of individuals have already remodeled their figure and health with the benefits a certified keto meal plan can offer.

    Speaking of benefits: clicking this link, you'll discover eight scientifically-certified ones given by the keto meal plan.

    ReplyDelete
  16. If you are looking for the Finance Accounting Assignments help then in this case you can opt for our Finance Accounting Assignments help.we provide the best Accounting and Finance Assignment.We also provide Financial Services Online Essay Help for students across the globe. for more information contact us +16692714848.

    ReplyDelete
  17. Get Packers and Movers Jaipur List of Top Reliable, 100% Affordable, Verified and Secured Service Provider. Get Free ###Packers and Movers Jaipur Price Quotation instantly and Save Cost and Time. Packers and Movers Jaipur ✔✔✔Reviews and Compare Charges for household Shifting, Home/Office Relocation, ***Car Transportation, Pet Relocation, Bike SHifting @ Packers And Movers Jaipur

    ReplyDelete
  18. Hire Best Packers And Movers Mumbai for hassle-free Household Shifting, ***Office Relocation, ###Car Transporation, Loading Unloading, packing Unpacking at affordable ✔✔✔Price Quotation. Top Rated, Safe and Secure Service Providers who can help you with 24x7 and make sure a Untroubled Relocation Services at Cheapest/Lowest Rate @ Packers and Movers Mumbai

    ReplyDelete
  19. It’s a fact that your blog posts are so unique and interesting and I enjoy a lot while reading your posts because you explained your post very deeply in a very easy and clear language.

    ReplyDelete
  20. I am offering coupons and deals of amazing and famous brands and various products. You can buy any products for your any need through discounted prices from Netrockdeals. Not only that, you can also earn extra cashback. So start shopping and save incredible amount of money.
    coolwinks offer
    lenskart offers
    makemytrip offers
    goibibo offers
    FreshToHome Coupons
    healthkart coupon
    nike sale
    pepperfry coupon
    Ferns And Petals Coupon
    A2 Hosting coupons

    ReplyDelete
  21. Get amazing deals and offers via netrockdeals and save big money while shopping your heart out. Shop your favorite products from your preferred brands and even avail mind blowing cashback deals.
    flipkart offers
    swiggy coupons
    zomato coupons
    myprotein discount code
    zoomcar offers
    hotels.com coupons
    samsung coupon code
    tata cliq offers
    oneplus coupons

    ReplyDelete
  22. Awesome Article! Thanks for sharing this types of article is very helpful for us! If you looking for car removal services than contact any time for Quotes. Our services are:

    Cash for Car in Alexandra Hills
    Cash for cars Bald Hills
    Cash for Car Balmoral
    Free Car Removal Service in Alexandra Hills
    Free Car Removal Service in Bald Hills
    Free Car Removal Service in Balmoral

    ReplyDelete
  23. I have tried to work on Arduino forum but got failed any leads pal?? embroidery digitizing usa

    ReplyDelete
  24. If you need assignment related help then contact to GoAssignmentHelp.com. Our online experts can help in your online assignment writing on various subjects like mathematics, law, marketing, accounts, project management, chemistry, economics, statistics, nursing assignment help and many more, as they achieve high expertise on these subjects. We do everything we can to ensure our customers get their assignments written on time and done in the appropriate way. The great number of returning customers proves the fact that our writing company is worth your attention as well. It is best to only rely on verified services like ours. You can once try our amazing college assignment help service, as it open for all. Whether you are a Ph.D. scholar or college students, our experienced writing service has skilled team members providing help quickly to ensure deadlines are met. We do what your professor wants. So, make your first order today and, you are welcome to GoAssignmentHelp.com and more information about capstone project help please visit our website.

    ReplyDelete
  25. It is really helpful for readers who are looking for online assignment help. I also work in the same area and provide assignment help to students for various subjects. Most of my students are from parts of the UK, USA, India, and Singapore. Our team of professors are from reputed Colleges. Visit our website to know our areas of expertise and let us know if we can be of help. Also Read:
    how many pages is 1000 words,
    how many pages is 2000 words,
    how many pages is 1500 words,
    about us
    informative speech subjects.

    ReplyDelete
  26. Thank you for sharing the useful post. A reader got a lot of information from this post and utilized it in their research. I also provide independent support for the outlook email. So if you are facing issues with the outlook account then contact me for outlook email support.
    Also Read: Outlook not connecting to server | Outlook send receive error | Why my Outlook email is not working?

    ReplyDelete
  27. Look no further for Assignment Help in Canada, as we have experienced professionals who can craft your content in no time. We deliver authentic assignments that are written from scratch by gathering relevant information from reliable sources.

    ReplyDelete