I do have some RFID devices that I have used in the past, but not with GCBASIC.
It should be easy to interface too without a library though as they use TTL Serial (UART) interface at 9600 baud to return a numeric string of a detected Tag. There is probably slightly more involved to set it up but I don't recall it being a difficult task. (Edit: you power it via a Pin and wait for the serial data.)
My tag readers are marked as Innovations ID-20 so I can see if I can dig out the datasheets and create something in GCBASIC if you need me to.
Last edit: Chris Roper 2019-09-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having looked up the RFID MFRC 522 I see that it is a considerably more advanced device than mine and uses 4 Wire SPI communications. It can read and write to tags / cards and also act as an NFC tag.
So my offer above will do you no good, but there are Arduino Libraries out there which may give you a good Idea of how to use it in GCBASIC.
Last edit: Chris Roper 2019-09-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Chris- Arduino libs are no use to gcb users...well most...or they wouldn't be using gcb.
harduino unless you use c. like using gcb if you don't use basic.
To be honest,they have a lib for everything. It's the likes of evan that keep gcb up to date...ish.
The arduino libs are 3rd party so open source. gcb libs have to fit a common model for approval.
I would like to see peoples forum demos in demos...working ones.
since more devices are covered in c for arduino how about how to convert to gcb...which I think would be popular.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stan - I said "which may give you a good Idea of how to use it in" I did not say that the Arduino Library was directly usable.
Any code in any language is useful as a programming guide.
It is a readymade Algorithm that you can read to understand the key steps involved and the order in which they are performed. It is read along with the Datasheet and the GCBASIC Help files to guide you in creating a GCBASIC Library with similar functionality.
since more devices are covered in c for arduino how about how to convert to gcb...which I think would be popular.
That is my point to Gigi, a point that you clearly missed - attempt to convert the Arduino Library for use in GCBASIC.
You can not expect the lead programmers to keep on top of every arduino library ever released and then purchase the hardware and do the conversion just in case You need it down the line.
Arduino has extensive libraries because users create them and submit them. The same happens here.
Contributions will grow Great Cow BASIC to the benefit of all - Negative criticism and constantly pointing out that you prefer Arduno will not!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@ Chris Roper
In fact it is a fairly advanced device that requires initialization, I want to use it in the simplest way to detect tags and little else. If no one has ever used them in GCB I will go and see the huge arduino libraries to come up with something useful.
Translating arduino libraries into GCB I think it is a huge job that cannot be done automatically and they are justified if they are used by many users.
Thank you for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you but this is a completely different device: https://www.teachmemicro.com/arduino-rfid-rc522-tutorial/
I sent him back to China, but I still wanted to read up on how to handle it.
It can work with interface, SPI, I2C or serial by setting some pins and you probably also need commands to initialize it. I'm reading the datasheet calmly to understand.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a library to manage this device or even the sample code so as not to start from nothing.
Thanks
Is this a question?
I do have some RFID devices that I have used in the past, but not with GCBASIC.
It should be easy to interface too without a library though as they use TTL Serial (UART) interface at 9600 baud to return a numeric string of a detected Tag. There is probably slightly more involved to set it up but I don't recall it being a difficult task. (Edit: you power it via a Pin and wait for the serial data.)
My tag readers are marked as Innovations ID-20 so I can see if I can dig out the datasheets and create something in GCBASIC if you need me to.
Last edit: Chris Roper 2019-09-16
Having looked up the RFID MFRC 522 I see that it is a considerably more advanced device than mine and uses 4 Wire SPI communications. It can read and write to tags / cards and also act as an NFC tag.
So my offer above will do you no good, but there are Arduino Libraries out there which may give you a good Idea of how to use it in GCBASIC.
Last edit: Chris Roper 2019-09-16
Chris- Arduino libs are no use to gcb users...well most...or they wouldn't be using gcb.
harduino unless you use c. like using gcb if you don't use basic.
To be honest,they have a lib for everything. It's the likes of evan that keep gcb up to date...ish.
The arduino libs are 3rd party so open source. gcb libs have to fit a common model for approval.
I would like to see peoples forum demos in demos...working ones.
since more devices are covered in c for arduino how about how to convert to gcb...which I think would be popular.
Stan - I said "which may give you a good Idea of how to use it in" I did not say that the Arduino Library was directly usable.
Any code in any language is useful as a programming guide.
It is a readymade Algorithm that you can read to understand the key steps involved and the order in which they are performed. It is read along with the Datasheet and the GCBASIC Help files to guide you in creating a GCBASIC Library with similar functionality.
That is my point to Gigi, a point that you clearly missed - attempt to convert the Arduino Library for use in GCBASIC.
You can not expect the lead programmers to keep on top of every arduino library ever released and then purchase the hardware and do the conversion just in case You need it down the line.
Arduino has extensive libraries because users create them and submit them. The same happens here.
Contributions will grow Great Cow BASIC to the benefit of all - Negative criticism and constantly pointing out that you prefer Arduno will not!!!
@Anubium
of course yes
@ Chris Roper
In fact it is a fairly advanced device that requires initialization, I want to use it in the simplest way to detect tags and little else. If no one has ever used them in GCB I will go and see the huge arduino libraries to come up with something useful.
Translating arduino libraries into GCB I think it is a huge job that cannot be done automatically and they are justified if they are used by many users.
Thank you for your help
Here is my GitHub. https://github.com/Anobium/Great-Cow-BASIC-Library-Development/tree/master/nRF24l01
Thank you but this is a completely different device:
https://www.teachmemicro.com/arduino-rfid-rc522-tutorial/
I sent him back to China, but I still wanted to read up on how to handle it.
It can work with interface, SPI, I2C or serial by setting some pins and you probably also need commands to initialize it. I'm reading the datasheet calmly to understand.
Post the datasheet. Typically, you do not need to start with a blank sheet. I will see what is similar in terms of the library.
Well, here are datasheet and arduino libraries that I'm reading:
https://www.nxp.com/docs/en/data-sheet/MFRC522.pdf
https://github.com/miguelbalboa/rfid
I have same device and cards here. :-)
Porting looks simple. Not sure you need all the different devices sorted.
OK, I have to wait 30-40 days, if all goes well before I get there you already have the written code that I study.