Home
Serial I/O User`s Manual 2005-07-01A
Contents
1. Bibaja Landscape Automation LLC 4 2005 Serial Connector V1 Serial connector V1 is used to connect to VIA Mini ITX motherboard communication port headers The pinout is 9 Signal Pin Pin Signal 7 No Connect X 9 RI x d CTS 8 7 RTS 4 3 DSR 6 5 GND 2 1 DTR 4 3 RXD TXD 2 1 DCD NOTE The only signals used by the Serial I O interface are RXD TXD and GND Serial Connector V2 Serial connector V2 is used to make a ribbon cable between a 2x5 socket and a DB9 female connector The pinout is 5 Signal Pin Pin Signal No Connect X 5 GND M RI 9 4 DTR 7 2 CTS 8 3 SOUT 6 1 RTS 7 2 SIN DSR 6 1 DCD NOTE The only signals used by the Serial I O interface are RXD TXD and GND Output Spring Terminals O1 O2 O3 O4 Output spring terminals are paired with 12V supply terminals for convenience All outputs are open collector meaning that they sink current only To connect a relay with a 12V coil the coil must be connected between a 12V terminal and one of the output terminals O1 O4 O OS DS C A NO NO NO N ORAR S lt Current from the 12V supply is limited to 500ma by an internal PTC fuse The 12V supply terminals may be used for powering external devices PIR motion sensors etc The total current draw of all attached devices from the 12V supply must be less than 500ma Bibaja Landscape Automation LLC 5 2005 To insert or remove
2. Model A 2004 Year the firmware was developed 1 Minor version number The year and minor version number will be incremented when the firmware changes Major changes to the hardware will result in the model number changing Major changes are adding new I Os or other features Bibaja Landscape Automation LLC 11 2005 INSTALLATION Required Items The following items are required to install the Serial I O interface in your Mini ITX or regular PC One free serial port pin header matching either the V1 or V2 pin assignments One free power supply cable either floppy or hard disk style The Serial I O interface 10 conductor ribbon cable with 2x5 sockets on each end included w Serial I O One free PCI slot or an external box for mounting the Serial I O interface Screwdriver s Preparing the PC and Installing the Serial I O Hardware 1 2 3 4 5 6 7 Power off the PC and use proper ESD precautions for following steps Open the PC Unscrew and remove the blank metal bracket from the target PCI card slot Attach power to the Serial I O interface Attach the 10 conductor ribbon cable between the motherboard COM port header and either the V1 or V2 connector on the Serial I O Screw the Serial I O interface into the PCI card slot Power up the PC and test the Serial I O interface Testing the Serial I O interface 1 2 3 4 5 Open a communications program such as Minicom on Linux or HvperTerminal on Window
3. 18 AWG Bibaja Landscape Automation LLC 6 2005 SOFTWARE SPECIFICATION Serial Port Settings The serial port settings to communicate with the Serial I O interface are 9600 bits per second 8 data bits No paritv 1 stop bit No flow control 9600 8 N 1 If you have hardware flow control on or you have software flow control enabled the device may not work properly Flow control is accomplished by waiting for the response after every command is issued The Serial I O interface is capable of sending 240 4 byte messages per second to the PC Command Strings Communication between the PC and the Serial I O interface is through command strings Command strings may be issued manually from a terminal program or via software control The format of the command string is lt COMMAND gt lt DATA gt lt TERMINATOR gt The COMMAND byte is a printable ASCII character The following table gives a summary of COMMAND bytes COMMAND Description Event driven inputs DATA is l to enable 0 to disable Full duplex Serial I O interface will echo each transmit character Half duplex Serial I O interface does not echo transmit characters Read inputs Set or read output state DATA is ASCII encoded hexadecimal data using characters 0 9 and A F Or it Read the version string currently VSIOA20041 DATA is a sequence of ASCII encoded hexadecimal d
4. a wire use a small flat head screwdriver and press in against the orange lever While holding the lever insert or remove a wire into the desired terminal Release the orange lever when finished If vou inserted a wire give the wire a tug to be certain it is properly clamped in the terminal Input Spring Terminals 11 12 13 14 Input spring terminals are paired with ground terminals for convenience All inputs are pulled to 5V by an internal pullup When the input is shorted to ground when an attached switch is on for example the Serial I O interface firmware indicates a logic 1 on that input When the input is open not connected or an attached switch is off the Serial I O interface firmware indicates a logic 0 on that input DOT ONO G O KR Z Z Z Z U U U U To insert or remove a wire use a small flat head screwdriver and press in against the orange lever While holding the lever insert or remove a wire Into the desired terminal Release the orange lever when finished If you inserted a wire give the wire a tug to be certain it is properly clamped in the terminal Electrical Specifications and Operating Conditions Parameter Min Typ Max Units 5V supply current 20 75 ma 12V supply current 500 ma Current Sink O1 O4 500 ma Operating Temperature 10 25 70 C ESD Protection 11 14 8 kV air discharge Toggle Rate I1 I4 0 100 Hz Wire Gauge 26
5. event driven inputs gt E1 lt LF gt Serial VO acknowledges Bibaja Landscape Automation LLC 8 2005 IO0 LF Serial I O tells the PC the current input state time passes I10 LF User presses the pushbutton Serial I O tells the PC the state When the event driven inputs are disabled the Serial I O interface will acknowledge and will not send any further updates EO lt LF gt PC sends command string to disable event driven inputs gt E0 lt LF gt Serial VO acknowledges Full Duplex F Enable full duplex echo by sending this command Full duplex means the Serial I O interface will echo back each character as it is received This mode makes interactive operation simpler by allowing the user to see what is typed Software driven operation will typically use half duplex mode echo off since this is easier to parse To enable full duplex F lt LF gt PC sends enable full duplex echo on command gt F lt LF gt Serial VO acknowledges Half Duplex H Default to half duplex Half duplex operation is the default for the Serial I O interface Half duplex is when the Serial I O does not echo characters back to the PC This mode is simpler for software driven operation as the software does not need to filter out it s own commands from the serial input data stream To enable half duplex echo off H lt LF gt PC sends half duplex echo off command gt H lt LF gt Serial VO acknowledges Input T In
6. B1 11 pa z ou ATESCABBSIP eko 1 1 o 2005 MICROCONTROLLER Bibaja Landscape serio ay red 7 01 2005 01 57 58 uuu bibaja com E Sheet 2 of 4 a B C D E Bibaja Landscape Automation LLC 14 2005 a B C D E F vce 4 O PLO 7 DUI4 2 175 TA 12 1 0 04 0UT3 2 7 5 1 1 0 03 3 0UT2 2 ULN2 3AN 1 0 Y 02 eko out 2 15 1 1 0 01 ucc 12U U2 9 1 1 0 2 vo 23 E RIGA UL ERI 3 CRISS ve Ht Egg V12 1 0 H R37 R36 R35 vo 1 246n 240R 248R era U12 1 1 0 1 0 2 D6 1 c 2005 OUTPUTS Bibaja Landscape serio Aoma er ee 7 01 2005 01 57 58 ttp uuu bibaj a com P J Sheet 3 of 4 a B C D E E Bibaja Landscape Automation LLC 15 02005 B D E FIZU 4 12U UCC R41 180K Y D41 2 IN 1 0 1 W 1 0 2 R42 041 od 8 1uF 3 12U UCC X 6XD R43 100K M D42 E A 1 0 AW o H R44 C42 GND 1K00 gt G iuF 1 ucc PB41 vo H B3F 3152 me 12U UCC Di m GND 2 GND es GND Wap PBL 1 il 2 4 GND 1 1 0 2 vo F2 du END GND 100K GND 1 D43 Fo 2 1 E IMBD7000 TE vo AW GND 1 0
7. NC Milling Machines Linux users using Enhanced Machine Controller EMC software http www linuxcnc org and other flexible CNC software will find the Serial I O interface inputs useful for limit switches and the outputs useful for controlling spindle motors blowers mist flood and more Three of the inputs could be used for the X Y and Z home limit switches using normally open micro switches Outputs can be used to drive relays to control AC loads such as the spindle motor blower mist and flood Bibaja Landscape Automation LLC 1 2005 Point of Sale Svstems Point of sale systems may integrate the Serial I O interface for opening the cash drawer using a solenoid attached to one of the outputs and sensing the state open closed of the cash drawer using a micro switch coupled to one of the inputs Additional operator convenience buttons or a key switch input may be added Operator convenience buttons such as a service call or register available button may be added to trigger the point of sale software to activate a lamp The key switch would provide a simple way to log out of the register Turn the key switch and take the key and the point of sale software will log the clerk out of the register Insert the key and turn the switch and enter the password to log back in Outputs could be used to control the lamp for the register open closed display When the user logs out of the register the lamp would turn off Additional lamps s
8. R46 C43 1K00 SS tur 1 0 4 zx 1 0 21 Xo 12U vec Xo R47 100K T D44 2 ba 1 0 W 1 m EJ R48 C44 1K00 QB 1uF c 2005 INPUTS Bibaja Landscape serio SD Automation LLC 7 01 2005 81 57 585 http uuw bibaja com P J Sheet 4 of 4 B D E F Bibaja Landscape Automation LLC 16 02005
9. ata To output the hexadecimal data 0x7F for example the user should send the output command O followed by 7 F and the lt TERMINATOR gt The current version of the Serial I O interface only supports 8 bits of data Entering more data will cause the first data to be shifted out to the bit bucket For example the command string OFFAS lt TERMINATOR gt will result in the outputs being set to OxA5 The leading OxFF is dropped This feature allows you to write your code for future expansion to 12 16 24 or even 32 outputs by padding with leading 0 s for off or leading 1 s for on Bibaja Landscape Automation LLC 7 2005 The TERMINATOR character is any one of the following 3 characters TERMINATOR HexValue Keyboard Description EOT 0x04 Control D End of transmission lt LF gt Ox0A Control J Line feed lt CR gt 0x0D Control M Carriage return The Serial I O interface firmware learns what terminator to use based on the command strings sent If your software uses the lt EOT gt character for example the Serial I O interface will terminate all command responses with the lt EOT gt character Command Response Responses to a command string is a string resembling the command with a preceding gt character The format is gt lt COMMAND gt lt DATA gt lt TERMINATOR gt The gt character is used to distinguish command responses from event driven input data For exam
10. ed and green are also provided Simple 9600bps 9600 8 data bits no parity 1 stop bit serial communications are used to configure and control the Serial I O interface The state of the inputs may be polled or configured to send updates to the PC when an input changes Character echo may also be turned on for interactive operation of the Serial I O interface Spring cage clamps allow easy connect disconnect of wires from outside of the PC case Simply press the orange lever with a flat head screwdriver insert the wire and release No screws to turn no case to open Installation is a snap Open the PC insert the Serial I O interface into a free PCI card slot space screw down the bracket and attach the power and serial cables Use any free hard disk or floppy power connector to power the Serial I O Connect the serial header using the 10 pin IDC cable provided Applications Mini ITX PCs are finding their way into many projects that require an embedded PC Often these projects require digital I O interfaces between the PC and the outside world The Serial I O interface provides 4 protected inputs and 4 open collector relay driver outputs to provide an interface from the Mini ITX PC to the outside world This section describes a few example applications utilizing a Mini ITX PC and the Serial I O interface Log on to our support forum to exchange ideas with other members of the Bibaja community at http www bibaja com forum Desktop C
11. iBaJa Landscape Automation Serial I O User s Manual 2005 07 01A 2005 Bibaja Landscape Automation LLC INTRODUCTION APPLICATIONS DESKTOP CNC MILLING MACHINES POINT OF SALE SYSTEMS SECURITY SYSTEMS HARDWARE SPECIFICATION CONNECTORS FLOPPY POWER CONNECTOR HARD DRIVE POWER CONNECTOR SERIAL CONNECTOR V1 SERIAL CONNECTOR V2 OUTPUT SPRING TERMINALS 01 O2 O3 O4 INPUT SPRING TERMINALS 11 I2 I3 I4 ELECTRICAL SPECIFICATIONS AND OPERATING CONDITIONS SOFTWARE SPECIFICATION SERIAL PORT SETTINGS COMMAND STRINGS COMMAND RESPONSE COMMAND REFERENCE EVENT DRIVEN E DEFAULTS TO 0 DISABLED FULL DUPLEX F HALF DUPLEX H DEFAULT TO HALF DUPLEX INPUT T OUTPUT O VERSION V INSTALLATION REQUIRED ITEMS PREPARING THE PC AND INSTALLING THE SERIAL I O HARDWARE TESTING THE SERIAL I O INTERFACE APPENDIX A SERIAL I O SCHEMATIC Bibaja Landscape Automation LLC i NNR SG A OU QA ON OR PB O WS IO XO 00 0 BN N m N 12 12 12 13 2005 INTRODUCTION Bibaja s Serial I O interface provides 4 inputs and 4 relay driver outputs for Mini ITX and other PC s with standard serial port pin headers available on the motherboard Each input may be used to sense contact closures at frequencies up to 100 closures per second Outputs may be used to drive 12V relays for switching AC loads or to directly drive 12V devices One pushbutton input and two LED outputs r
12. n the temperature is too high or too low using a simple mechanical thermostat or an electronic thermostat Lux manufacturers a low cost switch typically used to control baseboard heat The Lux thermostat and others are readily available from your local hardware store Moisture sensors featuring a contact closure output may be tied to one of the inputs on the Serial I O interface If this moisture sensor is used to monitor a pipe a contact Bibaja Landscape Automation LLC 2 2005 closure signals a leak and one of the outputs from the Serial I O interface mav be triggered to close an electronic master valve for the house preventing expensive water damage from a broken water pipe or a valve that fails to close on a washing machine Magnetic reed switches are available for sensing when a window or door is open Monitor when the front door opens and closes remotelv through the internet and see when the kids come home from school or detect when a thief enters vour home Card access readers could be added to vour PC to automaticallv disarm the svstem so the alarm doesn t sound when authorized people enter vour home Outputs mav be used to drive 12V solenoids or relavs Automatic door latches include a 12V solenoid to allow the door to open When a card reader detects an authorized user or the correct PIN is entered on a kevpad the door latch could be automaticallv opened bv the PC controlling the home Relavs attached to the Serial I O output co
13. ple if an input request command T is issued and the inputs are changing the gt character provides a way to distinguish the response to the I command from the event driven input event Here is the flow of data using lt LF gt as a terminator I lt LF gt Sent from PC 101 lt LF gt Event driven input event input 1 changed to 1 gt I01 lt LF gt Response to I lt LF gt command 100 lt LF gt Event driven input event input 1 changed to 0 Waiting for the gt response prevents confusion in thinking the first 101 lt LF gt was the response to the I command and prevents further commands from being issued from the PC until the Serial I O has finished the pending T command Command Reference Event Driven E Defaults to 0 disabled Enable or disable event driven inputs Passing a 1 for the lt DATA gt will enable event driven inputs 0 will disable event driven inputs Event driven inputs are disabled by default at power up When enabled any change in the inputs or pushbutton will cause the Serial I O interface to send an unsolicited input command string to the PC This string will not have a preceding gt character making input events easy to distinguish from command responses Every time event driven inputs are enabled the current state of the inputs will be immediately sent to the PC The following example demonstrates this EI lt LF gt PC sends command string to enable
14. put a data byte from 11 14 and the pushbutton When event driven input mode is enabled the Serial I O interface will send input status to the PC every time an input changes using the input command string The input bit assignments are e Input Reserved read 0 Reserved read 0 Reserved read 0 Pushbutton I4 I3 D O II WB ni alr Il Bibaja Landscape Automation LLC 9 2005 To read the current input state I lt LF gt PC sends command to read inputs gt I01 lt LF gt Serial I O responds with current input state In the example above the Serial I O responds showing input I is at the ground state When an input is shorted to ground by a pushbutton press or a contact closure the state of the input is 1 When the input is open or the pushbutton is released the state of the input is 0 Event driven inputs may occur at any time an input changes The following example shows a pushbutton sequence released pushed then released again IOO lt LF gt Serial I O indicates no inputs are active I10 lt LF gt Serial I O indicates the pushbutton has been pressed IOO lt LF gt Serial I O indicates the pushbutton was released Note the lack of the preceding gt character This indicates the input status was due to event driven I O instead of an input read command Output O Output a data byte to OUT1 OUTA and to the red and green LEDs The bit assignments fo
15. r the outputs are Output Reserved write O Reserved write O Green LED Red LED OUT4 OUT3 OUT2 BD ID HB nan OUTI Writing a 1 to a bit will turn the corresponding output on Writing a zero will turn the output off For example to turn on the Green LED and output OUTI send the following command string to the Serial I O interface O21 LF PC Sends this command string to the Serial I O interface gt 021 lt LF gt Serial I O responds with this The output command may also be used to query the current state of the outputs If you don t wish to keep track of the state of the outputs the Serial I O interface will do it for Bibaja Landscape Automation LLC 10 2005 vou The following example shows how to querv the Serial I O output state using the O command O lt LF gt PC Sends this command string to Serial I O interface gt O18 lt LF gt Serial I O responds with this In this example the output response from the Serial I O interface shows the Red LED is on and output OUT4 is on Version V Read the version of the Serial I O interface using this command To read the version string V lt LF gt PC requests the current version gt VSIOA20041 Serial I O responds with the current version The version string consists of the following sections gt Acknowledge this is the version command response SIO Serial I O Interface A
16. s Configure the serial port to 9600bps 8 data bits 1 stop bit no parity no flow control Press return until you get the character back acknowledging the return key was pressed Type V lt LF gt and check the version string response is VSIOA20041 If you received the version string correctly your serial I O interface has been installed correctly Bibaja Landscape Automation LLC 12 2005 APPENDIX A SERIAL I O SCHEMATIC Bibaja Landscape Automation LLC 13 02005 a B E D E 4 4 RS232 Interface Circuitry and Connector ki yup 2011 C12 2 1uF 1uF w 3 PO 3 TIIN T10UT T2IN T20UT RIOUT RIIN R20UT R2IN MAX232 2 2 12U 121 LEL RXEODO PCI Card Bracket El n Pouer Connectors POWER 1 8 a 1 1 4 al PCI BRACKET c 2005 SERIAL POWER Bibaja Landscape serio GND GND Automation LLC 7 01 2005 01 57 584 AMP171825 4 Http GUU DID3SJ3 com Sheet 1 of 4 A B C D E 3 a B C D E F 4 4 3 3 UCC Tc zl ci 6 1uF T 4 7uF Z wi gh 1 MAN RST UPP uce Bo m xI jam AING P1 0 P1 1 259202 4 xTAL2 Arni p1 1 C22 1021 Run 2 pa a nRxD 5 epe Too ES p3 1 TXD Pl 4 INI 6 p3 2 INTO P1 5 IN2 7 p3 3 INT1 PI 6 INA 8 pa 4 10 P1 7 2 N S pa 5 11 2 G D P
17. uch as a service call or register available lamp could be added and integrated into the point of sale software Security Systems Security systems can use the 4 contact closure inputs to monitor door open closed sensors occupancy sensors window open closed sensors beam break detectors and any other contact closure switch type device Outputs are useful for controlling lights sounding alarms and for controlling door latch solenoids to unlock doors 12V supply and ground pins are provided to interface with devices such as PIR motion detector occupancy sensors Slimline Pet Immune PIR Motion Detectors available from SmartHome http www smarthome com 7481 A HTML easily attach to the Serial I O interface Security software running on your Mini ITX PC can trigger lamps and sound an alarm when the security system is armed Driveway motion detectors may be integrated to detect cars pulling into the driveway delivery vehicles or detect when you come home late at night and trigger the pathway light Sensors such as the Reporter Motion Detector available from www smarthome com http www smarthome com 7317 html may be used to detect a vehicle or person walking in the driveway and sound an alarm log an event in the security software or light the pathway to welcome you home Thermostats include a switch to trigger your heating or cooling system By adding a thermostat to an input of your Serial I O you can monitor and trigger an alarm whe
18. uld be triggered when alarm conditions are present Relavs mav be used to drive audible bell alarms lights and trigger contact closures to alarm svstems bv ADT and other monitoring service providers to contact local law enforcement The outputs are capable of directly driving 12V lamps Red and green 12V lamps could be used to indicate whether the system is armed or disarmed or in normal or alarm state Bibaja Landscape Automation LLC 3 2005 HARDWARE SPECIFICATION Connectors The Serial I O interface provides the following connectors e 2 power connectors using floppy or hard drive style power cables e 2serial connectors V1 and V2 e 16 spring cage clamp connectors for outputs inputs 12V and ground This PCB diagram shows the location of the connectors on the Serial I O interface PCB pee x e x elo gje ejje o GND eee 5V eellee e oj o 6121 12V O v2 Vi 201 O OUTPUTS INPUTS O a e o Icslflalelalelaielslelalelelels O 5V4 o allealmlalilamojtjojtjojtjat m J BUTTON LEDs Serial I O device viewed from the PCI card bracket Floppy Power Connector The floppy power connector can be used to power the Serial I O interface board using a spare floppy power cable The floppy power connector is located in the upper left corner in the PCB diagram above Hard Drive Power Connector The larger hard drive power connector is located in the lower left corner of the PCB in the diagram above
Download Pdf Manuals
Related Search
Related Contents
JVC ShowView LPT1100-001A User's Manual Manual do Utilizador G510 Hardware OpenCPU User Manual Kramer Electronics 1:2 Computer Graphics Video Distribution Amplifier Modelo BVR-500 GRABADORA DIGITAL DE VOZ Dataflex ViewMaster M3 Monitor Arm 233 Massive 71246/01/30 Bürstsauger/ Carpet vacuum cleaner Copyright © All rights reserved.
Failed to retrieve file