The project is based around a generic USB-Serial converter and a small number of discrete components likely to be found in any well-stocked junk box. Code examples are given for control of the interface and simple to construct examples are given throughout. I originally developed this interface to build an office control system , but have since used it on many projects where I wanted quick results and didn't need the complexity of full USB control.
Preview of the steps involved:
1. Overview - how does it work?
2. Output
3. Output examples: LED control and motorised flashing beacon notification
4. Input
5. Input example: signature hotkey
An arbitrary number of interfaces can be controlled by the same host machine via hubs etc., which combined with the low cost of USB-Serial converters makes this a great starting point for many projects.
Remove these ads by
Signing UpStep 1Overview
These levels mean they can't be interfaced directly with the TTL logic levels of HIGH +5V and LOW 0V. The signals also have a high source impedance. While this means that they can stand being short circuited it also means that you really can't power anything with a significant load. So in order to be useful, our interface needs to convert these signals to TTL levels and reduce the source resistance to allow higher power devices to be controlled.
In this example we'll just be controlling one input (CTS) and one output (RTS), but the same method can be applied to use the other available lines for control. For instance, by using both the RTS and DSR lines we could control external I²C devices by bit-banging the SDA and SCL lines.
So let's start by enabling output...
| « Previous Step | Download PDFView All Steps | Next Step » |
1
comment
|
Add Comment
|
rimar2000
says:
![]() |
Add Comment
|










































