ESP32 PHY Ethernet LAN8720 Ultrasonic sensor node webclient
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=Xnj2DHpdGpw
More about project: https://your-iot.github.io/Watmonitor/ • Ultrasonic sensor node implemented in Arduino Core (Wiring) framework for ESP32 microcontroller with PHY Ethernet LAN8720 module. PHY Ethernet is connected to ESP32 using RMII interface. ESP32 is providing MAC layer using its WiFi controller, also in program implementation, there is WiFi event for getting states of Ethernet PHY module. There is used FreeRTOS with Queue FIFO buffer. • It is sending datas to webhosting (own webserver) where it connects as client. PHP backend is awaiting data, then it will store them in MySQL database. Web interface consist of dashboard, where you can see actual state of water level in well. Also it automatically calculates volume of well. Water level and its volume is visulised with tendency of measurement, so you can see from previous measurement, if value is rising or falling or is same. You can also see data there historically in tables hierarchically or in graphs with maximum history 1 year back. • LAN8720 supports 100 Mbps Fast Ethernet standard with Full Duplex. In video there was used for example ultrasonic sensor HC-SR04. You can also use JSN-SR04T - waterproof ultrasonic sensor or any other sensor with Trigger and Echo signals (RCW, US-XXX, IOE-SR0X, SR0X, HC-SR0X, HY-SRF0X, DYP-MEXXX, Parallax PING)))™ series...). • Web interface is universal and it can be used with any microcontroller but also any other sensor you can use (if you write your own firmware). For instance you can use: • Laser (LiDAR) - (Garmin LIDAR-Lite v3HP, TFMini ...) • Hydrostatic - (LMK307, LMP305, DPT200 ...) • Electrostatic (capacitive / inductive) • Pressure (differential / with compensating atmospheric pressure sensor) • Optical - (GP2Y0A02YK0F, YD-02F, FS-IR02 ...) • Mechanical (float / bobber) • Magnetic (Hall) - (VCL9, Sen-Hz41wa ...) • Microwave (radar) - (CS476, CS475A-L, SP69, WLR 8/15/30 ...) • Ultrasonic - another type of output (UART, RS-232, RS-485, current loop 4-20 mA, Modbus TCP / RTU, M-bus, PROFINET, CAN, SDI, DQ ...) • Note: If the water level from the bottom of well is recalculated on the microcontroller's side, parameter - Well depth in web interface must be set to 0 cm! • I have created various examples for ESP32 using WiFi for StandBy, OTA or ULP - ultra low power mode, also for ESP8266. In case you want to use Arduino, it is possible with Wiznet Ethernet modules that are using SPI bus (W5100 or W5500). For ESP32 WiFi firmware there is implementation available in ESP-IDF framework too. In Arduino Core or ESP-IDF implementation, there are some examples that are using Queue FIFO buffer with FreeRTOS. • Basically Queue is blocking HTTP or HTTPS transfer task until it measure data using ultrasonic sensor in first task. Measurement is done once per 5 minutes, there is 10 measurements that are averaged.
#############################
