KO
|
EN
gitlite — search
Search
#python
#nodejs
#java
#javascript
#android
#hacktoberfest
#cli
#django
#docker
#microservice
#game
#documentation
ESP32MotorControl
★ 49
Open GitHub ↗
Motor control using ESP32 MCPWM
Download README (.md)
Explore Similar Repositories
wakatime-dashboard
:
Wakatime Dashboard gets data from Gist
DeepMRI
:
The code for paper 'DeepcomplexMRI: Exploiting deep residual network for fast parallel MR imaging with complex convolution'
gitops
:
Managing Fleets of Kubernetes Clusters w/GitOps
xamarin
:
Presentations for building native mobile apps with .NET and Xamarin
yahoo-finance-d3fc
:
A complex financial chart built with D3 and d3fc
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
ESP32MotorControl
?
Download (.md)
# ESP32MotorControl Motor control using ESP32 MCPWM <a href="#releases"></a> <a href="https://github.com/JoaoLopesF/ESP32MotorControl/blob/master/LICENSE.txt"></a> ### A library to ESP32 control motors using MCPWM #### Works only with ESP32. ## Contents - [About](#about) - [Wishlist](#wishlist) - [Using](#usage) - [Releases](#releases) ## About This library is for control motors with MCPWM of ESP32 board. [ (from Espressif documentation) It is tested with [DRV8833](http://www.ti.com/lit/ds/symlink/drv8833.pdf) Dual H-Bridge Motor Driver, and can works with any controller with 4 input pinouts (AIN1, AIN2, BIN1 and BIN2) as DRV8825, A4988. Not yet working with 6 input pinouts controllers, as L298. ## Usage ###include ```cpp #include "ESP32MotorControl.h" // https://github.com/JoaoLopesF/ESP32MotorControl ``` ###instance - After #include, before setup ```cpp // MotorControl instance ESP32MotorControl MotorControl = ESP32MotorControl(); ``` ###setup - In the setup function ```cpp // Attach 2 motors MotorControl.attachMotors(MOTOR_GPIO_IN1, MOTOR_GPIO_IN2, MOTOR_GPIO_IN3, MOTOR_GPIO_IN4); ``` - To control the motors ```cpp // To stop all motors MotorControl.motorsStop(); // To control the motors MotorControl.motorForward(0, speed); MotorControl.motorReverse(0, speed); MotorControl.motorForward(1, speed); MotorControl.motorReverse(1, speed); // To get info about motors speed = getMotorSpeed(0); forward = isMotorForward(0); stopped = isMotorStopped(0); ``` ## Releases #### 0.1 - First Beta