For a project I’m working on I’ll need to make some really simple PCBs that will be used to mount Zilog ePIR sensors in waterproof enclosures. I haven’t done any custom PCB design before, so before I start ordering it’d be great to get confirmation that I haven’t messed anything up.
I have two different designs; one is extremely simple, it is just a header for the ePIR, screw terminals for the wires and a resistor and a pot that will be used to adjust the sensitivity of the sensor. I decided to go for the pot soulution because I need each sensor to have field adjustable sensitivity. The board has a relatively large area free of components because the ePIR will be placed parallel to the board (it has a 90 degree header and I have used a right angle one on my board – a backwards solution, but the straight-headered version of the ePIR in impossible to find).
The other board is a bit more complicated because it contains a shift register and a voltage regulator. The shift register is there because I’ll be using many sensors (a total of 40) and running 40 separate signal wires would be uncomfortable. The voltage regulator is because the ePIRs need 3.3V – and while I could probably have powered the whole shebang with 3.3V, I found that using voltage regulators was an okay way to avoid voltage drop problems.
There will be 40 sensors, I need a shift register for every 8th sensor, so there will be 35 of the plain boards and 5 of those with shift registers. The plan is to do as follows:
Arduino → ePIR+74165 → ePIR → ePIR → ePIR → ePIR → ePIR → ePIR → ePIR → ePIR+74165 → ePIR … x7 → ePIR+74165 … etc.
I’ll be using a push-pull line driver at the Arduino because the clock and latch wires will be around 7 metres long total (15-20 cm between each sensor board).
The sensors themselves are connected according to Zilog’s application example. Pins 1 and 8 are ground and 2 is power supply, 5 is signal (low when active). 3, 4 and 6 are inputs; 3 and 6 aren’t used, so they are connected to GND and 3.3V respectively, which is recommended when they are not to be used. 4, which is sensitivity calibration, takes an analogue input between 0 and 1.8V, where 0 is max sens and 1.8 is min. It’s connected to 3.3V via a 100k trimpot in series with an 82k resistor, as recommended by Zilog.
The screw terminals I have used are from the Phoenix library, but I might be using TE instead depending on what’s in stock. I assume they are interchangeable as long as they have the same pin spacing.
I imported the outline of the enclosure’s mounting plate from the manufacturer’s CAD files and placed it on layer 100, designing the outline of the board to fit it.
The plan is to order from Eurocircuits, so I used their DRC. Does anyone here have experience with them? Their prices are reasonable for larger quantities. I also considered OSH Park, but they are cheaper only for small quantities – and quite a bit slower, and because I’m on a deadline I really need things to get moving fast.
I have attached the Eagle BRD and SCH files below – if someone could take a look at them and point it out if there are any huge mistakes I’d really appreciate it.
Thanks in advance!
epir-reva0.brd (62.9 KB)
epir-shiftreg-reva1.brd (81.4 KB)
epir-reva0.sch (239 KB)
epir-shiftreg-reva1.sch (272 KB)