Wednesday, July 20, 2011

Labview VI experimental program to control K8055 (&k8067)

features that work:
- views temperature in °C and °F, plots on a chart (timing not ok), calculates average temperature over given time.
- generates independents customisable sine signal "point by point" updated every 10ms for both analog outputs 0 to 5 VDC (low frequencies only : 3-0.01 Hz) will be ideal to control lights or servo positions through my pulse adaptor.

wanted improvements:
- logging of temperature data every x time in ONE ascii file (and not a few thousands in 10 seconds)
- coordination of the card with the "usb missile luncher" to launch an attack when someone is detected by a sensor plugged onto the K8055 card.
-connection to an amplifier and a vibrations detector. (magnet at tip of stick with a weight held by a spring and facing an electromagnetic loop. each motion generates a current that is detected and amplified)
-program sound recognition?
-control of the k8055 card and of the seat by simulator game ( xsim ).

link to V0.1
http://www.mediafire.com/?86nqs4fefsgwl3l

***
Elmo's seat - K8055 + dc to servo pulse converter + Labview sinus signal



Test of the sinusoidal signal generated with LABVIEW for the K8055 and servo adapter (see older post). the motions of both the servo follows the signal to 10 sinus cycles by second, beyond that frequency, the servos are attenuating the amplitude of the signal because it is not fast enough. (HITEC cheap servos tested here). The device follows the computer signal +/- beyond 20-25Hz easily.




**********
UPDATE 20-7-11

I recently found this program which controls up to four K8055 Cards and is very intuitive to setup your own program. It has many nice features!

download (dutch + english):
http://www.edutechsoft.nl/progeasy.html
forum:
http://forum.velleman.eu/viewtopic.php?f=3&t=3440&start=15

************

K8055 as interface to read ambiant relative humidity with a 5 euro sensor (over (30-90% +/-5% RH): SY-HS-220
sy-hs-220.pdf

Connection to K8055:
(-) = GND Of K8055
(signal) = A1 or A2 of K8055
(+) = one of the unused pin close to the potentiometers of K8055.

Since the device only uses 3mA current, no problem to use the power from the K8055 board.

the conversion of the 0-255 value read on the K8055 (not full range)can be converted to % RH using the approximation formula based on linear regressions:
(valid only when the potentiometer of the channel connected to K8055 is turned clockwise to the maximum = 0-5VDC IN = Max. DC range)

%RH = ((Value * 20,228 + 19,685) + 11,429) / 33,143

No comments: