element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum D-Sub signal access
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 20 replies
  • Answers 13 answers
  • Subscribers 665 subscribers
  • Views 3367 views
  • Users 0 members are here
  • rasberry_pi_3_b_plus
  • raspberry_pi
Related

D-Sub signal access

planedan
planedan over 7 years ago

I want to be able to interrogate the signal on each pin of any D-Sub cable, therefore I need to know what hardware do I need to get from the D-Sub input to the Pi?

I have yet to purchase my Pi, but at this time plan to get a 3B

I also hope to be able to connect it to my PC Monitor and install windows 10 with Visual Studio on it.

 

Thanks for any suggestions you may have.

  • Sign in to reply
  • Cancel
  • genebren
    0 genebren over 7 years ago

    You might be able to use something like this:

    https://www.ebay.com/i/111873783565?chn=ps

    If you can further explain your need, I might be able to help you further.

    Good Luck,

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • planedan
    0 planedan over 7 years ago in reply to genebren

    I have a 9, 15, and 25 in pairs.  I plan to plug a cable to each end, and record where each pin on the input side exits on the output side.  For example pin 1 on one end of the cable may go to pin 7 on the other end.  My program will see this and store the result.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 7 years ago in reply to planedan

    Here are some clever little breakout boards that you can populate with D-sub connectors (male or female).  You could use these with a raspberry PI prototype board to interconnect the pins to the raspberry pi.

     

    Proto PCB for 9-25 pin D-SUB Connectors

     

    You could also build a fairly simple PCB to do all the interconnections for you.

     

    Good luck,

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mp2100
    0 mp2100 over 7 years ago

    You can certainly connect your Pi3B to your PC monitor, with HDMI (or an adapter if you don't have HDMI).  But the Pi only supports Win10_IoT Core:

    https://developer.microsoft.com/en-us/windows/iot/downloads

     

     

    Of course, maybe you can do Windows 10, there's this:

    Windows 10 on ARM on a Raspberry Pi 3B 'Proof of Concept' with Full Windows Desktop

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • planedan
    0 planedan over 7 years ago in reply to genebren

    Thank you.  I think I have what I need to wire the D-Subs to a breadboard, and have looked into the GPIO, but still do not see that it is possible to pragmatically energize each of the pins and subsequently record the result, ie when pin 1 is energized, pin 7 on the other end sees it.  Thinking that if I had 50 GPIO pins and a 25 pin D-Sub cable, then GPIO 1 would be input ( energizing voltage) for d-sub pin 1 and GPIO 26 would be output from from d-sub pin 1 on the other end.  Thus, when my program sends the voltage to GPIO 1, whatever GPIO that was connected to the d-sub pin that sees the voltage, would respond high when the loop of the program asked for the state of that particular GPIO.  However, we only have 40 GPIO and it appears that many of them are already spoken for.

     

    So, is the Pi capable of doing what I want to do? 

     

    Thank you for your time.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dougw
    0 dougw over 7 years ago in reply to planedan

    You could use dual 16 bit decoders to get 32 output bits from 5 data bits.

    You will also need a 32 bit input expander.

    https://learn.adafruit.com/mcp230xx-gpio-expander-on-the-raspberry-pi/using-the-library

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 7 years ago in reply to planedan

    A R-Pi sounds a bit overkill for this task.

     

    An Arduino Mega 2560 will give you 54 Digital IO pins and may be of interest if you don't want to have to expand the number of ports:

    https://store.arduino.cc/arduino-mega-2560-rev3

     

    Shift registers might be another way to go:

    https://www.electronics-tutorials.ws/sequential/seq_5.html

     

    and you can always use the likes of the I2C bus to expand the number of ports available.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • genebren
    0 genebren over 7 years ago in reply to planedan

    Daniel,

     

    Both dougw  andbeacon_dave have excellent suggestions.

     

    I can understand that using the Raspberry Pi offers some interesting benefits, in that you can build a standalone tester/documenter for your cables.  Using the first suggestion, the decoders are used to extend the GPIO, such that 5 GPIO will yield you 32 addressable outputs.  Depending on how many outputs you add in this manner, you may or may not need to also add the expanders for additional inputs.  There are other similar devices that could be used that are I2C expanders, again giving you addition GPIO-like pins, addressed by I2C commands.

     

    The second suggestion could also be used with the Raspberry Pi, where the MEGA 2560 device could be used as a co-processor to the RPi.  The RPi could communicate with the MEGA2560, and tell it which pins to drive and which to sample.  Or given a more complex program, the MEAG2560 could be command to scan, and the return the pin-to-pin readings back to the RPi.

     

    There are quite a few options, which may or may not work for you depending on your understanding of electronics/programming.

     

    Good luck sorting out these options.

    Gene

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 7 years ago

    I take it your wanting to simply make a cable tester and you want this tester to map out the connections from one end of the cable to the other

     

    Please confirm

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • planedan
    0 planedan over 7 years ago in reply to Robert Peter Oakes

    That  is exactly what I want to do.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 2025 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