Monitor soil moisture and water plant. Portable and high efficiency with lithium-ion batteries.
Part | Value | Package | Function |
---|---|---|---|
IC1 | ATTINY13A | SOP-8 or DIP-8 | CPU |
C1 | 100nF | 0805 or 0603 (104) | CPU |
T1A/B | 2N4401 NPN | TO-92 or SOT-23 | Pump |
R1 | 100R | 0805 or 0603 (101) | Pump |
R2 | 10k | 0805 or 0603 (103) | Pump |
R6 | 10k | 0805 or 0603 (103) | Sensor |
LED1 | Red | 0805 or DIP-2 | LED |
R7 | 1k | 0805 or 0603 (102) | LED |
- | 3.7-4.2V | Lithium 18650 | Battery |
- | TP4056 | Lithium Charger | Charger |
Designed with EagleCAD
Install "avr-gcc" and run "make".
avr-gcc -std=gnu99 -Wall -Os -mmcu=attiny13a main.c -o main.o
avr-objcopy -O binary main.o main.bin
avr-objcopy -O ihex main.o main.hex
avrdude -p t13 -c usbtiny -Uhfuse:w:0xFB:m -Ulfuse:w:0x6A:m -U flash:w:main.hex:i
There are 3 options to flash ATtiny13 chip.
- USBtiny (built-in)
- USBasp
- Raspberry Pi
ATtiny13 Plant
USBasp / USBtiny