0
\$\begingroup\$

I want to implement serial communication into one of my projects, but I'm hesitant to use a serial cable due them them being exceedingly hard to find nowadays. I found an old converter and took it apart to see whats inside it, and to my surprise, they were all components I already own (basically). Just a pic microcontroller (a really old one which I don't own), and a level converter (not the max232 which I have). Are there any tutorials that include code that would explain how to build one of these from scratch?

\$\endgroup\$
  • 7
    \$\begingroup\$ Get an FTDI chip and something similar to max232 for level shifting. These two plus couple of capacitors will do the job. No code needed. \$\endgroup\$ – Eugene Sh. Aug 17 '15 at 20:37
  • \$\begingroup\$ Or if you just want a USB port on your board, no level shifting is actually needed, so just FTDI.. \$\endgroup\$ – Eugene Sh. Aug 17 '15 at 20:41
  • \$\begingroup\$ A 1 dollar usb to TTL serial converter would be the best choice for a project. If you really want to go about it, Microchip has a USB to CDC/Serial framework for their usb enabled Pic processors. And there are open source framework/libraries for the same on ATTiny/ATmegas and msp430 and other chips. \$\endgroup\$ – Passerby Aug 17 '15 at 21:06
  • \$\begingroup\$ A serial cable may be hard to find, but easy to build. Get two D-SUB-9 connectors and solder them onto a suitable cable. \$\endgroup\$ – Ariser - reinstate Monica Aug 17 '15 at 21:15
  • 1
    \$\begingroup\$ 9 pin serial "COM" ports are surprisingly common even today. Modern motherboards will tend have them on a header than out as a connector but they are still there most of the tiem. The cables themselves are easy to find. \$\endgroup\$ – crasic Aug 17 '15 at 21:54
1
\$\begingroup\$

I use this part in a lot of my products. It creates a virtual com port (essentially this chip is what is inside a converter cable but this way your product still has a normal USB connector).

The above is just one example. I'm sure there are other similar parts out there.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ You misunderstand. The OP isn't looking for an easy, practical solution. \$\endgroup\$ – Jeanne Pindar Aug 19 '15 at 3:36
  • \$\begingroup\$ I'm not sure if that's true... It said he wanted what's inside a converter to put into what he already called a project. \$\endgroup\$ – Houston Fortney Aug 19 '15 at 9:34
0
\$\begingroup\$

FTDI's DB9-USB modules provide a USB-serial adapter in the same form factor as a conventional DB9 connector, allowing you to place either in the final product in order to meet requirements.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.