RE: Sending Alphabets over to Adafruit IO

Im doing a project which involves a rfid reader, arduino and esp8266.

Basically i want the rfid data (names) to display onto my feed (adafruit io)
The problem is that it only display numbers on the feed i tried adding names manually on the feed with success, i just cant manage to display alphabets over when using the rfid cards.

The code:

#include <SPI.h>
#include <MFRC522.h>
#include "SoftwareSerial.h"
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.
SoftwareSerial ser(2, 3); // RX, TX

void setup()
{
  Serial.begin(9600);   // Initiate a serial communication
  ser.begin (115200);
  SPI.begin();      // Initiate  SPI bus
  mfrc522.PCD_Init();   // Initiate MFRC522
  Serial.println("Put RFID Card to Scan...");
  Serial.println();
}
void loop()
{
  // Look for new cards
  if ( ! mfrc522.PICC_IsNewCardPresent())
  {
    return;
  }
  // Select one of the cards
  if ( ! mfrc522.PICC_ReadCardSerial())
  {
    return;
  }
  //Show UID on serial monitor
  String content = "";
  byte letter;
  for (byte i = 0; i < mfrc522.uid.size; i++)
  {
    content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
    content.concat(String(mfrc522.uid.uidByte[i], HEX));
  }
  Serial.println();
  Serial.print("User No./Name:    ");
  content.toUpperCase();
  if (content.substring(1) == "C7 21 72 63" ) //change here the UID of the card/cards that you want to give access
  {
    Serial.println("1-JAS");
    ser.write(Jas);
    Serial.println();

    delay(3000);
  }
}

Is there a set of codes that i can try ?

Any help is much appreciated, Thanks.

ser.write(Jas);Is this the line of code that tries to send the letters ?

yes it is, i also tried with “”

The code in your original post does not compile

What do you think is in the Jas variable and where is it declared ?

so does changing it to ser.write(“Jas”); helps ?

Did you try it ?

Why are you using write() and not print() ?

i tried with the “” but only random numbers appear on Adafruit IO . Havent tried with ser.print(); i’ll try it when i can

Sorry but is ser. same as serial. , i couldnt read up on the function as it is not available when i googled.

UPDATE : tried using ser.print();
unfortunately getting the same random values on Adafruit IO.
is there another platform i could use ?

Okay lets try again , is there a way for me to publish a name in a list on the internet everytime somebody taps their rfid card. Its for an assignment submission box project.

jnazarul:
i tried with the “” but only random numbers appear on Adafruit IO . Havent tried with ser.print(); i’ll try it when i can

Sorry but is ser. same as serial. , i couldnt read up on the function as it is not available when i googled.

No, and you have to be specific with case of the letters, capitals or lack off can make a word definition completely change.
This page should help;

Tom... :slight_smile: