-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADC improvement & fix #1314
Merged
1technophile
merged 7 commits into
1technophile:development
from
rds76:adc-improve-and-fix
Nov 10, 2022
Merged
ADC improvement & fix #1314
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1d15563
fix when ADC_DIVIDER is defined
rds76 6f0cf5f
publish at least every 1min
rds76 39b8d3f
define minimum pub adc interval
rds76 c838388
dummu 1st read & removed delay between reads
rds76 ad0faca
code format
rds76 b02bc1f
ups - strict codecheck
rds76 0d257d9
ws
rds76 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to average the accuracy without having a blocking
delay()
? I'm afraid about the impacts on the main loop and on other modules.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, its just 7ms per read so for recommended 10 reads its 70ms in total (still optional) and guess
delay
actually yields every ms. Btw check RFB, theres is delay in loop on sending as wellCurrently I'm running that (10 readings) with RF and DS1820 temp sensor with no issues so far...
Maybe we can short the delay to 1ms or remove it at all and also add one dummy analogRead as its recommended for 8266:
I'm afraid average values across loops adds another noise for already poor ADC in 8266 so better to read all in once