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 3371 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
Parents
  • 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
  • rew
    0 rew over 7 years ago in reply to planedan

    I have an STM32 development board. A client has asked me to support a "game" where users will plug connection X to connection Y using banana plugs and the software will do some bells-and-whistles things when the solution is found....

     

    You basically need 50 IOs to achieve your application: up to 25 on connector A and up to 25 on connector B.

     

    I have an upgraded board that has 64 IOS.... and an USB port to connect to a pi or PC.

     

    You would be responsible to build the D-SUB connector blocks. D9-1 - D15-1 - D25-1 - STM-1

    So, pin1 of the 9-pin connector goes to pin 1 of the 15 pin connector and the 25-pin connector. And to the board. Similarly you connect all pin2's and so on.... (after pin 9, the dsub-9 no longer plays along...)

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

    That seems good for what I want to do.  How does the STM32 play in this and what is a STM-1.  I already have the D9, D15, and D25 connector blocks and plan to mount them on a board of some kind, this weekend.  I planned to put an euro connector strip between the A D-Subs and the board that goes to the Pi.  Pin A-9-1 goes to euro connector slot 1, along with A-15-1 and A-25-1 and so on, which is sort of what you were describing.  You only test one cable at a time, 1, 15, or 25

     

    So, is this upgraded board, for sale?

     

    Thank you.

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

    At the moment, I don't have it up in my shop yet.

     

    There is a marketing "wisdom" somewhere. Products compete on three measures: specifications, price and a third that I can't remember right now. To gain significant market share you need to be better than the competition on at least 2 of the three measures. On price I as a western company with relatively small volume cannot compete with stuff from ebay. On specifications I KNOW that my design is better than what's available on Ebay due to a few small details. But that is difficult to convey in a specsheet: The spec sheets look almost identical. So I made this to be able to use it internally. If I sell a few to people who can use it, that's great too.

     

    In this case, what's important for you is that I've already written the software that can be repurposed for your application.


    Shoot me an Email: info@BitWizard.nl

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

    Then you dont need 50 active IO pins from a micro controller.

    You need to be able to activate one of 25 pins from one end of the cable and scan the other end (25 Pins) for the active one or many or none, depending on how it is wired.

    this means you need something like this

    use MCP23S17 SPI serial to 16 port IO expanders, this are cheap and well know for programming with any micro-controller with a SPI interface, this includes almost all Arduino's, Raspberry PIs, Beagle Bones, ESP8266 etc etc.

    build the chips onto their own board and you have a scanner usable with whatever processor you like even without a SPI port, the control signals could be BIT Banged out.

    each MCP23S17 with its own SPI address (Built in functionality), 2 used to control 32 outputs and 2 used to read upto 32 inputs

    as these chips are programmable you can come up with creative ways to scan the cable including looking for diodes in circuit etc,

     

    What you dont need to find is a single SBC with 50 or more IO pins available, thats just a complete waste of money and overkill, this way allows any micro-controller from cheap small to large expensive. the code to scan the pins would be very easy to do and take very little space

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

    The first hit I found on "MCP23S17 breakout" costs about half what I would charge for the module with 64 IOs and the software to scan for connections. You'd need 3 to get 48 IOs. and you'd be 2 short of the 50 you need. You can use 2 GPIOs on the pi for that. But from a software point-of-view... I'd say a board that offers 64 IOs in one go would be preferable....

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

    From what little I have been able to glean from documentation on the GPIO, there does not seem to be many true GP in that group.  If you had 2 GPIO, how many true GP would there be?  Also, can you purchase an RPi with more than 1 GPIO?  Now, I need to see what these MCP things are all about.  Thanks to everybody for your input, it is all very helpful for getting me started on this.

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

    From what little I have been able to glean from documentation on the GPIO, there does not seem to be many true GP in that group.  If you had 2 GPIO, how many true GP would there be?  Also, can you purchase an RPi with more than 1 GPIO?  Now, I need to see what these MCP things are all about.  Thanks to everybody for your input, it is all very helpful for getting me started on this.

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

    Most modern embedded controllers (so everything except the CPU that goes into your PC) has a whole bunch of pins that can be programmed input/output high, or low as you please. General Purpose Input/Output. Most of these can have a few other functions. So on the pi P1 port there are pins that can do SPI or I2C as well as their general purpose IO. But if you don't need the I2C, they can be freely programmed to do whatever you want.

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