There is some good code here
http://www.picbasic.co.uk/forum/cont...r-nine-of-them
I particularly noted there is no pause between the owout and owin.
Steve Earl www.datageo.co.uk
Thank you Steve
Will read though later .... See it reveals any clues !!
BR
Andy
Hi,
Well, if what you're saying is that you don't actually have an IButton connected then I think you've found the problem. Of course the numbers will be wrong, none of the IF statements will evaluate TRUE so the exection will fall thru to the GOSUB wrong statement.Tried the above and variants of it....It is now just going staight to the gosub routine (wrong) I suspect because with no Ibutton in place the "Serial Number" is after all wrong!!
This may sound like a totally crazy idea but you might try connecting an IButton and see if that possibly helps.Help........!!!!
:-)
/Henrik.
Hi Henrick
Yes works fine with button....But!
A lot of the time it needs to sit waiting for a button (looping till it sees one... then it jumps to sub routine if right button) "If" wrong button applied I need to jump out and go elsewhere !
So yes a lot of waiting with no button.
Andy,
I get it now!
You are validating ibuttons that are not always present. In fact most of the time there will not be an ibutton to read.
You are saying you need to detect the presence of an ibutton and when detected check it's serial number and if correct take some action (open a lock for example) if incorrect take some other action (sound an alarm for example)
Is this true?
Steve Earl www.datageo.co.uk
That is the Badger!
Yes.
Your program needs a loop that checks for the presence of an ibutton and if not present continue looping other wise jump out the loop into a serial number read/verify routine eventualy going back to the loop.
Any ideas of how to test for an ibutton present?
Steve Earl www.datageo.co.uk
Bookmarks