Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
RC522
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
Recent
Dynamic Array Extensions,...
by
Duthomhas
[
Today
at 09:10:06 am]
Scrolling a tpanel
by
mtanner
[
Today
at 09:01:36 am]
TComboBox with full text ...
by
apeoperaio
[
Today
at 08:59:21 am]
CD Eject
by
440bx
[
Today
at 08:08:14 am]
I'm seeking (beta-)tester...
by
OkobaPatino
[
Today
at 07:25:21 am]
Generics without speciali...
by
Nitorami
[
Today
at 05:29:06 am]
Using DataModules query
by
dsyrios
[
Today
at 05:02:13 am]
how to get a X Y line cha...
by
daveinhull
[
Today
at 02:22:16 am]
output window wont pop up
by
Martin_fr
[
Today
at 01:35:04 am]
DYLIB Cannot Add Requirem...
by
kevin.black
[
Today
at 12:45:00 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: RC522 (Read 409 times)
sergechelli
Newbie
Posts: 2
RC522
«
on:
December 05, 2018, 08:08:14 pm »
Hi,
I am using Lazarus on Raspberry Pi (raspbian)
I want to use the RFID card reader/writer RC522.
Do you have an example how to use it with Lazarus please ?
All library and example found use Python.
Thank you
Serge
Logged
avra
Hero Member
Posts: 1441
Re: RC522
«
Reply #1 on:
December 06, 2018, 10:16:51 am »
On the net I can see that Mifare MFRC522 uses SPI. If that is the reader you have, then there are more then one way to access SPI from FPC on Pi:
http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi
http://wiki.freepascal.org/Hardware_Access
http://wiki.freepascal.org/Raspberry_Pi_-_SPI
On this page you can find RC522 datasheet and Arduino library with example code:
https://playground.arduino.cc/Learning/MFRC522
It would be much easier to adapt Arduino code then Python code. If you don't speak C then datasheet will be your best friend (after logic analyzer, of course :-).
Logged
ct2laz
- Conversion between Lazarus and CodeTyphon
bithelpers
- Bit manipulation for standard types
pasettimino
- Siemens S7 PLC lib
sergechelli
Newbie
Posts: 2
Re: RC522
«
Reply #2 on:
December 07, 2018, 12:00:50 am »
Thank you.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
RC522