Internet Cable Tester

by ion1 in Circuits > Arduino

516 Views, 5 Favorites, 0 Comments

Internet Cable Tester

IMG_20231002_182124.jpg

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/

Downloads

Supplies

suplies.jpg
  1. 1.3 inch OLED Display Module 128X64 I2C SH1106 - 3$
  2. 3.2V LiFePO4 AA battery -1,75$
  3. Single Slot AA Mobile Battery Clip Case Holder with Wire Leads 0,5$
  4. ABS DIY Plastic Electronic Project Box Enclosure 100x60x25mm 1,3$
  5. ENC28J60 LAN Ethernet Network Board Module 3,2$
  6. ESP-32 2$
  7. Single Side Prototype PCB Breadboard 0,36$
  8. Femal Header For Arduino Shield 0,3$
  9. Male Header For Arduino Shield 0,3$
  10. WS2812B Addressable LED Pixel Light SMD 5050 0,6$
  11. KCD1-101 power switch 0,3$
  12. USB Type-C Connector Female With card Buckle Jack Port USB-C Charger Plug Socket 0,36$
  13. 3.2V LiFePO4 Battery Charger Module 1,3$
  14. White Permanent Paint Pen 1,2$
  15. 10K smd resistor

Total price ~17$

Circuit Diagram

schema.jpg

Connect everything according to the circuit