I am bit new to electrical engineering and I was hoping to get a sanity check on my reasoning! I want to design a low-powered (battery-driven) plant watering PCB.
It uses an attiny13 as the switch for an IRF520 MOSFET and it will have three terminal blocks: J1, J2, J3.
- J1: power (perhaps 4 NiMH size AA) => 4.8v
- J2: Optional soil moisture sensor
- J3: Pump, or perhaps a solenoid valve
Below is what I drew in KiCAD, I have wired it up on a breadboard, with 4 AA (1.2v) batteries as power source, and it seems to work.
So, my questions:
- Does this make conceptually sense? Or have I made any general dumb mistakes? :)
- Does my KiCAD schematic seem ok? Can I move on to try to make a PCB out of this? (Any and all tips and conventions to follow are welcome!)
- Am I missing any capacitors or resistors (or other component) to make this circuit proper?
My (naive beginner) thinking for capacitors, diodes and resistors in this circuit:
- C1: decoupling capacitor for the attiny13 to protect the MCU from spikes in current
- R1: Pull-up resistor for MCU reset pin to guard against spurious reset
- R2: Protect the MCU pin from over-current
- R3: Pull-down on the MOSFET gate to ensure it stays low during MCU boot
- D1: A flyback diode to protect from voltage spikes at disconnect
- Is my thinking flawed in any way? Or am I missing some aspects? I am grateful for all clarifications!
Thanks to all and any who reads or answers this question!