VID6608: add hardware RMT support for Automotive gauge driver#24759
Merged
Conversation
…e `VID6608_RMT` option
* The RMT version is not supported on ESP32-C2, library excluded * Add more clear error message, if RMT is requested, but not supported
2a94354 to
7045c5d
Compare
Contributor
Author
|
During work on this patch i have found another issue: #24760 ; currently it is not possible to switch (via user-config-h) the WS2812b driver to non-RMT mode, which is used by default. |
Collaborator
|
This looks good to me. @arendst ok for merging? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Hey Folks, i would like to introduce my weekend project.
This PR updates the xdr-92 (the Automotive gauge stepper driver) for vid6608 chipset: add hardware acceleration for gauge drive using the ESP-32 Remote Control Transceiver (RMT). Feature can be enabled with the new
VID6608_RMTconfig option, default isfalse.Now driver has 3 modes:
arduino-vid6608library; Very slow, but works everywhere.arduino-vid6608library with FreeRTOS task; Moderate, works good on dual-core chips, works with issues on single-core chips (tested on ESP32C6).esp-32-vid6608-rmtlibrary; Best performance, but requires free RMT available.RMT driver notes
RMT driver gives really smooth movement, no glitches, even on weak chips. No
delay()function calls and minimum load on SoC.Full video: https://youtu.be/dASliRoJWo4
Looks like it conflicts with WS2812b driver with default configuration (and likely other drivers) on weak platforms with reduced feature set, so RMT is disabled by default and requires explicit config option.
Acceleration curve is much more complex to implement for RMT driver, this implementation has very small one (compare to software variant), i will try to improve it in the future.
Documentation update: tasmota/docs#1556
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass