Skip to content

Commit

Permalink
add timing duration in troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
mwood77 authored May 17, 2024
1 parent 7e4c4ff commit 8fca762
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/install-software.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ Ok, you've got 2 LEDs illuminated on your board. Great! Let's make sure the code
> [!WARNING]
> PWM_MOTOR_CONTROL is an experimental flag. You will encounter incorrect cycle time estimation and other possible bugs unless you align the motor speed to **20 RPM**.
The default speed is `145` (8-bit resolution), where `0` is the slowest and `255` is the fastest.

You can modify this value here:
- [`MotorControl.cpp`](../src/platformio/osww-server/src/utils/MotorControl.cpp#L7)
- Change the value for the variable `motorSpeed` to any value between `0` and `255`
- After changing that value, you must recompile the software and upload it to your ESP32
- The default speed is `145` (8-bit resolution), where `0` is the slowest and `255` is the fastest. You can modify this value here:
- [`MotorControl.cpp`](../src/platformio/osww-server/src/utils/MotorControl.cpp#L7)
- Change the value for the variable `motorSpeed` to any value between `0` and `255`
- After changing that value, you must recompile the software and upload it to your ESP32
- You can also tweak the rotational timing value. By default this is set at 8 seconds to complete one revolution.
- To change this value, change the variable `durationInSecondsToCompleteOneRevolution` here:
- (`main.cpp`)[../src/platformio/osww-server/src/main.cpp#L38]

0 comments on commit 8fca762

Please sign in to comment.