element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator NexGen: The New Lab: DB-25 pinout tester - I
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 2 Aug 2020 4:42 PM Date Created
  • Views 778 views
  • Likes 3 likes
  • Comments 1 comment
  • nexgen
  • tools & test equipment
  • cable tester.
  • rj45
  • db25
Related
Recommended

NexGen: The New Lab: DB-25 pinout tester - I

phoenixcomm
phoenixcomm
2 Aug 2020

Well, I'm just flat tired of fighting with my DB-25M interface connectors, at first, I thought of LEDs with pull up resistors. After dinner, my mind wandered back to my cable tester, hey, an Arduino Mega, which I have a bunch of, has 52 digital pins. But wait I only need twenty-five. Sounds good to me. I have to start with a clean Mega as my donor, still has some wires which are a pain-in-the-you-know-what to unwrap without the right tool, and mine is currently MIA somewhere in the lab.image

The Plan is stupidly simple.

First I will wire the connector to the Megas digital I/O pins 22 on the Mega to 1 on the DB25. Finishing with 46 on the Mega and 25 on the DB25. I already have a drilled ATRpolly for what I need.

Secondly, I can add an RS485 interface as well so I can check on that as well. Since my traffic has a byte for Source and Destination, I could, in fact, create a snoop tool just like we have for the ethernet.

Software

Pins.h

int pin[] = {   22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
                    32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
                    42, 43, 44, 45, 46 };

Modes.h

for (int step = 22; step < 47; step++) {

     pinMode(pin[ step ], INPUT_PULLUP); }

 

DB25Tester.c

#include <Pins.h>
#include <Modes.h>

void setup() {
Serial.begin(9600);}

void loop() {
begin(9600);}
   int count;
  
    do { 
       int temp[] = {0, 0, 0, 0, 0, 0, 0 ,0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
       for ( int count = 0; count < 26; count++) {
           temp[count] = digtalRead( pin[ count ]; }
      Serial.write(pin, 25);

  
        
}while(true);
}

  • Sign in to reply

Top Comments

  • DAB
    DAB over 5 years ago +1
    Good solution. DAB
  • DAB
    DAB over 5 years ago

    Good solution.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube