Introduction: Internet Cable Tester
Hello.
Here is an interesting device for testing internet connection in ethernet cable. The device tests on the following stages:
- LINK - check if it is physical link
- DHCP - checks if the device received the IP address automatically from the router
- DNS - checks if the DNS server is working and resolves the address "0.pool.ntp.org"
- Internet - check if the connection is with "example.com"
Also it prints on display Ip address, mask and default gateway.
For testing:
- Insert the cable into the port
- Turn on the device
- Watch the lights
To test again - turn the power off and on.
To do this project you need to know how to program esp32 in Arduino IDE, have a drill to make the holes in the case, have skills to work with a soldering iron, have insulated wires, glue to fix the modules, and of course have all components at hand.
Here are the links to the required libraries and I am also attaching the code file for the Arduino IDE:
- https://github.com/jandrassy/EthernetENC
- https://github.com/adafruit/Adafruit-GFX-Library
- https://github.com/nhatuan84/esp32-sh1106-oled
- https://github.com/FastLED/FastLED
This project was inspired from these sources:
- https://hackaday.io/project/9229-linktrucker
- https://mischianti.org/2022/11/14/esp32-ethernet-enc28j60-with-plain-http-and-ssl-https/
- https://randomnerdtutorials.com/guide-for-oled-display-with-arduino/
Attachments
Supplies
- 1.3 inch OLED Display Module 128X64 I2C SH1106 - 3$
- 3.2V LiFePO4 AA battery -1,75$
- Single Slot AA Mobile Battery Clip Case Holder with Wire Leads 0,5$
- ABS DIY Plastic Electronic Project Box Enclosure 100x60x25mm 1,3$
- ENC28J60 LAN Ethernet Network Board Module 3,2$
- ESP-32 2$
- Single Side Prototype PCB Breadboard 0,36$
- Femal Header For Arduino Shield 0,3$
- Male Header For Arduino Shield 0,3$
- WS2812B Addressable LED Pixel Light SMD 5050 0,6$
- KCD1-101 power switch 0,3$
- USB Type-C Connector Female With card Buckle Jack Port USB-C Charger Plug Socket 0,36$
- 3.2V LiFePO4 Battery Charger Module 1,3$
- White Permanent Paint Pen 1,2$
- 10K smd resistor
Total price ~17$
Step 1: Circuit Diagram
Connect everything according to the circuit