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
Project14
  • Challenges & Projects
  • More
Project14
Blog Cheap USB to UART Converter using Microchip MCP2200
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Hesam.M
  • Date Created: 27 Feb 2021 6:08 PM Date Created
  • Views 2133 views
  • Likes 9 likes
  • Comments 7 comments
  • usb to uart
  • uart
  • rs232
  • usb to serial
Related
Recommended

Cheap USB to UART Converter using Microchip MCP2200

Hesam.M
Hesam.M
27 Feb 2021

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Nowadays USB port is used widely for data transactions between electronic devices and computers. In many scenarios, there is no need to communicate with the USB port directly, therefore electronic designers use USB to UART (RS232-Serial) converter chips, so the USB port is converted to a virtual COM port on the computer. The initial thought of many designers is to use FTDI chips to do the USB to UART conversion. There is nothing wrong with FTDI chips, however, they are expensive. In this article/video, I introduced a cheap USB to UART converter module that uses the MCP2200 chip from Microchip. The converter supports both 3.3V and 5V serial logic levels and uses three LED indicators for power connection, data transmission, and data reception.

The module supports the serial CTS and RTS pins, also six GPIOs that can be used for direct controlling of connected devices. The serial data of the module has been examined and decoded using the UART decoding feature of the Siglent SDS2102X Plus oscilloscope. So let’s get started!

 

A. Circuit Analysis

Figure 1 shows the schematic diagram of the USB to UART converter module. The schematic has been divided into a few parts for better visual inspection.

image

Figure 1

Schematic diagram of the USB to UART converter module

 

IC1 is the MCP2200 [1] USB to UART converter chip from Microchip. It supports full-speed USB up to 12Mb/s and it is available in a 20-lead SOIC package. So it is easy to solder this component for prototyping. It is also equipped with RTS and CTS pins and six GPIOs.

R1 is a pullup resistor for the reset pin and C1 and C2 are decoupling capacitors to reduce the supply noise. C3, C5, and Y1 build a clock generation unit. C6 reduces the VUSB rail noise.

USB1 is an SMD USB-mini connector for the USB cable connection. C4 and FB1 reduce the +5V USB supply noises. Figure 2 shows a picture of an SMD USB-B mini connector.

image

Figure 2

An SMD USB-mini connector

 

REG1 is the RT9166-33GX [2], that is a linear 3.3V regulator in a small SOT-89 package. According to the datasheet: “The RT9166/A series are CMOS low dropout regulators optimized for an ultra-fast transient response. The devices are capable of supplying 300mA or 600mA of output current with a dropout voltage of 230mV or 580mV respectively. The RT9166/A series is optimized for CD/DVD-ROM, CD/RW, or wireless communication supply applications. The RT9166/A regulators are stable with output capacitors as low as 1μF. The other features include ultra-low dropout voltage, high output accuracy, current limiting protection, and high ripple rejection ratio. The devices are available in fixed output voltages range of 1.2V to 4.5V with 0.1V per step. The RT9166/A regulators are available in 3-lead SOT-23 (RT9166 only), SOT-89, SOT-223, TO-92, and TO-252 packages”.

P3 is a 3-pin male-header that allows the user to switch between 3.3V and 5V logic levels, just by using a jumper. D1, D2, and D3 are three SMD LEDs that indicate the correct USB cable connection, data transmission, and reception. R2, R3, and R4 are used to limit the current of the LEDs.

 

B. PCB Layout

Figure 3 shows the PCB layout of the USB to UART converter module. It is a two layers PCB board and all component packages are SMD (except pin headers).

image

Figure 3

The PCB layout of the USB to UART converter using MCP2200

 

Figure 4 is a separate view of the top and bottom layers, so the red layer is the top and the blue layer is the bottom.

 

image

Figure 4

A separate view of the top and bottom layers of the PCB

 

When I decided to design the schematic and PCB for this project, I realized that I don’t have the component libraries of IC1[3] and REG1[4] in my component libraries storage. So as usual I decided to go with the SamacSys IPC rated component libraries and installed the missing libraries (schematic symbol, PCB footprint, 3D model) using the free SamacSys tools and services. There are two options to import the libraries into the Electronic designing CAD software: you can visit the componentsearchengine.com and download and import the libraries, or you can use the SamacSys CAD plugins and directly search/import the models into the design environment. Figure 5 shows all supported electronic designing CAD software [5], as it is clear all known software are supported. I use Altium Designer, so I searched and installed the missing libraries using the SamacSys Altium plugin (Figure 6) [6].

