Im thinking of designing and making a Relay/Input card controlled by sending a command via the serial port. Im not gonna work on it yet but hopefuly when Im all done with the outstanding/overdue project Ill look deeply into it.
Anyway, Im thinking of something along this line :
The card support 8 relays, 5 digital inputs and 3 analog inputs.
The relays can be used to control electric windows, central locking, boot lock...etc.
The 6 digital inputs can be used to sense opened door, boot, ignition on, acc on...etc.
The 3 analog inputs can be used for sensing car battery voltage, temperature...etc.
Operating the relay is done by sending a command to the serial port :
$RELAY1,ON = this turn relay 1 on
$RELAY1,OFF = this turn relay 1 off
...the same goes for RELAY2 - RELAY8
The card also output the current state of each relays as well as the 8 inputs.
Example is as follows :
$RELAY1,OFF = {Relay 1 is currently off, boot is locked}
$RELAY2,ON = {Relay 2 is currently on, door is open}
.
.
.
$RELAY8,OFF
$INPUT1,HIGH = {Door is closed}
$INPUT2,HIGH = {Bonnet is closed}
.
.
.
$INPUT5,HIGH = {Driver seatbelt is on}
$INPUT6,201 = {Main battery voltage is 12.8V}
$INPUT7,192 = {Backup battery voltage is 12.0V}
$INPUT8,128 = {CarPC temperature is 40deg C}
The status of the cards is serialy outputed at lets say 9600,N,8,1 or higher. The update rate can be 1 per sec or more. Input 6-8 are the analog inputs, the measured analog values is represented by decimal values from 0-255. The PC can then decide what to do with these values.
Those are just some ideas I came up with. The controller is to be based on PIC MCU. If anyone is interested in the project please make a comment. Otherwise Ill just simplify the design just purely for my own need
Cheers
