Shop OBEX P1 Docs P2 Docs Learn Events
RFID board in Spin — Parallax Forums

RFID board in Spin

Buck RogersBuck Rogers Posts: 2,185
edited 2015-01-12 08:46 in Propeller 1
Hello!
Last year, and on my birthday I received a Parallax RFID (Serial) and tag sampler kit. Yes this is the RT version so I found the entire range of materials in that category. The Stamp stuff worked without a problem.

However the Spin stuff is a tad bit peculiar. For example the pin settings for the board to be connected to the P1 device specify P16 and P17 for obvious reasons, and it also explains how to wire it for power.

However Jon you don't mention what board this was tested on. I'm running it on a PAB, and for the P16 and P17 connections since those are stacked on the top right of the board with power connections, so the PAB could be used as the brains of the activity bot, I ended up making use of two extension cables who are short in length from that selection, (also an RT package).

After having to confirm the wiring for what gets connected to P16 and P17, (which sadly happened the first time on the Stamp) I am now getting a terminal widget screen prompting me to show it a tag, it then prints out the code on the tag, and complains its unknown. I presume it is insisting that the tags it sees are unknown because this is a demo program and the next steps would be to configure things to write the tag contents into an array and have it wait for a match.

Since this is my first attempt this year in getting anything to work on a Prop board I would say its a win despite the need for close order understanding of how everything is wired in place..

Comments

  • JonnyMacJonnyMac Posts: 9,105
    edited 2015-01-11 13:50
    These posts make me nuts. Despite writing a fully functional demo, it's never enough for some.
    I presume it is insisting that the tags it sees are unknown because this is a demo program and the next steps would be to configure things to write the tag contents into an array and have it wait for a match.


    All you have to do -- which I'm sure I explained in a previous post -- is read your tags and move them into the database (DAT section at end of program). If you want to do that on the fly using a DAT table, you'll need an I2C or EEPROM object and understand how to write to a specific address in the EEPROM. Based on this thread I'm not sure you're ready for that -- just copy and paste the RFID tags from the terminal into your listing.

    However Jon you don't mention what board this was tested on

    Says PAB right in the listing. What do I have to do to make things any easier?
  • Buck RogersBuck Rogers Posts: 2,185
    edited 2015-01-12 08:46
    JonnyMac wrote: »
    These posts make me nuts. Despite writing a fully functional demo, it's never enough for some.




    All you have to do -- which I'm sure I explained in a previous post -- is read your tags and move them into the database (DAT section at end of program). If you want to do that on the fly using a DAT table, you'll need an I2C or EEPROM object and understand how to write to a specific address in the EEPROM. Based on this thread I'm not sure you're ready for that -- just copy and paste the RFID tags from the terminal into your listing.




    Says PAB right in the listing. What do I have to do to make things any easier?

    Regarding the board name, it seems I missed that. Regarding assigning the tag names to the database, I'm leaving that as an exercise to the next user as I was more interested in confirming that the reader did indeed work here with the occupant of the PAB.
Sign In or Register to comment.