nk25719 / KiCad-esp32-6leds-2switches-1pj-circuit

In this repo I am practicing KICAD. Created an ESP32 DevKit V1 module and a PCB footprint. I designed a circuit around this ESP32 consisting of six lamps, four switches, and two power jacks and added a voltage regulater to Vin to maintain a supply of +5V. (This project was originally made of two switches and 1 power jack and was named homeWork2.)
0 stars 1 forks source link

Set Switch Pull Up Resistors to 10K #11

Closed ForrestErickson closed 5 months ago

ForrestErickson commented 5 months ago

At all four locations.

nk25719 commented 5 months ago

To provide an input current of 0.3 mA to the GPIO input pins of the ESP32, a pull-up resistor of 10 kΩ is connected. The resistor is connected in such a way that one side is connected to the 3.3 V input, and the other side is connected to both the switch and the GPIO pin of the ESP32. When the switch is open, the resistor pulls the GPIO pin's voltage up to the 3.3 V supply, ensuring that the pin reads a logical HIGH or 1. When the switch is closed, it provides a path to ground, effectively pulling the voltage at the GPIO pin down to 0 V, resulting in a logical LOW or 0. So, the pull-up resistor ensures that the GPIO pin has a defined voltage level when the switch is open and allows the switch to control the state of the pin when it's closed.

image

The screenshot shows the connection of the resistor, where one side is linked to the 3.3 V input, and the other side is connected to both the switch and the GPIO pin of the ESP32.

nk25719 commented 5 months ago
image

20240428 screenshotof of the updated schematic.