I need help to program my arduino so it can read from the RFID device. The device is using I2C interfaces. I alredy got the microchip adress (the binary adress) for the program.
I have watched some tutorials but I'm not sure if I will need something when I'm programming for this to work.
So I wanna know what I need or have to find to make it work?
Do I need a specific for the RFID reader?
johnwasser:
I can't help without knowing exactly what RFID reader you have.
PROX-65KG is the RFID I'm using
You use the wire library to communicate via i2c.
Normally you have:
wire.begin() and some initialization writes in setup()
a command write followed by wire.requestFrom() to get data in loop()
The details differ and have to established from the documentation for the device in question
Well the documents don't have any information that is needed so they are useless.
PROX-65KG
Art. nr 20 043 641 E. nr 58 753 03
Grå beröringsfri läsare med knappsats. Ansluts till DB-50. Prox-65 har en fem meter färdig kabel för anslutning i DB-50 delningsbox. För att uppnå hög säkerhet så bör kod i kombination med tag alltid användas vid utomhus entréer för att uppnå ett säkert skalskydd. Läsaren kla- rar till och frånslag av larm."
Google translation from Swedish
PROX 65kg
Art. No. 20,043,641 E. No 58 753 03
Grey proximity reader with keypad. Connect to DB-50. Prox-65 has a five-meter finished cable for connection to DB-50 splitter box. To achieve high safety you should code in combination with tag always be used for outdoor entrances to achieve a secure perimeter. The reader is able to carry to and from the kind of alarm.
Sounds like you need a DB-50 splitter box.
Does the PROX-65KG have any markings on the connector for the I/O cable? How many wires in the cable? What kind of connector?
Jupp found that one to... Maybe get anther reader or have a look inside to see what chips they are using. I doubt they developed a reader from scratch.
SDA and SCL implies a I2C (a.k.a. Two Wire) interface. See the "Wire" library example:
File->Examples->Wire->master_reader
Use Google to search for an I2C Scanner sketch. This will look for any devices on your I2C bus and tell you their address. You can then use the address to start talking to the device.
johnwasser:
SDA and SCL implies a I2C (a.k.a. Two Wire) interface. See the "Wire" library example:
File->Examples->Wire->master_reader
Use Google to search for an I2C Scanner sketch. This will look for any devices on your I2C bus and tell you their address. You can then use the address to start talking to the device.
"Wire.requestFrom(2, 6); // request 6 bytes from slave device #2
the tags i'm using has an id of 10 digits. is it enough with 6 bytes on this program anyway?
and im gonna use a pin code too and wonder if it will work.
Use Google to search for an I2C Scanner sketch. This will look for any devices on your I2C bus and tell you their address. You can then use the address to start talking to the device.
I have tried the i2c scanner but it doesn't work. And I have tried the address I think it is from the documents.
But I don't know how to communicate with it.
hasaslafi:
I have tried the i2c scanner but it doesn't work.
It is very possible that your device is not really an I2C device. You will have to do a lot of reverse engineering to figure out the interface. You will probably need to buy or borrow some test equipment and learn how to run it.
Are you sure you don't want to just buy an RFID device that is known to work with an Arduino?
It is very possible that your device is not really an I2C device. You will have to do a lot of reverse engineering to figure out the interface. You will probably need to buy or borrow some test equipment and learn how to run it.
Are you sure you don't want to just buy an RFID device that is known to work with an Arduino?
It has I2C interfaces becouse the pins are labeled and the labels are SDA, SCL, DC+ and DC-.
If you can find a working installation you could analyse the bus traffic
What do you mean? Are you reffering to a I2C scanner sketch?