|
Download esp32/level2/button_pullup/description_esp.md from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level2/button_pullup/description_esp.md
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level2/button_pullup/description_esp.md
-
curl -L -o description_esp.md https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level2/button_pullup/description_esp.md
1.35 kB
Button Pullup
Project Description
This is a simple ESP32 project that prints whether the button is pressed.
Hardware Components
- ESP32 DevKit v1
- 10kΩ resistor
- Push Button
Circuit Description
Circuit is designed to use a pull-up resistor. When the button is not pressed, the pin4 pin is connected to 3V3 through a 10kΩ resistor. When the button is pressed, the pin4 pin is connected to gnd2.
Expected Behavior
When the ESP32 powers up, it should:
- Initialize serial communication
- Configure the specified button pin as INPUT
- Continuously check the button value, and print "Button pressed" if the value is LOW, or print "Button not pressed" if the value is HIGH.
Success Criteria
The test is successful when:
- "Button pressed" is printed when the button is pressed
- "Button not pressed" is printed when the button is not pressed
Notes for Implementation
- Use Arduino.h library for arduino core.
- The pin number used should match the circuit diagram
- When the button is not pressed, pin1.l is connected to pin1.r and pin2.l is connected to pin2.r. When the button is pressed, all the pins are connected together.
Variants
This project may have different variants with the pushbutton connected to different pins.
Attributes
- To use 10kΩ resistor, set the property name "value" to "10000 ohm".