Commit Graph

25 Commits

Author SHA1 Message Date
eeeck 1a10abc4d6 Use custom ADC interface using AVR flags 2025-05-14 22:38:32 +02:00
eeeck cbf42aae0a Remove make flash, use build script for flashing
This is not optimal, but could not find a way to make it flash without
verification errors with "make flash".
2025-05-14 14:10:11 +02:00
eeeck 5f154cb20f Refactor loop to main and add explicit while(true)
This change transitions from the Arduino-specific `loop()` to a
standard C++ `main()` function as the program's entry point and
primary execution cycle.
2025-05-14 13:02:17 +02:00
eeeck 82dba30e18 Rename image name to avoid future confusion with ESP board 2025-05-13 20:12:10 +02:00
eeeck af4cb39230 Add ATmega build and flash script
Use Dockerfile for firmware compilation and avrdude for flashing
to ATmega328p via usbasp.
2025-05-13 12:42:50 +02:00
eeeck 4ab01eb3a4 Restructure directory organization 2025-05-13 11:28:18 +02:00
eeeck fff7c84206 Refactor Makefile for compatibility with Docker enviroment and better
AVR dependency management
2025-05-12 22:55:28 +02:00
eeeck 4243734056 Create Dockerfile 2025-05-12 22:54:41 +02:00
eeeck 1e7be9adb6 Restructure AVR compilation with Makefile 2025-05-12 19:24:09 +02:00
eeeck c94f7d2982 Add bootloader circuit 2025-05-04 00:34:31 +02:00
eeeck 2800986f17 Add schematics for ATMega side and initialize MCU 2025-05-03 23:46:02 +02:00
eeeck 1a7858198e Move main to C++ file 2025-05-03 12:38:05 +02:00
eeeck 04a8564d46 Merge pull request 'moisture-library' (#1) from moisture-library into main
Reviewed-on: http://192.168.2.248:3000/erickahmed/plant-manager/pulls/1
2025-05-03 12:16:00 +02:00
eeeck 637fff92ae Update main logic flow and fix bug that did not let MCU sleep 2025-05-03 12:08:08 +02:00
eeeck 5f1675f879 Move moisture to C++ file and update logic flow 2025-05-03 12:07:37 +02:00
eeeck f8b93e47e2 Add config.h with sensor pin and reading constants 2025-05-03 11:42:01 +02:00
eeeck bf7d177046 Add Makefile and refactor moisture reading to separate module 2025-05-03 11:41:34 +02:00
eeeck 4486febccf Extract moisture reading logic into separate function 2025-05-02 14:24:43 +02:00
eeeck 5634ead406 Add moisture sensor reading averaging 2025-05-02 14:13:08 +02:00
eeeck 7684470315 Fix watchdog timer setup and power management
- Add missing watchdog header include
- Improve watchdog timer configuration with proper registers
- Switch to SLEEP_MODE_IDLE to maintain USB/Serial functionality
2025-05-02 00:59:57 +02:00
eeeck 9b20f33498 Directory restructure 2025-05-01 23:59:38 +02:00
eeeck 02a6541647 Add sleep function to enable power down mode 2025-05-01 22:31:30 +02:00
eeeck 577499cccc Implement 8 seconds watchdog 2025-05-01 22:18:51 +02:00
eeeck d58e41c444 Create .gitignore 2025-05-01 21:50:34 +02:00
eeeck a3a59a9a5e Implement basic sensor reading 2025-05-01 21:49:34 +02:00