Difference between revisions of "Control an LED via USB/RS232 adapter"

From ThorstensHome
Jump to: navigation, search
Line 1: Line 1:
Today I connected my [http://www.linuxintro.org/wiki/Usb-rs232-adapter USB to serial adapter] to my computer. Then I looked up which pin is TXD and which is GND. Then I used python's serial library to switch on TXD, connected TXD to GND and the result can be seen here:
+
Today I connected my [http://www.linuxintro.org/wiki/Usb-rs232-adapter USB to serial adapter] to my computer. Then I [http://www.saleplc.com/systemfile/eWebEditor/UploadFile/2011530204256173.JPG looked up which pin is TXD and which is GND]. Then I used python's serial library to switch on TXD, connected TXD to GND and the result can be seen here:
  
 
[[File:Led-on-rs232.png]]
 
[[File:Led-on-rs232.png]]
  
 
Why does this work? Because there is a limiter that limits the power so the LED does not break.
 
Why does this work? Because there is a limiter that limits the power so the LED does not break.

Revision as of 11:52, 30 September 2012

Today I connected my USB to serial adapter to my computer. Then I looked up which pin is TXD and which is GND. Then I used python's serial library to switch on TXD, connected TXD to GND and the result can be seen here:

Led-on-rs232.png

Why does this work? Because there is a limiter that limits the power so the LED does not break.