Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked — Edited

How To Use Rc Esc As Motor Controller

I have made this thread because I use them (for about 4 months now in my robot) and I have noticed lots of people struggling with h-bridges. So I hope you all can use it and understand what I'm trying to tell. (THEY ARE EASIER!!)

What is an Rc ESC?
An Rc esc is a motorcontroller used in about every electric Rc Car/plane/boot and every other Rc vehicle in the rc world that is more advanced than your standard $5,- toy.
ESC stands for Electronic Speed Controller, it uses the same plug as your standard servo. And will work with the EZ-b.

User-inserted image

ESC types:
There are 2 types of ESCs, this is because there are 2 types of electric motors.
You have brushed and brushless motors.
The differance is that brushless motors last longer and provide greater speed. Brushless motors also have 3 wires to control it, this means that there is a special type of ESC for it. A brushless motor has 3 wires because it has 3 coils inside. They are also known as a three-phase inductionmotor (they are brushless because they generate a rotating magnetic field which makes the anker, the thingy that is attached to the axle of your motor rotate).

How they work:
ESC's for brushed motors puls of the maximum voltage to the motor, the faster the pulses the faster it will rotate.
ESC's for brushless motors work in a simular way but they let the brushless motor create a rotating magnetic field by powering 3 coils, The faster the field is rotating, the faster the axle will rotate.


User-inserted image


User-inserted image

NOTE: there is a third type of esc but this one exists within brushed and brushless ESCs. These ESCs are different because they make the motor rotatie only one way, these are mainly used for rc airplanes and helicopters (where only one way of rotation is required).

How to wire it:
Every esc has wires specified for the motor and the battery.
So with brushed motors you will have 4 wires, 2 for an electric motor and 2 for the battery, a servo plug and an on/off switch.
With brushless motors you will have 5 wires, 2 for battery and 3 for the motor and ofcourse a on/off switch and a servo plug.

So... Connect the red wire to the + pole of the motor and the same for the black wire. Same for the battery. There is almost noway to do this wrong! As usually one side of the ESC is for the battery and one side is for the motor and if not it will be written on it.
Yes it's soooo easy! Note: never mix up the battery with the motor, you might fry the esc.
Next up is connecting it to the EZ-b. And tadaaaa you have everything connected.

User-inserted image

How to use it in EZ-builder:
As an electric motor can rotate two ways (back and forth), the neutral stance will be the middle of a vertical/horizontal servo control in the EZ-builder. And that is 35, since the v13 update. To make the motor rotate move the bar up or down.
Note: it will not work automaticly with the modified servo panel. It does work with Movement Panel but then you will need scripts.

As we now have achieved to make it rotate you can also use it with the movement panel, for everyway of motion I have created scripts to slowly start it up and slow it down. As it will jump directly to the speed you have set. There are 5 scripts required for each direction if you want to use the modified servo panel.

Script (when using 2 esc):
servo(d0, 35)
servo(d1, 35)
servo(d0, 39)
servo(d1, 39)
servo(d0, 42)
servo(d1, 42)

If you notice that one of your set of wheels is rotating the otherway around, then deduct the amount that you are adding to the 35 of the 35 ( 40-35 = 5 --> 35-5= 30)

