Skip to content

Commit 945a316

Browse files
author
shashankmarch27
committed
final readme
1 parent db20e92 commit 945a316

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

Diff for: Docs/index.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ DriveMaster is a common library designed to simplify the implementation of RC pr
33

44
# Supported Protocol
55

6-
- [DShot300](#dshot300)
7-
- [DShot600](#dshot600)
6+
- [DShot](#dshot)
87

9-
## DShot300 {#dshot300}
8+
## DShot {#dshot}
109

11-
### Configuration
10+
### Frame Structure
11+
The DShot frame consists of 16 bits and follows a specific structure:
1212

13-
- Baud rate: 100000
14-
- Data bits: 8 Bits
15-
- Parity: Even Parity
16-
- Stop bits: 2 Stop bits
17-
- Signal polarity: Inverted
13+
- **Throttle**: 11 bits representing throttle values ranging from 48 to 2047.
14+
- **Telemetry Request**: 1 bit indicating whether telemetry data is requested.
15+
- **CRC**: 4 bits for error checking using a cyclic redundancy check.
1816

19-
## DShot600 {#dshot600}
17+
### DShot Versions and Bitrates
18+
Different versions of DShot support varying bitrates and durations for high and low signal times:
19+
20+
| DShot Version | Bitrate (bps) | T1H (µs) | T0H (µs) | Bit Length (µs) | Frame Length (µs) |
21+
|---------------|----------------|----------|----------|-----------------|-------------------|
22+
| DShot150 | 150,000 | 5.00 | 2.50 | 6.67 | 106.72 |
23+
| DShot300 | 300,000 | 2.50 | 1.25 | 3.33 | 53.28 |
24+
| DShot600 | 600,000 | 1.25 | 0.625 | 1.67 | 26.72 |
25+
| DShot1200 | 1,200,000 | 0.625 | 0.313 | 0.83 | 13.28 |
2026

21-
### Configuration
2227

23-
- Baud rate: 420000
24-
- Data bits: 8 Bits
25-
- Parity: No Parity
26-
- Stop bits: 1 Stop bits
27-
- Signal polarity: Uninverted
2828

2929
# Getting Started
3030
- [Installation](#installation)
3131
- [Tutorial](#tutorial)
3232
- [Examples](#example)
3333

34-
# Installation {#installation}
34+
## Installation {#installation}
3535

36-
## Arduino Installation
36+
### Arduino Installation
3737

3838
To use the DriveMaster library in your Arduino projects, follow these installation steps:
3939

@@ -43,16 +43,16 @@ To use the DriveMaster library in your Arduino projects, follow these installati
4343
4. Restart the Arduino IDE.
4444
5. You should now be able to include the DriveMaster library in your Arduino sketches.
4545

46-
## PlatformIO Installation
46+
### PlatformIO Installation
4747

4848
If you are using PlatformIO, you can install the DriveMaster library directly from the PlatformIO Library Manager. Add the following line to your `platformio.ini` file:
4949

5050
```ini
5151
lib_deps = Witty-Wizard/DriveMaster @ ^0.1.0
5252
```
53-
# Tutorial {#tutorial}
53+
## Tutorial {#tutorial}
5454

55-
## Using DriveMaster Library for Motor Control
55+
### Using DriveMaster Library for Motor Control
5656

5757
To control motors in your Arduino project using the DriveMaster library, follow these steps:
5858

@@ -90,10 +90,10 @@ motor->sendCommand(1000);
9090
motor->sendValue(512);
9191
```
9292
93-
# Examples {#example}
93+
## Examples {#example}
9494
95-
## DShot Example
96-
@include "../examples/basic_dshot/basic_dshot.ino"
95+
### DShot Example
96+
@include "./examples/basic_dshot/basic_dshot.ino"
9797
9898
# License
9999
This library is distributed under the GNU [General Public License version 3.0](https://www.gnu.org/licenses/gpl-3.0.html).

Diff for: examples/basic_dshot/basic_dshot.ino

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ void setup() {
1313
}
1414

1515
void loop() {
16-
// Example: Set motor speed to 50% duty cycle
1716
motor->sendValue(512);
1817
delay(1000); // Delay for 1 second
1918
}

0 commit comments

Comments
 (0)