+ Reply to Thread
Results 1 to 6 of 6

Thread: ESCs and the Propeller

  1. #1

    Default ESCs and the Propeller

    I'm a member of a student engineering team, and we're working to build a quadcopter. Currently what we have set up is four Turnigy 2210A motors wired to four Turnigy AE-20A ESCs. Although two of the four ESCs shipped faulty, we still want to have the other two rotors spin for the sake of show at our presentation next week. We're having some trouble programming the ESCs though. I think a large part of our difficulty comes from our inexperience with the way that parts made for RC work (the entire team only has experience with rather basic digital electronics), so I figured it couldn't hurt to ask the community.

    The manual for the ESCs says that to enter the programming menu, you set the throttle to the full position (Does this not mean a constant stream of 1's?), and then connect the battery to the ESC. It should then make a sort of "ding-ding-ding ------- ding-ding-ding-ding-ding ----- warble-warble" set of sounds.

    Just giving the ESC a constant stream of 1's fails to make it entire into the programming menu. A stream of 101010101010 (equal frequency) makes it enter into programming mode, but if that is high, I don't know what the low throttle signal should look like.

    I guess my question is, if I'm trying to emulate the signals that a RC transmitter would send, what do the full throttle and low throttle signals look like?

    Attached is a picture of the current build just in case.Click image for larger version

Name:	WP_20130515_002.jpg
Views:	46
Size:	187.4 KB
ID:	101614

  2. #2

    Default Re: ESCs and the Propeller

    Hobby ESCs use the same control signals as servos. It would be a good idea to practice with a servo before using the ESCs. (You do not use a constant stream of ones.)

    When you say two of the ESCs shipped faulty, how do you know? Are you using a RC receiver to control them?

    I see a 9V battery in the picture. I hope you're not trying to power the ESCs (or servos) with it.

    What kind of Propeller board do you have? If it's a QuickStart, you could try out my QuickStart servo tester. You could use it to control both servos and ESCs.

    Edit: I see you're using a Propeller Project board. The 9V batteries concern me. Your ESC is very unlikely to work being powered by a one of those batteries. If you use multiple battery packs make sure they all share a common ground connection. Post #15 of my QuickStart servo tester thread has a very simple servo demo program. You may want to try it out.

    BTW, Full throttle is normally a 2000us pulse at 50Hz. Low throttle is usually a 1000us pulse at 50Hz. (Or reverse of what I just stated depending on the brand of equipment.)

  3. #3

    Default Re: ESCs and the Propeller

    Quote Originally Posted by Duane Degn
    Hobby ESCs use the same control signals as servos. It would be a good idea to practice with a servo before using the ESCs. (You do not use a constant stream of ones.)
    Alright, that's good to know. We worked with servos when we were attempting to use the Basic STAMP chip.

    Quote Originally Posted by Duane Degn
    When you say two of the ESCs shipped faulty, how do you know? Are you using a RC receiver to control them?
    The two faulty ESCs do not produced a tone when hooked up like the working two do.

    Quote Originally Posted by Duane Degn
    I see a 9V battery in the picture. I hope you're not trying to power the ESCs (or servos) with it.
    The 9V powers the Project Board, the motor battery is on the bottom of the frame, it might be hard to see.


    Quote Originally Posted by Duane Degn
    What kind of Propeller board do you have? If it's a QuickStart, you could try out my QuickStart servo tester. You could use it to control both servos and ESCs.
    Reading that, I see that there is a driver written for servos. I'll start getting familiar with it.

    Quote Originally Posted by Duane Degn
    Edit: I see you're using a Propeller Project board. The 9V batteries concern me. Your ESC is very unlikely to work being powered by a one of those batteries. If you use multiple battery packs make sure they all share a common ground connection. Post #15 of my QuickStart servo tester thread has a very simple servo demo program. You may want to try it out.
    Thanks for the tip about the grounds, I'll make that connection right away.


    Quote Originally Posted by Duane Degn
    BTW, Full throttle is normally a 2000us pulse at 50Hz. Low throttle is usually a 1000us pulse at 50Hz. (Or reverse of what I just stated depending on the brand of equipment.)
    I'll try these values with the servo driver in the propeller library

  4. #4

    Default Re: ESCs and the Propeller

    Quote Originally Posted by BTQuad View Post
    The two faulty ESCs do not produced a tone when hooked up like the working two do.
    Hooked up to what and how were they connected?

    The ESCs don't have a way of producing a tone on their own. They use the motors to produce the beeps (I was surprised when I was told this fact).

    I'm not sure it's really fair to call an ESC faulty without testing it with a working RC tx and rx system.

    What are you going to use as a controller?

    Has anyone on your team flown quadcopters or helicopters before? If not, you may want to get a small quadcopter or flight simulator to practice on. A flight simulator will pay for itself several times over in saved parts. I wish they had RC flight simulators when I started learning to fly RC aircraft.

  5. #5

    Default Re: ESCs and the Propeller

    Your best bet is to start with the Servo32 object that ships with the Prop tool. Output values min and max are 1000 and 2000, but a typical R/C signal is between 1100 and 1900, sometimes even less. Since ESCs are controlled by the same PWM signal type as a standard servo, when programming them you typically connect them to an R/C receiver and use the throttle stick on the transmitter to control the PWM output that goes to the ESCs. As Duane said, they must be connected to a motor in order to hear the beeps. They pulse one of the motor coils to move the motor and that acts as the speaker.

    Also, looking at your quad, you're going to have a bugger of a time controlling yaw. You need to mount the matching propellers diagonally opposite each other, and right now you appear to have them paired left to right. Yaw control is attained by speeding up the clockwise pair and slowing down the counter-clockwise pair, so if they aren't diagonally opposite each other, they'll impart a pitch or roll instead of a yaw.

    And what Duane says about a simulator or a practice quad is spot on. These things most certainly do not fly themselves without a LOT of work. If you're looking to make it autonomous you should have it well tethered until you're quite sure it works as expected. If you're making it to be piloted, get some practice first so you'll be able to handle it when it goes wrong.

  6. #6

    Default Re: ESCs and the Propeller

    Quote Originally Posted by JasonDorie View Post
    Also, looking at your quad, you're going to have a bugger of a time controlling yaw. You need to mount the matching propellers diagonally opposite each other, and right now you appear to have them paired left to right. Yaw control is attained by speeding up the clockwise pair and slowing down the counter-clockwise pair, so if they aren't diagonally opposite each other, they'll impart a pitch or roll instead of a yaw.
    Jason has a really good set of eyes. I had to enlarge the picture and study it carefully to see this.

    Ken Gracey
    | Parallax Semiconductor

    916-624-8333 office
    916-625-3010 direct at my desk

    kgracey@parallaxsemiconductor.com
    www.parallaxsemiconductor.com
    Follow me on Twitter




+ Reply to Thread

Similar Threads

  1. RC ESCs instead of an h-bridge.
    By rwgast_logicdesign in forum Robotics
    Replies: 12
    Last Post: 02-05-2013, 05:40 PM
  2. AppNote Content Input Request: Propeller to Propeller Communication
    By Ken Gracey in forum Propeller 1 Multicore
    Replies: 33
    Last Post: 01-25-2013, 01:38 PM
  3. Replies: 7
    Last Post: 04-07-2011, 12:36 AM
  4. Replies: 4
    Last Post: 08-05-2007, 11:59 PM
  5. STAMP, PSC and ESCs
    By Archiver in forum BASIC Stamps Archive
    Replies: 0
    Last Post: 05-04-2004, 08:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts