[TH]Review TTGO T8 ESP32

TTGO T8 ESP32 เป็นบอร์ดที่ใช้ ESP32 เป็นตัวขับเคลื่อนการทำงาน รองรับการเขียนโปรแกรมทั้ง ESP-IDF, Arduino และ MicroPython นอกจากนี้จุดเด่นของบอร์ดรุ่นนี้อยู่ที่ มีหน่วยความจำแรมภายนอกให้ใช้งาน 4MB มีช่องอ่าน TF Card ทำให้สามารถอ่าน/เขียน SD Card ได้ มีสวิตช์สำหรับเปิดปิดการทำงานของบอร์ด ปุ่มรีเซ็ต เสาอากาศแบบ 3 มิติ ช่องเสียบสายอากาศภายนอก และวงจรชาร์จ/ใช้งานแบตเตอรีแบบรีชาร์จ

[EN] ESP8266+Soil Moisture Sensor

This article uses the ESP8266 to read the values ​​from the soil moisture sensor. The appearance of the selected sensor is shown in Figure 1. The circuit of the sensor is shown in Figure 2 which there’s a part for the conversion of resistance from current flow to analog and digital values. In which the digital sector has to be rotated to adjust the resistance from the variable resistor. After that, the voltage obtained by adjusting the resistance is used as a comparator of the voltage obtained by the sensor circuit and output the data as a digital signal as a value of 0 or 1, but in this article choose to read the value from analog signal via A0, which is 10 bits analog to digital converter (ADC) consequently the value read from analog signal will be integer start from 0 to 1024. The example program is written in Python along with showing the converted values ​​from the ADC displayed on the web page.