Search found 10 matches

by Wicked
Wed Jun 30, 2021 8:56 am
Forum: ESP32 Arduino
Topic: Reading analog values from a light sensor
Replies: 2
Views: 3791

Re: Reading analog values from a light sensor

Well, I just connected the sensor and used analogRead to see what values I get. I get values around 40-50 when the sensor is exposed to room light, and if I put my hand 10cm above it, it reads 0 (??). When I use my phone light (torch) to shine on the sensor , it reads anywhere between 50 and 1000 , ...
by Wicked
Tue Jun 29, 2021 4:25 pm
Forum: ESP32 Arduino
Topic: Reading analog values from a light sensor
Replies: 2
Views: 3791

Reading analog values from a light sensor

Hello! I have a light sensor, TEMT6000, and I want to read its values and convert them in lux, because the sensor measures illuminance. Circuit of the sensor: https://i.imgur.com/fnR6a40.jpg I'm a bit confuse on how I should set up my ADC pin ( using the adc.h library ) to read the values, and also ...
by Wicked
Thu Jun 17, 2021 6:27 am
Forum: General Discussion
Topic: GPIO max input/output current
Replies: 4
Views: 15617

Re: GPIO max input/output current

You can source 40mA from these pins at max, but you may need to tweak the drive pins to obtain this. (The 12mA number is for the 8266, but that was in the datasheet for the ESP32 for a while as well as it took us some time to obtain the final figures for this.) Thank you for the fast reply ! Im try...
by Wicked
Wed Jun 16, 2021 8:28 am
Forum: General Discussion
Topic: GPIO max input/output current
Replies: 4
Views: 15617

GPIO max input/output current

Hi ! I have an ESP32 WROOM 32 and I'm a bit confused on what is the maximum current a GPIO can output or take in ? I've read different articles that say either 12mA or 40mA . The datasheet doesnt help much either. PS: I'm using a relay that needs 15 mA to activate so that's why im wondering. I also ...
by Wicked
Mon Jun 14, 2021 3:04 pm
Forum: General Discussion
Topic: ADC2 / Wifi concern
Replies: 2
Views: 2766

Re: ADC2 / Wifi concern

WiFive wrote:
Mon Jun 14, 2021 2:04 pm
Yes digital works
Thanks for the fast answer !
by Wicked
Mon Jun 14, 2021 2:01 pm
Forum: Hardware
Topic: Soil Moisture Sensor with ESP32 Lolin32
Replies: 8
Views: 7605

Re: Soil Moisture Sensor with ESP32 Lolin32

If the supply.voltage is 3.3v it (most likely) won't output any higher than that. Separate parts of the system, figure out what isn't working. Can you use a multimeter or oscilloscope to read the analog voltage of the soil moisture sensor? Can you put an intermediate 0-3.3v on the ADC pin and read ...
by Wicked
Mon Jun 14, 2021 2:00 pm
Forum: General Discussion
Topic: ADC2 / Wifi concern
Replies: 2
Views: 2766

ADC2 / Wifi concern

Hi ! I'm using an ESP32 with multiple sensors and I'm planning on interfacing the data with Blynk. Reading and researching, I found out that I cant use ADC2 if I plan to also use Wifi with the board. My question is : I cant use them as analog inputs only? Can I use them as , let's say, digital input...
by Wicked
Wed Jun 09, 2021 4:00 pm
Forum: Hardware
Topic: Soil Moisture Sensor with ESP32 Lolin32
Replies: 8
Views: 7605

Re: Soil Moisture Sensor with ESP32 Lolin32

Also, reading the sensor's datasheet I can see that :
- Input Voltage = 3.3-5V
- Output Voltage = 0-4.2V

But because I want to connect the voltage to a GPIO pin , and not 5V , should I be aware of the output voltage to not harm my ESP? Because the GPIO pins can only take 3.3 V .
by Wicked
Wed Jun 09, 2021 3:46 pm
Forum: Hardware
Topic: Soil Moisture Sensor with ESP32 Lolin32
Replies: 8
Views: 7605

Re: Soil Moisture Sensor with ESP32 Lolin32

Maybe you need something like pinMode(sensorPin, INPUT); This doesnt help, at least, I tried and it doesn't.. First, in this article there is info, that you cant use ADC2 group of pins, when using Wi-Fi, so be shure to choose one from ADC1 group of pins: https://randomnerdtutorials.com/esp32-adc-an...
by Wicked
Tue Jun 08, 2021 7:41 am
Forum: Hardware
Topic: Soil Moisture Sensor with ESP32 Lolin32
Replies: 8
Views: 7605

Soil Moisture Sensor with ESP32 Lolin32

Hey guys! I have the following ESP32 and I have to connect multiple sensors to it. So far, all my sensors required digital pins , and I’ve used pins like GPIO 32 33 25 etc, both as input and outputs. I have a sensor for soil moisture that requires analog input, so I can read his values and map it so...