usb2ttlrs - USB to TTL-level RS-232 converter

converter - macro converter - top view

while working with microcontrollers it is often required to communicate with the computer or other piece of hardware. since nearly all uCs have USART it is a natural choice. the bad news is that RS-232 uses voltages way beyond typical +5V. thus, before connecting to the PC, level conversions need to be done. this is not all - nowadays it is very uncommon for a PC to even have RS-232 port! on the other hand USB is widespread.

the key of this nano-project is to enable easy communications with the uC, that operates on +5V USART, to talk with computer via USB.

there is a nice chip that provides USART to USB conversion, that is 100% USB compatible and does not require any extra hardware parts, nor software on uC side. may i introduce, the hero of this article - FT232. :) the board itself is trivial - one connects USB on the one and and GND, RX, TX, RTS, CTS on the other. for many applications it is just enough to short wire RTS with CTS (no flow control).

board view

though device is simple, it is very useful when debug communication is required fast. board schematics and PCB layout can be obtained via USB2TTLRS project on github. there are recent releases available via tags as well.

license is revised BSD - feel free to do whatever you want with it.

a bit beyond the scope of this project, but it is worth mentioning an interesting tool for linux, to set FT232 parameters – ft232r_prog. FT232 chip has an interesting features that allows setting multipurpose pins to do interesting stuff, like giving accurate clock for uC, or enabling signal for sleep modes. this is an open source program that does it from the command line. enjoy! :)

prjs/usb2ttlrs.txt · Last modified: 2013/05/17 19:08 (external edit)
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0