Open
Conversation
- Calculation of distance: * Now includes a CALIBRATION_OFFSET that is beeing added and described in settings.h.example * Also the final distance is now an average of a buffer. The size is also added and described in settings.h.example - Some comments where added for usage with V2.0 of the board and also adjustments that are necessary for normal (not power saver) mode - Added config for ESP-WROOM-32 to platformio.ini
You should be aware, this breaks pretty everything of your formerly used setup. I removed the whole part of your board and replaced it so it works with ESP32. Also this will currently assume that you don't use a battery powered device. Maybe there should be a setting for that so we can switch this easily and support both modes.
Owner
|
Thanks for your contribution. I will try to review it in the near future. |
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.
Added some features:
Improves reliability of measurements and enables calibration if your sensor has a offset.
@RobinR1: Beware you may want to change back line 105 (I switched from low power mode to standard mode, because I have no need for low power in my application).