|
Intro to Physical Computing Syllabus code, circuits, & construction
|
Xport: Physical Connection to a Microcontroller |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The Xport module can be used with Lantronix' embedded integration kit (EIK), which costs extra, or it can be used on its own. It's designed for mounting on a printed circuit board (PCB). I've designed a few different PCBs for the Xport, listed below.
The Xport has one serial port and three configurable I/O pins. It operates on 3.3 volts, DC, and is not 5V-compliant. To use it with a PIC or BX24 or similar microprocessors that have TTL serial capability, you'll need some circuitry to convert from 5V to 3.3V. the circuit below comes from Lantronix, slightly modified by me, and works well. It's the schematic for my Xport carrier board. +5V input goes to pin 10 of Connector J1, and ground goes to pin 1 of J1.
The pin assignments can be found in the datasheet from Lantronix. There's more info, including links to the integration guide and other documents on the Xport home page. If you're looking to fabricate a version of this board yourself, the gerber files are here. I made the original document in Eagle CAD, and orderd my boards from Advanced Circuits. You can also get boards made cheap by Sparkfun (tell them I sent you). I got the components for my board from Newark and Digikey; here are the part numbers (note: my board does not have the 5V regulator or its decoupling capacitors):
You can use this same hardware setup with a MAX232 chip or hex inverter, to connect the Xport to a computer's RS-232 serial port as well. Just connect the lines marked "to microcontroller TX" and "to microcontroller RX" in the schematic above to the TX and RX pins of your MAX232 or hex inverter, and then connect the hex inverter to the serial connector ("to microcontroller TX" goes to pin 3 of a DB-9 connector, "to microcontroller RX" goes to pin 2). Then connect the ground of your serial connector (pin 5 of a DB-9) to ground, and you're all set. See the schematic below. Connecting this way is how you configure the Xport serially.
Once you've got the hardware connected, you're ready to move on to configuration. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||