Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5034

MicroPython • Re: Micropython project debug

$
0
0
How are you managing Wiegand decoding? Rolled your own, or the wiegand library?
Thanks for your reply, sorry not to have replied sooner. I got hold of another reader ( more compact with some extra features ). So trying to get that one working on my existing board.

Regarding to the library, No I copied an idea from the internet. Basically I've two GPIO pins that are set up to update a variable whenever a bit comes in on one or other of the Wiegand interface wire pair. If it's 26/35 bits long, it's passed to a checksum routine which returns the site and card Id. I'm not too bothered about the site id, as the tokens I've got appear to have a variety of different Ids.

Meanwhile keyboard input comes in through the Wiegand interface as individual 4bit for each numeral.

But, thanks for the link to the Wiegand library, I'll have a look at it and maybe incorporate it into the project.

The way I've got this setup is that data is converted to strings of 26/35 bit lengths, I wondered if it would be a better implementation to accumulate the Wiegand codes as binary bits rather than a string.

Regards

Statistics: Posted by APL2 — Thu Nov 28, 2024 2:08 pm



Viewing all articles
Browse latest Browse all 5034

Trending Articles