- Masive speed, up to 160mph (fastest Rc boat, I've seen, maybe even faster).
- Automatic lipo cut-off, this protects you lipo batteries from getting drained to far.
- Brushless motors
- Low prices.
- For every motor there exist an ESC.
- Most ESC's have an automatic BEC, BEC stands for Battery Eliminator Circuit, in the RC world the BEC is used to power the receiver(they usually give of 5v at 1 or 2 amps). In my experience with the EZ-b I have noticed that the batteries powering the EZ-b have lasted longer when I have my ESC's turned on, instead of off.

- You will need scripts to control them with a movement panel.
- There aren't as much ESCs for brushed motors as there are for brushless motors, because brushless are so much better (in the rc world though).
- They only work from a certain value to a certain value, when used like a servo in ez-builder.

Important things when using a ESC:
- Always power up the EZ-b before the ESC.
Most ESC's their neutral position is set buy the first signal they receive from the
object it's connected to. And here is where the config of the connect button comes in, you can use that to creat a boot sequence which would set your servo position to 35 ,which is the neutral position.
- Always turn of the ESC before the EZ-b, it can suddenly run of! If not, just do it, else you EZ-b wont turn off. This is because the BEC, BEC stands for battery elliminator circuit, when it's used in a rc car you don't want to carry batteries around,
so they came up with BEC you could then ditch the receiver battery and use the battery you use to power your electric motors.

How to pick an ESC:
ESCs are available in about every size up to 320A up, maybe even more.
ESCs are rated in Amps, so you first pick your motor and then the esc that matches it.

I have a 25A motor. Then you could buy a 25A ESC, but it could occour that you wheels or what ever get jammed and your motor could drain a bit more like 30A or more, this would fry my ESC... So I am choosing a 30A ESC for a tollerance of 5A.
You could choose a higher tollerance, thats up to you. Almost all ESCs are able to burst power for 5 sec and 1 sec. Ofcourse the 5 sec burst is less powerfull than the 1 sec.
In a burst they can double their output current, but briefly to prevent damage.
Note: An ESC can get very hot, for rc racing cars they have ESCs with a small fan on top of it. Also if you pick a higher tollerance, it will take longer to get hot or wont get hot at all.

Next thing you look at are the batteries for it.
They are displayed in the amount of battery cells or in voltage.
When displayed in cells there are 2 ways, for Lipo and nihm. Most of the times they are displayed both so users can stay within budget as Lipo batteries are expensive.

The lipo way:
1 lipo cell is 3,7 volt, this means 2 cells are 7,4 volt and so on.
They are displayed on the ESC like: 2s-3s or 2-3 lipos, this means it alteast requires a 2 cell or atleast 7.4 volt to work.

The nihm way:
1 nihm battery cell is 1,2 volt, this means that 2 cells are 2,4 volt.
On the ESC they are displayed like: 8s -12s or 8-12 nihm.

The difference between Lipo and Nihm:
Lipo batteries provide a larger amount of current per second than nihm batteries, this means you can go faster with Lipo batteries.

Things you look at when buying an ESC:
- Brushed or brushless, this compleetly depends on the motors you are using.
NEVER and I mean NEVER try to connect a brushed esc to a brushless motor or
viceversa!! Only if it is specified on the esc that you CAN use a brushed and brushless motor!
- Is it able to rotate 2 ways, it will be displayed as "reverse" if it's not displayed or you can't find it in the specs, contact the seller or try to find more information on that ESC.
- Does it have a auto cutt-off. This is VERY important when using Lipo batteries!
You can destroy your Lipo batteries if it doesn't have this function. This function will stop your motor when the voltage that the is supplying falls under a certain amount (the minimum per cell is 3v, lower than that and it will DIE!!) and it will drain only a ver small amount to keep the ESC alive. Also handle Lipos with care. They can explode or start a large fire.

How to pick batteries:
ESCs channel the voltage of the battery to the motor, so if your battery is 7,4 volt your motor wil receive 7.4 volt (not sure about the channeling part, I'll try to find out how that exactly works)

The lipo way:
Using the examle of 7.4v you will need a 2s lipo, but there is more.
A has 3 points of interrests:

First: the amount of cells (s). The more cells, the more voltage.

Second: the amount of energie stored inside (mAh). The more mAh the longer it'll last

Third: the amount of coulomb (C), those who know know what coulomb is
,but for those who don't know what it is. Coulomb = Amps per second. The more C the larger the amount of current per second that will go to your motor, this also means the more C you have the faster your battery will be empty (depending on the amount of mAh).

A forth point to always keep in mind: will it fit in your robot!

The Nihm way:
Still using the example of 7.4v.
When using nihm batteries you will never be able to get 7.4 volts, thats why it is written on the esc how much nihm cells you would need. Usually it's 6 cells or 7 to reach 7.2v or 8.4).
When buying nihm batteries you should look out for:

The amount of cells.
The amount of mAh, the more, the longer they last.
The size.

For now I think I have told everything you need to know if you want to use an ESC, how to control it, how to pick it and even how to pick batteries. If you have questions, just let me know. Also check out my robot, it uses ESC to power it's motors.

Dear budel0

Really I'm very glad for your prompt reply. I've attached another link above. And I'll tell you exactly what I would like to do. I need an ESC that can be used to reverse the direction of three phase BL motor which I'm using for flight purposes. So I'm not sure I can do that instantly I do not want to let the controller take some time for braking and then reversing the direction. This may cause damage for the system while fighting.

So, my questions exactly are:

Can I reverse the direction at once by RF transmitter?
I need an ESC suitable for 6s lipo and reversible, is it available?
What is the time should ESC take to transit from forward to reverse mode?

Thanks very much
Alkalla :) :)
You are indeed correct, the esc from HobbyKing can't handle a 6s lipo. I now know
that you are planning on using a 6s. The other one can. Looking through the
datasheet it says that you can reverse rotation direction, however it doesn't say if it
bidirectional then or just runs the other way. To be absolutly sure have to contact
the supplier and ask them if it can run bidirectionally.

The amount of time required to transit from forward to reverse mode really
depends on what you're accelerating. And by this I mean the mass, shape of
the object and other forces that are placed on it. It also depends on what motor
you're using. If your motor has a lot of torque you will be able to accelerate faster.
But keep in mind the faster you want something to accelerate/deccelerate the
more force put on motor and the object. So if the object is big and heavy and your
axle is thin, it will break if you accelerate too fast.
You can also implement a brake system if it's really necessary to change direction
fast with a large mass. You would then brake until the speed is 0 and then
accellerate in to the other direction to the required speed.

You can calculate most of the variables if you have a the required amount of
time in which you want to change direction and from which speed forwards to
which speed in reverse. With that information you can calculate the required
acceleration which you can use to calculate the angular acceleration.
Then you'll only need to calculate the moment of inertia and multiply that with
the angular acceleration to get the required torque. Based on the torque you
can select your motor or calculate if your motor is up to spec and combine it with
a fitting esc.
Thanks very much, I really appreciate your help. I'll contact the ESC company to ask for bidirectional rotation.
But, do you think ESC requires brake before reversing or it can change directly from forward to reverse mode? I think this may cause damage to the motor?
It really depends on your application, I have no idea on what you're trying to achieve
besides changing the rotation direction of a brushless motor using an esc powered
by a 6s lipo. I'll need more information about the application to give more advice.
What a great idea, i have a a few esc's lying around that i could use, awesome.:)