# Can't satisfy DJI E300 ESC with my PWM signal [closed]

I'm trying to build a drone with my Raspberry Pi 3. I'm using Windows 10 IoT and C#.

I've bought a DJI E300 pack (motor + ESC + Propeller) and in the data sheet it says that the ESC works with signals in 30 to 450 Hertz. It also says that if you hear a single Beep on an interval (which I'm hearing) it means that the input signal is abnormal.

This is how I'm providing the signal:

public sealed partial class MainPage : Page
{
PwmPin motorPin;
PwmController pwmController;

public MainPage()
{
this.InitializeComponent();
Init();
}

public async void Init()
{
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}

pwmController = (await PwmController.GetControllersAsync(LightningPwmProvider.GetPwmProvider()))[1];
motorPin = pwmController.OpenPin(21);
pwmController.SetDesiredFrequency(50);
motorPin.SetActiveDutyCyclePercentage(0);
motorPin.Start();
}

private void M1_Slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
M1_Label.Text = \$"M1 ({e.NewValue})";
motorPin.SetActiveDutyCyclePercentage(((double)e.NewValue / 100.0));
}
}


First I used this code to dim a LED and it worked, so I know that the PWM is working fine. But I don't know what else is required for the ESC to work.

## closed as unclear what you're asking by Chris Stratton, JYelton, RoyC, StainlessSteelRat, Sparky256Aug 13 at 2:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• says that the ESC works with signals in 30 to 450 Hertz. So what frequency are you sending? – StainlessSteelRat Aug 10 at 1:36