Shop OBEX P1 Docs P2 Docs Learn Events
ESCs and the Propeller — Parallax Forums

ESCs and the Propeller

BTQuadBTQuad Posts: 2
edited 2013-05-16 15:07 in Robotics
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.
WP_20130515_002.jpg
1024 x 1819 - 187K

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-05-15 19:57
    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.)
  • BTQuadBTQuad Posts: 2
    edited 2013-05-16 00:08
    Duane Degn wrote:
    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.
    Duane Degn wrote:
    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.
    Duane Degn wrote:
    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.

    Duane Degn wrote:
    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.
    Duane Degn wrote:
    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.

    Duane Degn wrote:
    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
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-05-16 05:53
    BTQuad wrote: »
    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.
  • JasonDorieJasonDorie Posts: 1,930
    edited 2013-05-16 14:56
    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.
  • Ken GraceyKen Gracey Posts: 7,387
    edited 2013-05-16 15:07
    JasonDorie wrote: »
    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.
Sign In or Register to comment.