# 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.

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