image

Figure 5

All supported electronic designing CAD software by the SamacSys plugins

 

image

Figure 6

Selected component libraries in the SamacSys Altium plugin

 

C. Assembly

Figure 7 shows a top view and figure 8 shows a bottom view from the assembled PCB board. The PCB boards have been fabricated by the PCBWay. I got up to 10 boards with no price change. The quality of the copper, silkscreen, and solder mask was good, so I had no problem with soldering the components at all. The smallest package size of a component is 0805.

image

Figure 7

A top view from the assembled PCB board

image

Figure 8

A bottom view from the assembled PCB board

 

D. Test and Measurement

After you finished the soldering (or received the assembled board), you should connect the module to the computer and configure the MCP2200 chip, if it is necessary. Microchip provided a utility software to configure the chip [7], named “MCP2200 configuration utility”. Figure 9 shows a screenshot of the utility software. In my case, on the first try, LEDs were not blinking, so I had to enable the blinking in the configuration.

image

Figure 9

Microchip MCP2200 configuration utility

 

Figure 10 provides the wiring diagram of the module. With this guide, you should not have any problem with connections and wirings.

image

Figure 10

Wiring diagram of the USB to UART module

 

I connected the RX signal of the module (computer is the transmitter) to the Siglent SDS2102X Plus oscilloscope [8] to examine the signal and decode the data. At the same time, I played with the jumper to switch between 3.3V and 5V logic levels. Figure 11 shows the UART signal and the decoded data and figure 12 shows the same signal with the enabled result-list that can be used to examine the timing, errors .. etc. For more details please check the video.

image

Figure 11

Decoded RX-UART data using the Siglent SDS2102X Plus oscilloscope

 

image

Figure 12

Decoded RX-UART data using the Siglent SDS2102X Plus oscilloscope (enabled result-list)

 

E. Bill of Materials

Figure 13 shows the bill of materials for this project.

image

Figure 13

Bill of materials



References

 

Article: http://bit.ly/3q1TzfZ

 

[1]: MCP2200 datasheet: https://www.mouser.se/datasheet/2/268/22228A-81933.pdf

 

[2]: RT9166-33GX datashet: https://www.richtek.com/assets/product_file/RT9166=RT9166A/DS9166A-23.pdf

 

[3]: MCP2200 schematic symbol, PCB footprint, and 3D model: https://componentsearchengine.com/part-view/MCP2200-I/SO/Microchip

 

[4]: RT9166-33GX schematic symbol, PCB footprint, and 3D model:https://componentsearchengine.com/part-view/RT9166-33GX/RICHTEK

 

[5]: Electronic designing CAD software plugins: https://www.samacsys.com/library-loader-help

 

[6]: Altium Designer plugin: https://www.samacsys.com/altium-designer-library-instructions

 

[7]: Microchip MCP2200 configuration utility: https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2200 Configuration Utility v1.3.1.zip

 

[8]: Siglent SDS2102X Plus oscilloscope: https://www.siglenteu.com/digital-oscilloscopes/sds2000xp

  • Sign in to reply

Top Comments

  • Andrew J
    Andrew J over 4 years ago +1
    That’s a really comprehensive guide, great stuff.
  • neilk
    neilk over 4 years ago +1
    Very nice project. Did I understand correctly that the PCB maker will also populate the boards for you? If so, may I ask how much, approximately, the populated boards cost? Neil
  • Hesam.M
    Hesam.M over 4 years ago in reply to neilk +1
    Thank you. About your question, well, no. I soldered it myself by hand. However please check the article in the reference links, below the article there is a contact Email where you can ask your questions…
Parents
  • neilk
    neilk over 4 years ago

    Very nice project.

     

    Did I understand correctly that the PCB maker will also populate the boards for you? If so, may I ask how much, approximately, the populated boards cost?

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Hesam.M
    Hesam.M over 4 years ago in reply to neilk

    Thank you.

    About your question, well, no. I soldered it myself by hand. However please check the article in the reference links, below the article there is a contact Email where you can ask your questions/quote if you wanna get this board assembled.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Hesam.M
    Hesam.M over 4 years ago in reply to neilk

    Thank you.

    About your question, well, no. I soldered it myself by hand. However please check the article in the reference links, below the article there is a contact Email where you can ask your questions/quote if you wanna get this board assembled.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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