ESP-12f different analog inputs?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 21
- Joined: 21 Nov 2022, 07:40
ESP-12f different analog inputs?
Hi there,
trying to build a automatic filling of water at my heating added an analog pressure sensor to the analog input.
Surprisingly i have one with the expected range from 0 to 1023 steps and one (same type and firmware) with 0 to 4095 steps.
Any explanation for that?
Thomas
trying to build a automatic filling of water at my heating added an analog pressure sensor to the analog input.
Surprisingly i have one with the expected range from 0 to 1023 steps and one (same type and firmware) with 0 to 4095 steps.
Any explanation for that?
Thomas
You do not have the required permissions to view the files attached to this post.
-
- Normal user
- Posts: 4341
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: ESP-12f different analog inputs?
What build do you have installed on each ESP? Looking at the screenshot you seem to be using a VCC build, but that has the A0 input soft-wired to... VCC, just like the message states. Don't think you should use that build, pick the same build without VCC in the name.
/Ton (PayPal.me)
-
- Core team member
- Posts: 9921
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: ESP-12f different analog inputs?
Yep the _VCC builds for ESP8266 will internally connect the analog port to the VCC pin of the ESP and then output the value in a somewhat mV unit.
It will NOT measure the voltage supplied to the A0 pin for those _VCC builds.
It will NOT measure the voltage supplied to the A0 pin for those _VCC builds.
-
- Normal user
- Posts: 21
- Joined: 21 Nov 2022, 07:40
Re: ESP-12f different analog inputs?
My firmware and build:
Binary Filename:⋄ ESP_Easy_mega_20221122_normal_ESP8266_1M_VCC
Build Platform:⋄ Linux-5.15.0-1022-azure-x86_64-with-glibc2.31
So it seems, that i need another build.
What version do you recommend for using the analog input (0 to 1V)
Binary Filename:⋄ ESP_Easy_mega_20221122_normal_ESP8266_1M_VCC
Build Platform:⋄ Linux-5.15.0-1022-azure-x86_64-with-glibc2.31
So it seems, that i need another build.
What version do you recommend for using the analog input (0 to 1V)
-
- Core team member
- Posts: 9921
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: ESP-12f different analog inputs?
Anything without _VCC
And also your ESP has 4MB of flash, so better take a 4M build.
And perhaps a 7 months younger build may also be a good idea
And also your ESP has 4MB of flash, so better take a 4M build.
And perhaps a 7 months younger build may also be a good idea

-
- Normal user
- Posts: 21
- Joined: 21 Nov 2022, 07:40
Re: ESP-12f different analog inputs?
Well i tried the following and it works
Thanks
20230623 - Mega
System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ mega-20230623
Plugin Count:⋄ 47 [Normal]
Build Origin: GitHub Actions
Build Time:⋄ Jun 23 2023 21:26:47
Binary Filename:⋄ ESP_Easy_mega_20230623_normal_ESP8266_4M1M
Build Platform:⋄ Linux-5.15.0-1040-azure-x86_64-with-glibc2.35

Thanks
20230623 - Mega
System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ mega-20230623
Plugin Count:⋄ 47 [Normal]
Build Origin: GitHub Actions
Build Time:⋄ Jun 23 2023 21:26:47
Binary Filename:⋄ ESP_Easy_mega_20230623_normal_ESP8266_4M1M
Build Platform:⋄ Linux-5.15.0-1040-azure-x86_64-with-glibc2.35
-
- Normal user
- Posts: 4341
- Joined: 10 Jun 2018, 12:06
- Location: NL
-
- Core team member
- Posts: 9921
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: ESP-12f different analog inputs?
Great!
Welcome to your new addiction... ehh hobby
Welcome to your new addiction... ehh hobby

-
- Normal user
- Posts: 147
- Joined: 03 Nov 2022, 16:24
Re: ESP-12f different analog inputs?
What is the pressure sensor doing in your project actually? Are you using that to measure water level, or anything else? For measuring water level, float switches are best. Here is a LoRa remote water level and pump controller project. This one uses 3 float switches:
https://www.pcbway.com/project/sharepro ... 644fa.html
Float switches can be integrated with level control plugin:
https://espeasy.readthedocs.io/en/lates ... /P021.html
https://www.pcbway.com/project/sharepro ... 644fa.html
Float switches can be integrated with level control plugin:
https://espeasy.readthedocs.io/en/lates ... /P021.html
-
- Core team member
- Posts: 9921
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: ESP-12f different analog inputs?
Why are float switches better than a pressure sensor?
As far as I understand, those only give a discrete level indication.
This can be useful for battery powered 'alarm' setups like the LoRa controller you linked, as that one probably only needs to wake when some threshold is passed.
But I can imagine other use cases where a more analogue indicator could be useful.
As far as I understand, those only give a discrete level indication.
This can be useful for battery powered 'alarm' setups like the LoRa controller you linked, as that one probably only needs to wake when some threshold is passed.
But I can imagine other use cases where a more analogue indicator could be useful.
Who is online
Users browsing this forum: No registered users and 27 guests