
budel0
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.
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.
Brushed:
Brushless:
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.
How to use it in ARC: 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 ARC. 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) sleep(50) servo(d0, 39) servo(d1, 39) sleep(50) 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)
Pros:
- 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.
Cons:
- 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 ARC .
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.
Example: 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.
Oh neverthought that brushless rc motors actually where 3-phase induction motors... I said it was for a thingy passing by because I once read it on a forum... Should have known better
, I even had a class about it... Last week... Oh well it might have been confusing because it was about AC-motors.
Lol another epiphany... It actually is an AC-motor
.
I'll edit the main text right away!
budel0 ok, thanks for the info, now all we want to use esc to motor control and we have a solution, you just have to make five script, with the advantage that we can make a smooth start in any direction as you have explained in your previous example. This is a great victory because the soft start reducers have fewer engine and can do different script for different speeds. excellent

I hooked up a brushless motor to the EZ-B last night. PHEW those things spin quick!!!! I used the ESC that was included with the motor kit.
@R2D2 For my own robot I made a turbo script that gently increases the speed to the max and slows it back down to "normal" speed when I release the button
. I sort of interlinked the five direction scripts together so that all stearing functions I would need are achieved.
@DJ jepp in the rc world people only want speed
, as do I
. To fix the problem of getting out of range I just stuck a netbook on top of my robot
I might also make a thread about rc brushless motors, on how to pick them and stuff.
Ah I'll do it right here... Already set my mind to it
.
It also fits together with ESC's.
Brushless motors... A brushless motor is a three-phase induction motor(also known as an AC motor), it uses an AC current to power 3 coils, these coils are powered one after another to create a rotating magnetic field. If you'd remove the anker(the axle part thingy) and put in a steel ball it will actually roll around in the motor against the wall!
AC motors which are used the machine industry are rated in Watts and in RPMs. With that data you can easly calculate the torque they will give of. Formula:
T= P/(2piN/60)
T= torque (N/m) P= Power (Watts) N= RPM
A nice fact to know is that if you lower the amount of RPMs you will increase the amount of torque. You can do this with gears, pulleys chains. And the ratio with what you decrease the RPMs by you increase the amount of torque by.
Short example: I have 1500 Watt 1000RPM motor, this means that I get 14N/m of torque this meas that at 1 meter I can exert a force of 14N, or at 1mm 14000N!
But as no one on this forum will ever have the need to spent $5000,- on a motor you wont be looking for AC motors.
So thats why there are rc brushless motors these are small AC motors which everone can afford! In the RC world brushless motors are rated in KV and ofcourse Amps and volts often the amount of Watts are also added (you can easly calulate the amout of watts by multiplying the Volt with the Amps). Weird right KV? Thats why I have examples so everone understands this which took me a few days to.
SO example: I have a 1500KV brushless 30A 11.1V. Now the hard part. The unit KV is used for rotations per minute per volt. So a 1500KV 11,1V motor will do 16650 RPM! Unloaded, when there is a load on it, it will be lower, because of the load...
Rc Brushless motor types: There are two types of brushless motors, you have inner runners and outer runners. The difference is the part of the motor that is rotating. I'm not sure which is better, all I know is that outer runners are often used in rc airplanes and helicopters. And that inner runners are more often used in rc cars and boats. It might have something to do with cooling, or that wires can get stuck in outerrunners when they are placed in small spaces with lots of hanging wires.
How to pick them: You could use the calculation I added to calcuclate how much torque you need or you could just pick one that you seem fit.
How to calculate: You esimate or weigh your robot multiply the weight with the gravitational exerleration (in my country 9,81 m/s easiest way is to pick 10m/s. Makes calculating without calculator easier). So what you now have is the amount of force your robot will generate while it's standing on the ground. Now you devide this number with the amount of wheels your robot has. This will give the force per wheel. Now multiply this number with the beam of your wheel. This will give the amount of Torque required per wheel. Now you have the data of that will not make your robot move! To atleast have movement or movement in a shorter time multiply the amount of torque by 2 or 3 maybe 4. This prevents your motor from easly stalling and it will give you a nice acceleration.
Example: I have a 6 wheeled robot that weighs about 4KG the wheels have a beam of 50mm (50mm = 0.05M) (I work with the metricsystem, way more logical that the imperialsystem:P) 4 * 9.81 = 39,24N 39,24 / 6 = 6,54N per motor 6,534*0,05= 0,327 N/m (torque per wheel) 0,327 *2 = 0,654 N/m (seems like nothing, but it's averige for small motors) I already chose for motors that do 500rpm on 6v with some gear reduction. So modifing the first formula to calculate Watts:
P= T * (2 * pi * N / 60) P= 0,654 * (2pi500/60) P= 34,2 Watt
So now I have the power it requires I can easly calculate the current.
P= U * I U=volt I= current
I= 34,2/ 6 = 5,7 A Now with all of this data you can pick a brushless motor and match an ESC with it!
Note: Always chose the values for the motor or ESC for which you calculated stuff higher that the values you calculated. ALWAYS keep tollerances!! A rod doesn't fit in a hole that has the exact same diameter!
@budel0
You can swap the bluetooth module with Xbee or synapse or what ever it's called. There is also WIFI too. A thread on here discusses it. That should fix your distance issue.
Man you wrote lots - very informative. I'm going to need a good sit down to read it all thoroughly
@DJ I first thought about doing that, but then I wanted to add a camera and then the problems started... If I would want a range of 100 meter or more... Then the camera I would want to use would be more powerfull than legally allowed without an "Amateur Transmitting licence"... The maximum transmitting power is 20mW in my country... So I figured I would use a reqular wired webcam and stick in a super cheap laptop/netbook or nettop. Eventually I found one for 40,-, which is like nothing for a complete functioning laptop, after some mods (keybord and battery were missing, also added a SSD) came on a nice price for a mini netbook that is resonably fast. So to sum everything up: I added a laptop so I could use it like a Xbee or synapse and transmit the signals via wifi or I could still bring a camera and when it's finished make it run autonomus without having the problem of ever running out of range from the computer. But as I'm not even close to finishing my robot I'll control it with a wireless joystick.
Oh and srry if I type infinitly long peices of text... It's sort of a habbit... I always try to add pictures
and make it more bareable to read
Using 4 brushless ESC in my project which has been in progress for nearly 3-4 months. DJ has been a great help in his firmware updates for helping with the project, and much more. I programmed it them through C# forms and the application has turned out nice with 4 different forms for the project.
@Orwnic82 Oh nice man, I wish I knew how to program C# code... But after a few attempts I figured I'll leave to the pros... Maybe when I find the tutorials/time/program manual for it... Oh got an idea! A "how to" for controlling Rc ESC's with C# code! Then we would cover everything one would need to know about controlling Rc ESC's with the EZ-b. It would help me
and everyone who wishes to control his robot with C# code and Rc ESC's. I think I'll give SDK and C# another shot... Someday...