Shop OBEX P1 Docs P2 Docs Learn Events
Parallax RFID Arduino software to toggle an output bit. — Parallax Forums

Parallax RFID Arduino software to toggle an output bit.

EllisDawsonEllisDawson Posts: 1
edited 2015-05-19 10:38 in Accessories
I downloaded the Parallax demo code for reading RFID cards. This only provides an output to the Serial Monitor on screen.
Does anyone have a way to modify this software that will toggle an Arduino output bit when the code recognizes a specific RFID card which is stored in the Arduino board? I would appreciate some help in how to modify the demo software code that will perform this task. Thanks

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2015-05-19 09:10
    I moved your post to a more appropriate forum since the original was for support using this forum (problems posting, etc.).
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2015-05-19 10:38
    The Arduino supports numerous ways to compare strings, and many of these methods are detailed in the Arduino software reference. One way is to use the String object, which is detailed here:

    http://www.arduino.cc/en/Reference/StringObject

    This converts the string from a collection of characters in an array to a more robust object that supports numerous specialty functions, such as compareTo() and equals().

    There's also the standard C strcmp (string compare) statement. Here's a thread on the Arduino forum that appears to discuss the very thing you are doing:

    http://forum.arduino.cc/index.php?topic=41957.0
Sign In or Register to comment.