Shantanu24
Posts: 19
Joined: Fri Dec 30, 2016 6:28 am

Raspberry pi + TTL RFID Reader + USB to ttl converter

Fri Feb 03, 2017 12:15 pm

Hi.
I have a TTL RFID Reader with 3 wires (12V, GND and TXD)
I have one USB to ttl converter and one Raspberry pi 3

I have done connections as follow:
RFID USB-TO-TTL
GND-----GND
TXD------RXD

Given an external 12V power supply to the RFID reader.

When I do the above connections and plug in the usb end of the usb-to-ttl converter into the Raspberry pi, when i give the command

Code: Select all

lsusb
it shows

Code: Select all

Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Also with the command

Code: Select all

ls -ltr /dev|grep -i ttyUSB
it shows

Code: Select all

crw-rw---- 1 root dialout 188,   0 Feb  3 16:47 ttyUSB0
So I am guessing the device is connected at least.

Now I use the following python code to try and read a RFID card

Code: Select all

from time import sleep
import serial

ser = serial.Serial('/dev/ttyUSB0', 115200)

while True:
    print ser.read(12)
But all i see as output are blocks.
No data

I also tried different baud rates. But in vain.

What could be the problem?

SSJ
Posts: 1
Joined: Fri Apr 28, 2017 4:07 am

Re: Raspberry pi + TTL RFID Reader + USB to ttl converter

Fri Apr 28, 2017 4:15 am

Using an EM18 reader and we're facing the same issues while using the USB to ttl.
Kindly post the solution, if you find any. Thank you.

Return to “Beginners”