|
Download esp32/level1/RTC_module_basic/description_esp.md from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/RTC_module_basic/description_esp.md
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/RTC_module_basic/description_esp.md
-
curl -L -o description_esp.md https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/RTC_module_basic/description_esp.md
1.14 kB
RTC module
Project Description
This is a simple ESP32 project that uses RTC module to get current time.
Hardware Components
- ESP32 DevKit v1
- RTC module
Circuit Description
The RTC module is connected to the ESP32. The VCC pin is connected to 5V, the GND pin to gnd2, the SDA pin to A4, and the SCL pin to A5.
Expected Behavior
When the ESP32 powers up, it should:
- Initialize serial communication
- Check if the RTC module can begin
- Read current time with RTC module
- Print to the serial monitor in the following format: "Current time: YYYY/M/D (Day of the week) H:M:S"
Success Criteria
The test is successful when:
- Correct day and time is printed in the serial monitor.
Notes for Implementation
- Use Arduino.h library for arduino core.
- No actions are required in the loop function.
- Day of the week is one of the "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday".
- Use RTClib to generate RTC_DS1307 object and read the value.
- RTC module has I2C interface.
Variants
There may be variants with GND pin.
Test Inputs
Test init value is: "2024-11-24T04:48:00"