Not being able to use brushless motor

Hi i used the code below yesterday, and it worked but it is not working today

#include <Servo.h>
Servo ESC;

void setup()
{
  ESC.attach(8);  //Specify here the pin number on which the signal pin of ESC is connected.
  ESC.write(2);   //ESC arm command. ESCs won't start unless input speed is less during initialization.
  delay(3000);            //ESC initialization delay.
}

void loop()
{
  ESC.write(80);    //Vary this between 40-130 to change the speed of motor. Higher value, higher speed.
  delay(15);
}

i am using Arduino UNO, LI-PO battery 3S, 30A ESC and 2200KV brushless motor

Hello, do yourself a favour and please read How to get the best out of this forum and provide necessary documentation for your ask

Also don’t forget code tags….

my goal is to power up a brushless motor using arduino. i took this code from the net. it dosent seem to work. Can someone recommend another one or fix the code above.

Hi, @headless_knight
Welcome to the forum.

Can you please post a circuit diagram?
A hand drawn schematic will be fine, include power supplies, component names and pin labels.

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

You can't power much of anything with an Arduino. The +5 pin is to be used as an INPUT, NOT a power source for more than an led or two.
Add an EXTERNAL power source for the servo.

i am powering using a lipo battery

links to the data sheets please?

1 Like

Hi,
Thanks for the diagram.
Do you have a DMM to measure the batteries output voltage?

Tom... :smiley: :+1: :coffee: :australia:

i dont know what a DMM means

i dont have any data sheets, if u could explain how to make one, i could give it

➜ Digital Multimeter

i dont have that but i know the battery works because the ESC makes the arming up sound

A data sheet is made by the manufacturer of a component that lists all of the pertinent specifications and features of the product.

Here is an example of a motor data sheet.

You can try to find a datasheet for you motor and ESC by Googling the part number + "datasheet".

Assuming everything works, what should i do ? Even better can you recommend a code to power a brushless motor.

try this:
https://www.google.com/search?q=2200kv+brushless+motor+datasheet

Where did you get the parts? Can you post pictures of them especially with any labels?

I bought them on amazon

motor: Robotbanao A2212 BLDC 2200KV Brushless Motor - Yellow - For Airplane, Aircraft, Quadcopter, Helicopter - Pack of 1 : Amazon.in: Toys & Games

ESC: Techleads 30A Simonk Brushless Motor Speed Controller Rc Bec Esc For Quadcopter Plane Helicopter : Amazon.in: Toys & Games

Battery: Generic SKU340 Lipo Battery 2200mAh 35C 11.1V 3S : Amazon.in: Industrial & Scientific

XT60: XT60 Male To Deans T Connector Female Adapter RC Toys Lipo Battery Connector Adapter (PACK OF 1) by Indian Hobby Center : Amazon.in: Industrial & Scientific

Thats better; now did you get instructions with the ESC?

no, i just read the description of the ESC on amazon to see what it is compatible with

Hi,

This might help;
Simon instruction.pdf (126.4 KB)

Tom... :smiley: :+1: :coffee: :australia:

1 Like

this is all is great but how does it apply to me?