Commit Graph

  • eb897dca9e Reinitialize WDT at runtime eeeck 2025-10-15 13:38:05 +02:00
  • d49c69f647 Add error check eeeck 2025-10-14 23:32:27 +02:00
  • ebee1553ae Increase max frequency to match ESP32-C3 processor eeeck 2025-10-14 23:31:13 +02:00
  • 60c6a19f13 FIx build script with correct implementation for flashing firmware eeeck 2025-10-14 21:58:48 +02:00
  • 2a36d1356c Move TWI response handling from watchdog to main loop eeeck 2025-10-12 21:10:18 +02:00
  • fafd6a9a7a Directory restructure eeeck 2025-10-12 20:39:51 +02:00
  • 0f0408df9b Simplify moisture value access and update header structure eeeck 2025-10-12 14:01:43 +02:00
  • 2b86ff133c Remove trailing whitespace eeeck 2025-10-12 01:01:50 +02:00
  • a1f687e644 Add wifi-credentials.h with SSID, password and auth defines eeeck 2025-10-12 00:54:16 +02:00
  • 6f37e0d420 Add volatile to include eeeck 2025-10-12 00:54:08 +02:00
  • fcff8f9900 Add License eeeck 2025-10-12 00:33:33 +02:00
  • 4be663e688 Update build script to use modern esptool and correct firmware paths eeeck 2025-10-11 23:46:57 +02:00
  • 95ee47386d Fix WiFi configuration initialization and add proper logging eeeck 2025-10-11 23:46:47 +02:00
  • c0758b071e Fix power management API and variable naming for ESP32-C3 compatibility eeeck 2025-10-11 23:46:33 +02:00
  • 4a9a3ef805 Add ESP-IDF component configuration for main directory eeeck 2025-10-11 23:46:23 +02:00
  • ed7fb9fda6 Fix ESP32-C3 target configuration in Dockerfile eeeck 2025-10-11 23:46:12 +02:00
  • 558413df41 Add WiFi connectivity initialization and configuration functions eeeck 2025-10-11 20:03:42 +02:00
  • 94d2a61cad Implement Wi-Fi task eeeck 2025-10-11 15:29:14 +02:00
  • eb980d286d Fix watchdog initialization and parameters eeeck 2025-10-11 13:57:01 +02:00
  • 55c11f2471 Add CMakeLists.txt for ESP32 firmware build eeeck 2025-10-11 00:05:25 +02:00
  • ba590b982c Fix build error in Dockerfile eeeck 2025-10-11 00:05:15 +02:00
  • d1cf04ffdb Allocate heap caps eeeck 2025-10-10 23:59:50 +02:00
  • 3dc234eecb Configure power management eeeck 2025-10-10 23:59:39 +02:00
  • 3d8962b188 Initialize basic watchdog eeeck 2025-10-10 23:59:14 +02:00
  • 9f848dcc3f Add Dockerfile and build script for ESP32 firmware eeeck 2025-10-10 22:30:32 +02:00
  • 2d9a4f3bb5 Fix TWI slave address shift and buffer index eeeck 2025-10-06 13:28:57 +02:00
  • 618965ccc2 Rename Makefile project name to same name as repository eeeck 2025-10-05 23:57:03 +02:00
  • d7364a6fdc Make triggerMoistureRead function inline eeeck 2025-10-05 23:55:36 +02:00
  • 2d6643601d Implement TWI response method eeeck 2025-10-05 23:45:03 +02:00
  • 74aab766fc Add read-only pointer accessor for previously read moisture value eeeck 2025-10-05 22:21:21 +02:00
  • 6c48ebb65f Add data receiving capabilities using a buffer with overflow protection eeeck 2025-10-04 15:12:25 +02:00
  • 443c62593d Add EEPROM flush function to clear address contents eeeck 2025-10-04 14:37:38 +02:00
  • 40a5ad5a35 Add TWI module to build sources eeeck 2025-10-01 16:18:37 +02:00
  • c24e032981 Add FreeRTOS and GPIO includes eeeck 2025-10-01 15:40:05 +02:00
  • fb3fdab7df Fix error in comment eeeck 2025-10-01 15:39:52 +02:00
  • f4e690cf3c Increase EEPROM lifespan by avoiding overwrites on addresses that contain identical values eeeck 2025-10-01 15:34:11 +02:00
  • c60493810c Improve EEPROM handling eeeck 2025-10-01 15:32:02 +02:00
  • fb8423cd9a Clarify inline function name eeeck 2025-10-01 01:40:32 +02:00
  • 45464300c7 Correct bitmask for TWI SDA and SCL eeeck 2025-10-01 01:39:27 +02:00
  • 05aae91d12 Mark internal helpers as static and remove from headers eeeck 2025-10-01 01:22:58 +02:00
  • 6e845c65da Write configuration values to EEPROM at boot eeeck 2025-10-01 00:37:10 +02:00
  • 2e6fe9ba6b Implement AVR328 EEPROM handling eeeck 2025-10-01 00:08:25 +02:00
  • 5cce419c74 Add initial ESP32 main.cpp eeeck 2025-05-19 11:41:01 +02:00
  • 135823b620 Improve atmega Dockerfile apt handling eeeck 2025-05-19 11:39:07 +02:00
  • ff8f6324e5 Use deeper sleep mode to reduce current draw during idle eeeck 2025-05-19 11:37:12 +02:00
  • 29ecd9be17 Fix return non-zero value in main eeeck 2025-05-17 23:35:16 +02:00
  • 24c454aa88 Reset readSensors before sleep eeeck 2025-05-17 14:28:55 +02:00
  • 97d78f7c28 Remove unsed flag eeeck 2025-05-17 14:23:56 +02:00
  • 2a2cb42b0b Refactor optimization flag in Makefile eeeck 2025-05-17 14:23:22 +02:00
  • 906dfa91f0 Remove unused CMD from Dockerfile eeeck 2025-05-17 14:22:58 +02:00
  • c03e60e56f Add delay to let actuator pump water eeeck 2025-05-17 14:07:45 +02:00
  • c7abf18736 Change data types regarding sensor readings and sensor/actuator pins from signed to unsigned eeeck 2025-05-17 13:16:13 +02:00
  • d6bd1932d3 Make pumps initialization and actuation more dynamic by checking which one are declared in config.h eeeck 2025-05-17 13:01:33 +02:00
  • 8ad766c377 Make sensor initialization and measurement more dynamic by checking which one are declared in config.h eeeck 2025-05-17 12:47:59 +02:00
  • ba10840f50 Rename function eeeck 2025-05-16 09:22:34 +02:00
  • 64852b2a67 Add pump code to Makefile eeeck 2025-05-16 09:22:20 +02:00
  • 09fed73696 Add waterPlant stub and update pump usage eeeck 2025-05-15 23:39:15 +02:00
  • c8c27d440c Implement pump control via port register eeeck 2025-05-15 23:30:48 +02:00
  • 3973d7b41d Initialize pumps' digital pins eeeck 2025-05-15 22:40:52 +02:00
  • cf3230c470 Rename functions name for better code clarity eeeck 2025-05-15 22:08:36 +02:00
  • 412354fe88 Move source code to /firmware and fix build paths eeeck 2025-05-15 15:51:46 +02:00
  • 6dd4b87a0f Simplify Makefile to exclude Arduino core libraries eeeck 2025-05-15 09:45:26 +02:00
  • fe2e04ee38 Implement multiple sensors reading for moisture eeeck 2025-05-14 23:41:06 +02:00
  • 1a10abc4d6 Use custom ADC interface using AVR flags eeeck 2025-05-14 14:36:41 +02:00
  • cbf42aae0a Remove make flash, use build script for flashing eeeck 2025-05-14 13:08:31 +02:00
  • 5f154cb20f Refactor loop to main and add explicit while(true) eeeck 2025-05-14 13:02:17 +02:00
  • 82dba30e18 Rename image name to avoid future confusion with ESP board eeeck 2025-05-13 20:12:10 +02:00
  • af4cb39230 Add ATmega build and flash script eeeck 2025-05-13 11:29:15 +02:00
  • 4ab01eb3a4 Restructure directory organization eeeck 2025-05-13 11:28:18 +02:00
  • fff7c84206 Refactor Makefile for compatibility with Docker enviroment and better AVR dependency management eeeck 2025-05-12 22:55:28 +02:00
  • 4243734056 Create Dockerfile eeeck 2025-05-12 20:19:18 +02:00
  • 1e7be9adb6 Restructure AVR compilation with Makefile eeeck 2025-05-12 19:24:09 +02:00
  • c94f7d2982 Add bootloader circuit eeeck 2025-05-04 00:26:08 +02:00
  • 2800986f17 Add schematics for ATMega side and initialize MCU eeeck 2025-05-03 23:46:02 +02:00
  • 1a7858198e Move main to C++ file eeeck 2025-05-03 12:38:05 +02:00
  • 04a8564d46 Merge pull request 'moisture-library' (#1) from moisture-library into main eeeck 2025-05-03 12:16:00 +02:00
  • 637fff92ae Update main logic flow and fix bug that did not let MCU sleep dev-moisture-lib eeeck 2025-05-03 12:08:08 +02:00
  • 5f1675f879 Move moisture to C++ file and update logic flow eeeck 2025-05-03 12:07:37 +02:00
  • f8b93e47e2 Add config.h with sensor pin and reading constants eeeck 2025-05-03 11:42:01 +02:00
  • bf7d177046 Add Makefile and refactor moisture reading to separate module eeeck 2025-05-02 14:40:58 +02:00
  • 4486febccf Extract moisture reading logic into separate function eeeck 2025-05-02 14:17:01 +02:00
  • 5634ead406 Add moisture sensor reading averaging eeeck 2025-05-02 14:13:08 +02:00
  • 7684470315 Fix watchdog timer setup and power management eeeck 2025-05-02 00:59:57 +02:00
  • 9b20f33498 Directory restructure eeeck 2025-05-01 23:59:38 +02:00
  • 02a6541647 Add sleep function to enable power down mode eeeck 2025-05-01 22:23:49 +02:00
  • 577499cccc Implement 8 seconds watchdog eeeck 2025-05-01 22:01:14 +02:00
  • d58e41c444 Create .gitignore eeeck 2025-05-01 21:50:34 +02:00
  • a3a59a9a5e Implement basic sensor reading eeeck 2025-05-01 21:49:34 +02:00