PCB Design for Cat Deterrent
VBUS_5V, 3V3_LOGIC, PUMP_GATE, PIR_OUT, LED_STAT, and MOSI-related connections.RESET, PB1/MISO, PB2/SCK, LED anode, some 3.3 V/passive branches, and ground.Table
| Rail | Source | Expected Voltage | Tolerance | Measure At | Current Limit | Pass Criteria |
|---|---|---|---|---|---|---|
| VBUS_IN_RAW | J1 pin 1 | 5.0 V | supply dependent | J1 / F1 P1 | 100 mA initial, then higher for pump | No short to GND |
| VBUS_5V | F1 P2 | 5.0 V minus protection drop | supply dependent | TP1 | 100 mA initial | Present after F1/link |
| 3V3_LOGIC | U2 VO | 3.3 V | +/-5% for bring-up | TP2 | <50 mA expected without pump | 3.135 V to 3.465 V |
| GND | J1 pin 2 | 0 V | reference | TP3 | n/a | Common return continuous |
Table
| Signal | Net | Expected State | Measure At | Notes |
|---|---|---|---|---|
| Reset | RESET | High near 3.3 V idle | U1 pin 1 or J4 RST | R3 pulls up; C7 filters |
| PIR output | PIR_OUT | Low idle, high on motion | TP4 | Depends on AM312 module behavior |
| Pump gate | PUMP_GATE | Low at reset/idle | TP5 | R2 pulls gate low |
| Pump switch node | PUMP_SW | Near 5 V off, near 0 V on | TP6 | With pump connected |
| Keep-alive gate | KA_EN_ISP_SCK | Low unless firmware pulses | Q2 gate | DNP branch by default |
Table
| Connector | Pins | Test Method |
|---|---|---|
| J1 power input | P1=VBUS_IN_RAW, P2=GND | Continuity and polarity check before power |
| J2 pump | P1=VBUS_5V, P2=PUMP_SW | Verify diode polarity and MOSFET switching before pump install |
| J3 PIR | Pin_1=3V3_LOGIC, Pin_2=PIR_OUT, Pin_3=GND | Verify purchased AM312 module pinout before plugging in |
| J4 AVR ISP | VCC, GND, MOSI, MISO, SCK, RST | Continuity to U1 pins and programmer target detection |
Table
| Interface | Signals | Connector | Tool |
|---|---|---|---|
| AVR ISP | MOSI/PB0, MISO/PB1, SCK/PB2, RESET/PB5, VCC, GND | J4 | USBasp or AVR ISP |
Table
| Test | Components | Input | Expected Output | Pass Criteria |
|---|---|---|---|---|
| LED | U1, R4, LED1 | Firmware startup | LED blinks | Visible blink, no excess current |
| PIR input | J3, U1 | Motion or logic-high test | Firmware sees PIR_OUT | Spray command only after trigger |
| Pump gate | U1, R1, R2, Q1 | Firmware spray command | TP5 rises to about 3.3 V | Gate returns low after burst |
| Pump switch | Q1, D1, J2, C5/C6 | Pump connected | PUMP_SW pulls low while on | No MCU reset or rail collapse |
| Keep-alive optional | Q2, R5 | ENABLE_KEEPALIVE firmware true | Pulsed load current | Only if selected power bank sleeps |
Table
| Measurement | Location | Expected Value | Instrument |
|---|---|---|---|
| 5 V input | TP1 to TP3 | about 5.0 V | DMM |
| 3.3 V logic | TP2 to TP3 | about 3.3 V | DMM/scope |
| Pump gate high | TP5 to TP3 | about 3.3 V | Scope |
| Pump switch on | TP6 to TP3 | <0.2 V at <=1.5 A | Scope |
| Pump switch turn-off clamp | TP6 to TP3 | about VBUS + Schottky drop, far below 30 V | Scope |
Table
| Test Section | Result | Notes |
|---|---|---|
| Visual Inspection | [ ] Pass / [ ] Fail | |
| Power Rails | [ ] Pass / [ ] Fail | |
| Critical Signals | [ ] Pass / [ ] Fail | |
| Connectors | [ ] Pass / [ ] Fail | |
| Programming | [ ] Pass / [ ] Fail | |
| Functional Validation | [ ] Pass / [ ] Fail |
Prerequisites
1. Visual Inspection
2. Power Rail Verification
3. Critical Signal Verification
4. Connector and Interface Tests
5. Programming and Debug Interface
6. Functional Validation
7. Expected Measurements Reference
Power Bank Idle Test
Pass/Fail Summary