Skip to content

Commit

Permalink
Link LEDC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrominatel committed Sep 12, 2024
1 parent f9ef561 commit f8a4ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/blog/esp32c2-smart-electric-toothbrush/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ After the hardware design, we focus on the software development to ensure the ES
To implement the LCD functionality, we used the example codes provided in the [ESP-IDF examples](https://github.com/espressif/esp-idf/tree/release/v5.3/examples/peripherals/lcd), which cover various LCD interfaces. We also used the [esp_lv_spng](https://components.espressif.com/components/espressif/esp_lv_spng/versions/0.1.0) component to efficiently display PNG images on the LCD. The [LCD Screen User Guide](https://docs.espressif.com/projects/esp-iot-solution/en/latest/display/lcd/lcd_guide.html#lcd-introduction) offers additional insights into LCD integration.

- **Motor Driver and Buzzer:**
The motor driver and buzzer are controlled via the PWM interface. Espressif provides a [LEDC example](esp-idf/examples/peripherals/ledc) that demonstrates how to implement PWM for such applications. The [LEDC Programming Guide](https://docs.espressif.com/projects/esp-idf/en/v5.3/esp32c2/api-reference/peripherals/ledc.html#led-control-ledc) offers further details. For controlling the buzzer, we utilized the [hayschan/buzzer](https://components.espressif.com/components/hayschan/buzzer/versions/1.0.0) component to simplify the software development and achieve better sound effects.
The motor driver and buzzer are controlled via the PWM interface. Espressif provides a [LEDC example](https://github.com/espressif/esp-idf/tree/release/v5.3/examples/peripherals/ledc) that demonstrates how to implement PWM for such applications. The [LEDC Programming Guide](https://docs.espressif.com/projects/esp-idf/en/v5.3/esp32c2/api-reference/peripherals/ledc.html#led-control-ledc) offers further details. For controlling the buzzer, we utilized the [hayschan/buzzer](https://components.espressif.com/components/hayschan/buzzer/versions/1.0.0) component to simplify the software development and achieve better sound effects.

- **Battery Power Monitoring:**
We implemented battery voltage monitoring using the ADC interface, referring to the [ADC oneshot read example](https://github.com/espressif/esp-idf/tree/release/v5.3/examples/peripherals/adc/oneshot_read). The [ADC Oneshot Mode Driver Guide](https://docs.espressif.com/projects/esp-idf/en/v5.3/esp32c2/api-reference/peripherals/adc_oneshot.html?highlight=adc#analog-to-digital-converter-adc-oneshot-mode-driver) provides further instructions on how to read ADC data in oneshot mode.
Expand Down

0 comments on commit f8a4ad5

Please sign in to comment.