Skip to content

Carbon225/esp32-dshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published