Analog input - internal "Oversampling"
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Analog input - internal "Oversampling"
I have some idea what this doing, but I can't find any documentation as to what it is actually doing. Would someone please point me in the right direction?
Friends with kangaroos and some time koala rescuer.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Analog input - internal "Oversampling"
Can you explain this more? I'm not following you.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Analog input - internal "Oversampling"
Oversampling typically means taking two or more samples and then determining the average or mean value of these.
I am just wondering how many samples and how quickly that are taken. I assume there must also be a processing time penalty involved.
I am just wondering how many samples and how quickly that are taken. I assume there must also be a processing time penalty involved.
Friends with kangaroos and some time koala rescuer.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Analog input - internal "Oversampling"
https://github.com/letscontrolit/ESPEas ... 02_ADC.ino
There's the source code. Haven't had the time to study it myself.
There's the source code. Haven't had the time to study it myself.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Analog input - internal "Oversampling"
According to the code linked, samples are taken every 100ms (roughly).It will use as many samples as fit within the configured delay.
As far as I can tell, if deep sleep is enabled it will only take one sample
As far as I can tell, if deep sleep is enabled it will only take one sample
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Analog input - internal "Oversampling"
Thank you. Very useful information, particularly regarding deep sleep enabled.
Friends with kangaroos and some time koala rescuer.
Re: Analog input - internal "Oversampling"
Actually the deep sleep information may not be relevant anymore. There has been a change to deep sleep handling yesterday. I am not really sure how/if oversampling is affected by it.
Who is online
Users browsing this forum: Ahrefs [Bot] and 77 guests