How pr3t3r1t0/ethernet works
1. Repository shape
- This is not a single application; it is a collection of self-contained Arduino/Ethernet practice projects plus documentation and a few unrelated side examples.
- The root README points to Sensorica as the main program, with index.html as a companion page.
2. Primary architectural theme
- Most folders follow the same pattern: an Arduino sketch (.ino) that runs on the microcontroller and exposes data or controls over Ethernet.
- The firmware is the control center; browsers or external services are the clients.
3. Main embedded entry point
- Sensorica/Sensorica.ino and Sensorica/index.html represent the main sample.
- This pairing suggests a typical flow of sensor acquisition on Arduino → web response to a browser page.
4. Web UI layer
- Many practices include static web assets such as index.htm, index.html, page2.htm, CSS, and AJAX-oriented pages.
- These pages are usually served from the Arduino itself or loaded from an SD card, then updated by browser-side requests to the board.
5. Embedded server + SD card pattern
- Several projects in Practica4-* and Practica5-* use the Arduino as an HTTP server with pages stored in flash/SD.
- This creates a clear boundary: firmware handles networking and data generation, while the HTML files provide the UI.
6. AJAX / dynamic-update pattern
- Multiple examples are built around AJAX, XML, gauges, and dashboard-like displays.
- The data flow is: browser polls Arduino endpoints → Arduino returns sensor/state values → page updates without full reload.
7. Hardware control patterns
- Some sketches focus on digital output control like switches, LEDs, RGB LEDs, and button-driven states.
- Others focus on analog sensor monitoring such as voltmeters, solar panel telemetry, DHT temperature/humidity, and weather-station-style readings.
8. Reusable code modules
- ServidorWebArduino-controlar_LedRGB-master includes reusable C++ modules like LedRGB and Tela, showing a more modular Arduino structure than the one-off sketches.
- This folder separates UI/logic helpers from the main sketch, which is useful to represent as internal firmware libraries.
9. External service integrations
- Some projects do not stop at the Arduino board: they integrate with PHP/MySQL, ThingSpeak, or SMS/web services.
- Examples include W5100-Eventos-master and arduino-dht-ethernet-master with PHP scripts, plus Practica6-ThingSpeak for cloud telemetry.
- These introduce a second backend boundary: Arduino → external server/service → persistent storage or dashboards.
10. Hardware stack
- The documentation and sketches center on Arduino + Ethernet shields/controllers such as W5100/W5500.
- SD card support is also common, and the repo includes datasheets, guides, and bootloader/networking references that support that hardware-centric architecture.
11. Ancillary Node.js example
- AlarmasUT-main is a separate standalone web app with server.js, index.html, and public/main.css.
- It appears to be independent from the Arduino tutorial ecosystem, so in a diagram it should be shown as a separate side project, not part of the core data path.
12. Documentation as a first-class subsystem
- Guias/ and Documentacion/ contain explanations, comparisons, PDFs, and tutorial material.
- For an architecture diagram, these are best treated as supporting artifacts rather than runtime components.
13. How to draw the repo
- The cleanest diagram is a family of similar embedded web-server systems:
- microcontroller + Ethernet shield
- optional SD card / local files
- browser UI with AJAX
- optional external PHP/MySQL/ThingSpeak/SMS backends
- Then place the many practice folders as independent instances of that pattern, not as modules in one monolithic system.
Main entry points: Sensorica.ino Sensorica · Practica4-eth_websrv_SD_Ajax.ino SD Ajax · eth_websrv_SD_Ajax_in_out.ino IO Server · PanelSolarsimple.ino Solar Panel
Components 22
Embedded practice suites
Arduino/Ethernet samples that form the main tutorial family.
- Sensorica · Main sample pairing Arduino firmware with a browser page for sensor-driven web output.
Sensorica/Sensorica.ino - Sensorica UI · Companion browser page for the Sensorica sample.
Sensorica/index.html - SD Ajax · Representative SD-hosted web server example with AJAX-driven updates.
Practica4-eth_websrv_SD_Ajax/Practica4-eth_websrv_SD_Ajax.ino - XML Ajax · Variant of the SD web server pattern using XML-style responses.
Practica4-eth_websrv_SD_Ajax_XML/Practica4-eth_websrv_SD_Ajax_XML.ino - Gauge UI · Web dashboard sample centered on a gauge-style front end.
Practica4-eth_websrv_SD_Ajax_gauge/Practica4-eth_websrv_SD_Ajax_gauge.ino - SD Image · SD-card-backed site with multiple pages served by the board.
Practica4-eth_websrv_SD_image/Practica4-eth_websrv_SD_image.ino - Solar Panel · Monitoring-oriented web server sample for panel-style telemetry.
Practica5-web_server_Panel/PanelSolarsimple/PanelSolarsimple.ino - IO Server · Input/output web server sample with AJAX updates and page assets.
Practica5-web_server_IO/eth_websrv_SD_Ajax_in_out/eth_websrv_SD_Ajax_in_out.ino - Mega Ajax · Mega-board variant of the SD Ajax web server pattern.
Practica5-Mega/eth_websrv_SD_Ajax_24_out/eth_websrv_SD_Ajax_24_out.ino - RGB Web · Modular Arduino web control example split into helper classes and sketch logic.
ServidorWebArduino-controlar_LedRGB-master/RGB_web/RGB_web.ino - Dual DHT · Standalone embedded thermostat-style monitoring sketch.
DualDHTthermostat-master/DualDHTthermostat.ino - Weather Station · Standalone weather-station style Arduino sketch.
simpleweatherstation-master/simpleweatherstation.ino
External integrations
Projects that connect Arduino data to PHP, MySQL, ThingSpeak, SMS, or other services.
- ThingSpeak · Telemetry example that pushes sensor data to a cloud service.
Practica6-ThingSpeak/Practica6-ThingSpeak.ino - DHT MySQL · Arduino plus PHP/MySQL logging flow for sensor data persistence.
arduino-dht-ethernet-master/Arduino sketch/DHT_W5100_logger.ino - Eventos · Event-oriented Arduino project paired with PHP endpoints.
W5100-Eventos-master/W5100-Eventos.ino - Voice Control · Arduino project with PHP front end and AJAX-based interaction.
Arduino-Voice-control-master/arduino_english_version.ino - SMS Web · Arduino sketch for web or SMS-enabled control flow.
arduino-sms-web-master/WebSMS.ino
Documentation
Guides, comparisons, and reference material supporting the practice projects.
- Guides · How-to material and architectural summaries for the practice collection.
Guias/Resumen_Practicas.md
Side projects
Standalone examples that sit outside the main Arduino tutorial family.
- AlarmasUT · Separate Node.js web application with its own server and static assets.
AlarmasUT-main/server.js
Hardware references
Datasheets, schematics, and board support material for the Ethernet stack.
- References · Reference PDFs, bootloader notes, and datasheets for the hardware stack.
Documentacion/W5100_Datasheet_v1_1_6.pdf - W5100 Kit · Board, schematic, and reference documents for the W5100 Ethernet platform.
W5100-master/W5100.pdf
Other components
- Repo README · Top-level entry point that frames the repository as a set of Ethernet practice projects.
README.md
Connections 20
- Repo README → Sensorica: points to · Top-level README highlights Sensorica as the main program.
- Sensorica → Sensorica UI: serves · Firmware is paired with a browser page for displaying data.
- Sensorica → SD Ajax: same pattern · Represents the common Arduino-to-browser web server flow.
- SD Ajax → XML Ajax: variant of · XML response variant of the same embedded web server pattern.
- SD Ajax → Gauge UI: variant of · Dashboard/gauge front end built on the same server model.
- SD Ajax → SD Image: variant of · Multi-page SD-hosted website variant.
- SD Ajax → IO Server: evolves into · Later practice adds input/output handling and AJAX updates.
- IO Server → Solar Panel: evolves into · Panel-oriented monitoring refines the same embedded server idea.
- IO Server → Mega Ajax: board variant · Mega-board implementation of the same web server architecture.
- Solar Panel → ThingSpeak: cloud path · Telemetry extends from local monitoring to a hosted service.
- Sensorica → Dual DHT: sensor family · Both are sensor-monitoring embedded sketches.
- Sensorica → Weather Station: sensor family · Both focus on environmental measurements and reporting.
- RGB Web → Voice Control: modular control · Both belong to the more modular Arduino web-control examples.
- Voice Control → DHT MySQL: external backend · Both connect Arduino-generated data to PHP-side processing.
- DHT MySQL → Eventos: php integration · Represents the PHP/MySQL-backed integration style in the repo.
- Eventos → SMS Web: service integration · Both demonstrate Arduino beyond local UI into external communication services.
- AlarmasUT → Repo README: separate project · Standalone Node app that is unrelated to the Arduino tutorial core.
- Guides → Sensorica: documents · Guides explain and summarize the practice projects.
- References → W5100 Kit: supports · Reference material supports the Ethernet/W5100 hardware stack.
- W5100 Kit → SD Ajax: enables · Hardware references underpin the Ethernet web-server examples.