Problem relating firmware version and soil sensor installation

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
momo3000
Normal user
Posts: 13
Joined: 24 Jun 2020, 20:30

Problem relating firmware version and soil sensor installation

#1 Post by momo3000 » 02 Jul 2020, 18:43

Hallo,
i think i have got a problem relating firmware. I can' t install normal firmware for my esp32. I am configuring a soil sensor, following this youtube video https://www.youtube.com/watch?v=oty_kwsHpo4&t=410s. I tryed with different kind of soil sensor but i have got ever the same problem, i can't read nothing, ever the same result (zero). So i think that could be a problem relating the firware. i see that in the video he uses a normal version of firmware. I am tryng to installa a normal version for my esp32, but i can't find the file factory.bin for normal installation. How i can do this? any suggestion?

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem relating firmware version and soil sensor installation

#2 Post by TD-er » 02 Jul 2020, 20:52

The "test" build has all included in the "normal" build + some extra plugins.
Since the partition for the bin file on the ESP32 is larger than the one on the ESP8266, there is no need for a "normal build" for ESP32.

Can you give a schematic drawing how the sensor is connected to the ESP?

momo3000
Normal user
Posts: 13
Joined: 24 Jun 2020, 20:30

Re: Problem relating firmware version and soil sensor installation

#3 Post by momo3000 » 02 Jul 2020, 22:50

MainBoard is: Esp32-wroom-32
Firmaware is: ESP_Easy_mega_20200608_test_ESP32-wrover-kit_4M316k
The soil sensor is: https://www.amazon.it/iHaospace-Capacit ... 62&sr=1-15
PIN Connection:
1-GND to GND
2-vcc to 3V3
3-aout to GPIO13

this is the screenshot of DEVICES menu

2020-07-02 (4).png
2020-07-02 (4).png (150.52 KiB) Viewed 7399 times
2020-07-02 (3).png
2020-07-02 (3).png (148.73 KiB) Viewed 7399 times
2020-07-02 (7).png
2020-07-02 (7).png (164.06 KiB) Viewed 7399 times

serial monitor
2020-07-02 (3).png
2020-07-02 (3).png (148.73 KiB) Viewed 7399 times
Attachments
2020-07-02 (9).png
2020-07-02 (9).png (179.88 KiB) Viewed 7398 times

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem relating firmware version and soil sensor installation

#4 Post by TD-er » 02 Jul 2020, 22:55

Why the WROVER kit build?
That one is meant for a board which I dare to say you probably don't have.

Why not the "standard" ESP32 build?

Also don't use a GPIO pin on the ESP32 which is connected to ADC2.
ADC2 cannot be used when you also use WiFi. See: https://docs.espressif.com/projects/esp ... s/adc.html

As a matter of fact, I'm quite surprised I don't see a warning for this fact in the screenshots you show as I'm quite sure I planned to add those warnings... somewhere.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Problem relating firmware version and soil sensor installation

#5 Post by mrwee » 02 Jul 2020, 23:03

momo3000 wrote: 02 Jul 2020, 22:50 PIN Connection:
1-GND to GND
2-vcc to 3V3
3-aout to GPIO13
Just a hint from my experience. I couldn't get stable readings out of this sensor when using 3.3V. I had to use 5V supply. I adjusted the voltage devider on my ESP8266 accordingly.

momo3000
Normal user
Posts: 13
Joined: 24 Jun 2020, 20:30

Re: Problem relating firmware version and soil sensor installation

#6 Post by momo3000 » 02 Jul 2020, 23:26

now i am using this firmware: ESP_Easy_mega_20200608_test_ESP32_4M316k - is it the normal?
which pin i have to use on my esp32 board?

https://docs.platformio.org/en/latest/_ ... pinout.jpg

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem relating firmware version and soil sensor installation

#7 Post by TD-er » 03 Jul 2020, 00:14

As you can see in your own screenshot, just pick a pin which is labelled "ADC-1" in the screenshot.

GPIO 32 ... 39 can be used and not conflicting with the WiFi operations.

momo3000
Normal user
Posts: 13
Joined: 24 Jun 2020, 20:30

Re: Problem relating firmware version and soil sensor installation

#8 Post by momo3000 » 03 Jul 2020, 00:35

ok, gpio 36, now i receive a number that i don't know what is it :D
2020-07-03 (2).png
2020-07-03 (2).png (129.26 KiB) Viewed 7380 times
2020-07-03 (2).png
2020-07-03 (2).png (129.26 KiB) Viewed 7380 times
Attachments
2020-07-03 (5).png
2020-07-03 (5).png (122.18 KiB) Viewed 7380 times

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem relating firmware version and soil sensor installation

#9 Post by TD-er » 03 Jul 2020, 01:13

So now you're reading an analog value.
Either you determine 2 points for the calibration, or you use the raw values.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 109 guests