K8055 applications

Posted by Herman, but not at the right location.

Im new when it comes to using this kind of device, however i want to use it for my Visual Basics coursework.
Umm im planning on making it run a bmx race gate, this involves it controlling a pair of “Traffic lights” whilst playing an audio file, finaly followed by releasing the gate mechanism. A lot to take in. Any ideas?

{from another forum user, not on behalf of Velleman.}

[quote=“VEL417”]i want to use it for my Visual Basics coursework.
im planning on making it run a bmx race gate, this involves it controlling a pair of “Traffic lights” whilst playing an audio file, finaly followed by releasing the gate mechanism. [/quote]

Herman

Not clear from your question which bit seems difficult to you.

1] Either on the supplied CD or on the Velleman website there is VB source code for the graphical demo program - that gives you examples of how to control each of the functions of the card from VB.

2] Traffic lights could just be Red, Yellow, Green LEDs connected to 2 sets of 3 digital outputs, turned on and off in the right sequence under program control.

3] Releasing the gate could be represented by turning another LED on, or performed in reality by connecting a relay to a digital output, as shown in the manual.

4] I don’t think playing audio is within the scope of this board. You could -
4a) use a digital output to turn on an external audio player via a relay;
4b) use a digital output to turn on an electronic ‘siren’ like kit MK113;
4b) use an analog output to crudely control a voltage controlled oscillator

Good luck

Or you could play an audio file trough the soundcard of the PC…
e.g. VB6 can control the K8055 and mediaplayer at the same time.
The mediaplayer can be used as a component in your VB project. (It is very likely that other programming environments can do this too, but my experience is limited to VB6)

The PlaySound api call can play a simple wav file

Example for VB6: http://support.microsoft.com/kb/86281