EasyEDA User rodyne
rodyne
Public Project: 11 Footprint Package: 58 Likes: 29 Favorites: 25 Views: 14202

RFID Port Combiner

1 year ago  

License: Public Domain

Status: In Progress

Fork
Open in Editor

PCB suitable for hammond 1591c enclosure

The first version has been tested and revisions put in.

The only restriction in the second version is that I have changed the voltage down to 9V as the current at full load with all relays engaged is 300mA and while it is working reliably it is close to the limit of the LDO which gets hot (4v x 0.3 = 1.2W power) I can use 9v for my purposes but would recommend moving to a switching reg for proper industrial supplys (I may make a rev3)

Note the C Code is attached. Just a single 300 line file so should be easy to follow.

Attachments

FilenameDownload
main.c.txtDownload

BOM

IDValueQty.PackageComponentsManufacturer Part
1DS1487M1SOIC-8U1
21N40013SOD123D1,D2,D4
31u1C1210C1
40.33u1C1210C2
522p2C0805C3,C5
6100nF2C0805C4,C6
711.0592MHz1HC49UPQ1
8PIC18F24K221SOIC-28U3
9ICSP11X05_LOCKJ2
1010K3R0805R2,R7,R9
111K7R0805R3,R1,R4,R5,R6,R8,R10
12HOST11X02_2.54_SCREWTERMJP1
13PWR41X02_2.54_SCREWTERMJP4,JP2,JP3,JP5
14RFID110805L1
15PRINTER10805L2
16FUSE_PTC1PTC1812LF1
17PRINTER1M1X4J3
18RFID210805L3
19PC10805L4
20PWR10805L5
212N70001WSOT-23Q2
22BUZZER1BUZZER-12MM-NSSG1
231001R0805R11
24ZENER2SOD-123ZD1,ZD2
25RELAYS1M1X6J4
26HT1117-50_SOT2231SOT-223U4

Comments

rodyne

Takes two serial RFID readers and re-directs both to host via RS485. Appends an A to RFID1 and B to RFID2 to allow identification by host of which one was activated. The host sends data which is re-directed to the PTR (Printer) port (connected by a MAX232 external DB9 socket about $1 off ebay) if the host sends a preformatted command (determined in software it can activate or de-activate relays 1-4 which are on an external relay board (again about $4 ea off ebay)

Note this is the second revision. Changed from 7805 to 1117 for LDO as I found a bunch of them in my parts bin and Re-mapped RFID1 and RFID2 onto INT1 and INT2 so I could better control the soft UART and make it all more reliable. Rest of circuit seems to work as specified.

Firmware will be published eventuallt on my github page but there will be a lot of testing before then.

rodyne

Decided it was such a small project its not worth going through github, so the C file is attached here.

Once you have downloaded the file rename it from .txt to .c then download MPLABX and XC8 from microchip.com, create a new project with the PIC18F2xK22 as the target and add the main.c file.

Firmware is still work in progress as I mentioned.

Add Comment