Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 2.47 KB

README.md

File metadata and controls

82 lines (55 loc) · 2.47 KB

ATtiny13 Plant

Monitor soil moisture and water plant. Portable and high efficiency with lithium-ion batteries.

Photo

GUI

Download

MacOS MacOS

Windows Windows

Linux Linux

Firmware Firmware

BOM (Bill of Materials)

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

PCB

Designed with EagleCAD

Diagram

Diagram

Operational

Technical

Compile

Install "avr-gcc" and run "make".

MacOS

Windows

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

Flash

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.

  1. USBtiny (built-in)
  2. USBasp
  3. Raspberry Pi

Licenses

ATtiny13 Plant

CCSA

USBasp / USBtiny

GNU