Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 DSHOT

RMT implementation of the DSHOT protocol for ESP-IDF.

Installation

  • Make sure to enable C++ support in your IDF project.

  • Download the repository and place it in your <project_dir>/components/ folder.

Usage

  • Include the header file in your project: #include "DShotRMT.h"

  • Initialize the DShotRMT instance:

    DShotRMT esc;
    esc.install(DSHOT_GPIO, DSHOT_RMT_CHANNEL));
    esc.init();
  • Send velocity commands:

    for (;;) {
        esc.sendThrottle(throttle);
        vTaskDelay(1);
    }

    ! The ESC will disarm if you don't periodically send a throttle command !

  • Reverse the motor direction:

    esc.setReversed(true);

ESCs are very picky about arming/disarming. If you have trouble arming your ESCs, try the basic example.

About

DSHOT600 driver with command support for ESP-IDF

Topics

Resources

Stars

24 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages