ESP32-wroom-32E - GPIO34, something odd

mitchjs
Posts: 9
Joined: Fri Jun 01, 2018 3:02 pm

ESP32-wroom-32E - GPIO34, something odd

Postby mitchjs » Tue Nov 09, 2021 1:06 am

I have a desingn that 12v is connected through a voltage divider of 15k and 4.7k, which calculates as 2.86v (and meters out as that)
but as soon as i connect it to GPIO34, voltage drops to 2.1v (it still registers as a high level and the GPIO is on)
but thats a lot of drop!

code does set that GPIO as input

any ideas?

Code: Select all

#define GPIO_INPUT_IGNITION_SENSE   GPIO_NUM_34

// INPUT PIN MASK
#define GPIO_INPUT_PINS  ( (1ULL<<GPIO_INPUT_IGNITION_SENSE) )

gpio_config_t io_confx;

// set to inputs
io_confx.intr_type = GPIO_INTR_DISABLE;
io_confx.mode = GPIO_MODE_INPUT;
io_confx.pin_bit_mask = GPIO_INPUT_PINS;
io_confx.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_confx.pull_up_en = GPIO_PULLUP_DISABLE;
gpio_config(&io_confx);

Who is online

Users browsing this forum: No registered users and 160 guests