USB interface card K8055 the Velleman USB card can be used to input and output to and from the Ai. The card address is set to 0 so both address jumpers on the card need to be in place. At present the Ai lights up the digital output led's according to the output used. The analogue outputs increase in brightness on each timer event until fully lit then reset to 0. Digital inputs 1 and 2 are used along with the counter. When buttons are pressed a code is put into the input depending on the button pressed and the number of times pressed e.g. if you press button one twice then b1x2 is sent to the input press button two three times then b2x3 is sent to the input etc. Some routines add extra characters to the output depending on what the Ai is doing at the time. If the Ai is playing a playlist then ps is added to the end, if an input is expected then ei is added to the end eg. if music is playing and button two pressed twice then b2x2ps is sent to the input. If a question has been asked that was triggered by the expectedininput keyword and button two pressed once then b2x1ei is sent to the input. This means that one button can be used to do many things. The card can be bought from Maplin Electronics and costs around £25.
29-07-2006 I have mounted 2 infrared detectors and a web cam on a 12volt windscreen wiper motor. The detectors are pointing out to the left and right and the camera is pointing straight forward. By monitoring the inputs, instructions are sent telling the motor which way to turn. With USB D input to input ticked in settings the code of the digital inputs 3 to 5 is sent to the input -d3s0-d4s1-d5s0 this code tels the ai the left ir detectors has turned off so the TF referance to the code sends the instructions to turn to the left, the code is open d3on d4on. To turn right the ir info is -d3s1-d4s0-d5s0 this sends open d3on to the input turning it right.