Connecting two rfid readers (ID-12 innovations) at the same time to the arduino
dear forum,
currently working on (for me) complex project create physical calendar can read rfid tags.
one of interactions want have me first identify tag on central interface, can speak message, can put rfid tag on calendar, when second reader comes tag read message me. use id-12 innovations rfid reader.
the problem have 2 rfid readers, way initialize it:
....
newsoftserial rfidserial = newsoftserial(rfid_rx, rfid_tx);
....
setup(){
rfidserial.begin(9600);
...
}
this works when use single rfid reader.
then when want same again second rfid-reader in same code takes reader inititalized last (rfidserial.begin(9600)
.
is possible create 2 newsoftserials?
this how connected reader (i connected them 3,4,5,6 instead of 13,0 in image):
currently working on (for me) complex project create physical calendar can read rfid tags.
one of interactions want have me first identify tag on central interface, can speak message, can put rfid tag on calendar, when second reader comes tag read message me. use id-12 innovations rfid reader.
the problem have 2 rfid readers, way initialize it:
....
newsoftserial rfidserial = newsoftserial(rfid_rx, rfid_tx);
....
setup(){
rfidserial.begin(9600);
...
}
this works when use single rfid reader.
then when want same again second rfid-reader in same code takes reader inititalized last (rfidserial.begin(9600)
.is possible create 2 newsoftserials?
this how connected reader (i connected them 3,4,5,6 instead of 13,0 in image):
quote
is possible create 2 newsoftserials?
it possible make 2 instance of newsoftserial, 1 instance can listen @ time. need arduino has more 1 hardware serial port, or need connect 1 of rfid readers hardware serial port.
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Connecting two rfid readers (ID-12 innovations) at the same time to the arduino
arduino
Comments
Post a Comment