|
Download esp32/level1/bar_led_basic/description_esp.md from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/bar_led_basic/description_esp.md
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/bar_led_basic/description_esp.md
-
curl -L -o description_esp.md https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/bar_led_basic/description_esp.md
1.28 kB
Bar LED
Project Description
This is a simple ESP32 project that turns on an bar graph LED.
Hardware Components
- ESP32 DevKit v1
- Bar graph LED
- 220Ω resistor * 10
Circuit Description
Anode pins 1~10 of bar graph LED are connected to pin2, pin4, pin5, pin12, pin13, pin14, pin18, pin19, pin21, pin22, respectively. The cathode pins 1 through 10 of the bar graph LED are connected to GND pin gnd1 through 220kΩ resistors.
Expected Behavior
When the ESP32 powers up, it should:
- Set pin2, pin4, pin5, pin12, pin13, pin14, pin18, pin19, pin21, pin22 pin mode as OUTPUT
- Turn on the bar graph LEDs only up to the threshold, which is 6
Success Criteria
The test is successful when:
- Pins 1 to 6 of the bar graph LED anodes receive HIGH signals, while pins 7 to 10 receive LOW signals.
Notes for Implementation
- Use Arduino.h library for arduino core.
- The LED should turn on immediately during setup and stay on
- No actions are required in the loop function
- The pin number used should match the circuit diagram
Variants
This project may have different variants with the bar graph LED connected to different pins or using bar graph LED of different colors.
Attributes
- To use 220Ω resistor, set the property name "value" to "220 ohm".