5V Dip switch

fanzypantz
Posts: 5
Joined: Thu Jul 15, 2021 10:25 am

5V Dip switch

Postby fanzypantz » Thu Jul 15, 2021 10:30 am

So I'm trying to get some inputs to my ESP32 WROOM 32 for testing, and I have some 5V dip switches here and was wondering how this design bellow would faire if 5V is supplied on the dip switch and board. Would this be alright, for input testing in general, not prolonged used.

Image

ESP_LJH
Posts: 384
Joined: Tue May 18, 2021 9:21 am

Re: 5V Dip switch

Postby ESP_LJH » Thu Jul 15, 2021 1:21 pm

Please do not input 5 V directly to our module power and GPIO, it may damage the module, even for testing period.

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: 5V Dip switch

Postby tommeyers » Thu Jul 15, 2021 2:59 pm

If you are going to pull-up the switches to a 5v source then I think you can pull-up through a pair of resistors used as a voltage divider.

That way the input pins will not receive 5v. 3k and 2k resistors?

Tom
IT Professional, Maker
Santiago, Dominican Republic

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: 5V Dip switch

Postby tommeyers » Thu Jul 15, 2021 3:00 pm

If you are going to pull-up the switches to a 5v source then I think you can pull-up through a pair of resistors used as a voltage divider.

That way the input pins will not receive 5v. 3k and 2k resistors?

Tom
IT Professional, Maker
Santiago, Dominican Republic

burtrum
Posts: 20
Joined: Mon Dec 28, 2015 1:34 pm

Re: 5V Dip switch

Postby burtrum » Thu Jul 15, 2021 9:11 pm

Hello,
If your wire the switch pull-up resistors to the 3.3V output of the ESP32 board and not 5V you should not have any problems.

Burtrum

User avatar
mbratch
Posts: 299
Joined: Fri Jun 11, 2021 1:51 pm

Re: 5V Dip switch

Postby mbratch » Sun Jul 18, 2021 11:08 am

Why are you running your ground connection for the board through a resistor?

Who is online

Users browsing this forum: No registered users and 64 guests