[quote]however the switch is permanently triggered in the demo software[/quote]This seems to indicate the input is all the time low when the mag sensor is connected there.
[quote]how do i get the device to recognise the output from the mag sensor [/quote]How high is the voltage swing at the output of the mag sensor? Should be about 3V to drive the digital input.
Please note that there are pull-up resistors at the digital inputs of the K8055.
[quote]also the version of the demo is different to the version in ther manual - it has no counter[/quote]In the programs on the CD there should be the counter.
Look into the CD folder: \K8055_VM110 USB board
In this package there are the examples and the DLL documentation: Software DLL Rev 2
older DLL with examples and source code (source can also be used with DLL rev 3)
In this package there is the latest DLL: Software DLL (Rev 3.0.2)
supports Windows Vista, VC++ version and executable examples
There are 1K5 series resistors as short circuit protection at the analog voltage outputs.
The analog voltage outputs are too “weak” to power the sensor.
Do you know the current consumption of the sensor?
If the current is only less than 50mA you may power it from the USB +5V supply of your PC.
You’ll find this +5V from the “upper” pin of the headers SK2 and SK3.
i am now having problems getting vb to talk to the card
for example if i try to connect to the card with this code
Dim CardAddress As Long
Dim h As Long
CardAddress = 0
CardAddress = 3 - (Check1.CheckState + Check2.CheckState * 2)
h = OpenDevice(CardAddress)
Select Case h
Case 0, 1, 2, 3
Label1.Text = "Card " + Str(h) + " connected"
Case -1
Label1.Text = "Card " + Str(CardAddress) + " not found"
End Select
‘h’ ends up returning a very large number
however if i run the vellemandemo101 program it appears to be working