Full project description follows. I use NodeMCU as my web server and it works great. It was hard to find a code sample that actually connects outside of my LAN, but I found something. I also had to learn the basics of HTML. The only problem is that it has to be restarted every 4 or 5 days. Since I'll be keeping it in a remote location, I'll add code to the MEGA sitting next to it to restart the NodeMCU every few days by pulling the RST pin low. The clearance under the Green Pond Bridge in Cape Cod is 6ft 6in or less, which is way too low for the boat I use. Tide charts for Falmouth, Massachusetts are theoretical and can vary up to 18 inches from what actually happens on the bridge. This system controls the dispatch and transmits information to the Internet. All of these parts were purchased from Revain. Transmitter The Elegoo UNO R3 board (Arduino) is connected to the Elegoo HC-SR04 ultrasonic distance sensor. The UNO and sensor calculate the distance from the fixed dock to sea level and then transmit that data using the MakerFocus NRF24L01 wireless transceiver to the receiver described below. The transmitter is located at the end of the dock where there is no power, so EnergyShield 2 supplies power to the UNO, transceiver and range sensor. This battery has a special function - it wakes up all devices every 15 minutes. The system measures the distance to the water a few times and then transmits that data, after which the battery shuts everything down. The data transmitted includes information from the battery - time, date and voltage. I tested this device at home (in Dallas) and it worked outdoors for about 20 days. Judging by the battery usage, it lasts about 4-5 months before needing to be recharged. When the temperature drops below zero, the system still works fine, but the battery voltage seems low. All of this is housed in a plastic box printed specifically for this purpose with FlashForge 3d Printer Creator Pro using eSun White ABS+ Filament. (Arduino) Elegoo MEGA 2560 R3 is connected to another NRF24 transceiver to receive data. MEGA performs calculations to convert the distance from the pier to the water into a bridge distance. The information is then displayed on the touchscreen of the Elegoo UNO R3 (which also works on the Mega). picture below. A small plastic frame for the receiver was also 3D printed. web server. Finally, the information in MEGA is sent to the Hiletgo ESP8266 NodeMCU ESP-12E Internet WIFI development board via the serial bus (also works with Arduino IDE programming). This board connects to MEGA via an XCSOURCE logic level shifter and is powered by a UCEC MB102 breadboard power module. Everything is assembled on the Elegoo breadboard. ESP8266 is programmed as a web server. Connection to the Internet is via a modem/router provided by AT&T. Picture from my phone below.
10GBase-T SFP+ Transceivers, 10G Copper RJ-45 SFP+ CAT.6a, up to 30 meters, 🔌 Cisco SFP-10G-T-S Compatible, Ubiquiti UniFi UF-RJ45-10G Supported, Fortinet, Netgear, D-Link, Supermicro (Pack of 2)
9 Review
🔌 Ximimark 1Pcs ESP8266 Network Relay WIFI Module 220V 10A DC 7-30V 4 Layers Board TVS Input Automatic Protection: Enhanced Home Automation Solution
8 Review
🔌 Gigabit Ethernet Media Converter, Single Mode Dual SC Fiber, 1000Base-LX to 10/100/1000Base-Tx, up to 20km, 2-Pack
9 Review
📡 Izokee ESP-01 Serial WiFi Transceiver Module with USB Converter, Compatible with Arduino
8 Review
UGREEN USB 3.0 Ethernet Adapter Hub with RJ45: Fast Gigabit Ethernet Converter, 3 Ports USB 3.0 Hub Compatible for MacBook, iMac, Surface Pro, Chromebook, Laptop, PC
11 Review
🔌 StarTech.com NETRS232 Serial to IP Ethernet Device Server - DIN Rail Mountable - Serial Device Server - Serial Over IP Device Server (Black)
4 Review
🔌 CERRXIAN RS232 to Ethernet Serial Device Server - TCP/IP Converter with 1Port DB9 RS232 Serial to Ethernet Connectivity
3 Review
🔌 Juiced Systems Silver BizHUB USB-C Multiport Gigabit HDMI Hub with 3 USB 3.0 Ports, Gigabit Ethernet, 4K HDMI, SD/Micro SD, and USB-C Power Delivery
11 Review