QIWEI MAO

QIWEI MAO, A Geotechnical Engineer's Journey into IoT.

  • Home
  • Blog
  • About
  • Search

NLP - Generalized Bayes’ Rule

Aug 20, 2024

Explores the Bayes' theorem, which calculates the posterior probability of a hypothesis given evidence. Discusses how the generalized Bayesian model simplifies calculations under the Naive Bayes assumption of independent effects.

NLP - Probability Review

Aug 19, 2024

Reviews key concepts in probability, including random variables (discrete and continuous), probability distributions (PMF and PDF), expectation and variance, joint distributions, conditional expectation, and complex queries involving random variables.

Self-Hosted - Streaming Services

Jul 27, 2024

Self-Hosted - NAS

Jul 27, 2024

ESP32 - Surge & Lightning Protection

Jul 19, 2024

Raspberry Pi - Pi Hole For Adblocking

Jul 19, 2024

Platform IO - How to Publish A Library

Jul 18, 2024

The ESP32 microcontroller has an internal Real-Time Clock (RTC) with limitations in maintaining time during power loss. To overcome this, an external RTC module, such as DS1307, DS3231, or PCF8563, can be integrated with the ESP32. This requires wiring the module to the ESP32, using I2C or other interfaces, and optionally connecting a backup battery. Example code is provided for setting up the external RTC and synchronizing with NTP servers for accurate timekeeping in IoT applications.


© Qiwei Mao 2024 - 2025