From 4c027805dcabc6a98aac4a0c15248bc586884221 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 18 Apr 2020 12:34:56 +0200 Subject: [PATCH 1/3] add config for buero --- main/esp32-sensornode_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/esp32-sensornode_main.cpp b/main/esp32-sensornode_main.cpp index 9a79a65..3b2ca91 100644 --- a/main/esp32-sensornode_main.cpp +++ b/main/esp32-sensornode_main.cpp @@ -18,13 +18,13 @@ #define BOARD_ESP32 4 /* standalone ESP32 */ /* DEBUG SETTINGS */ -#define TEST /* use test config and database */ +// #define TEST /* use test config and database */ #define PRINT_INFO /* enable Serial output */ // #define PRINT_DEBUG /* enable additional debug output */ /* CONFIGURATION OPTIONS */ #ifndef NODENAME -#define NODENAME "env-TODO" /* IMPORTANT: CHANGE FOR EACH DEVICE */ +#define NODENAME "env-buero" /* IMPORTANT: CHANGE FOR EACH DEVICE */ #endif #ifndef BOARD From 28a862681e52952f7fd64049bffda9bc8aa1ff19 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 23 May 2020 22:44:19 +0200 Subject: [PATCH 2/3] [DOC] small improvements in the Readme --- README.md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8f65124..b8e843a 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,12 @@ This repository contains the code running on the ESP32, as well as the PCB and c ## Dependencies +The [esp32-idf](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#installation-step-by-step) is needed to compile software for the ESP32. +The following sections will install to `~/Development/esp32` as an example. + Prepare toolchain (macOS): ``` -cd ~/JBeyerstedt-Projekte/ +cd ~/Development/ mkdir ./esp32 cd esp32 curl https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz -o xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz @@ -37,17 +40,13 @@ rm xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz Add to your bash profile, zshrc or other: ``` -export PATH=$PATH:$HOME/JBeyerstedt-Projekte/esp32/xtensa-esp32-elf/bin -export IDF_PATH = $HOME/JBeyerstedt-Projekte/esp32/esp-idf -``` -or for ubuntu devel vm: -``` export PATH=$PATH:$HOME/Development/esp32/xtensa-esp32-elf/bin export IDF_PATH = $HOME/Development/esp32/esp-idf ``` Install esp-idf: ``` +cd ~/Development/esp32 git clone --recursive https://github.com/espressif/esp-idf.git ``` @@ -55,13 +54,9 @@ git clone --recursive https://github.com/espressif/esp-idf.git ## Checkout this project and configure arduino-esp32 with esp-idf: ``` -TODO!! - -mkdir -p components && \ -cd components && \ -git clone https://github.com/espressif/arduino-esp32.git arduino && \ -cd arduino && \ -git submodule update --init --recursive && \ +mkdir -p components && cd components +git clone https://github.com/espressif/arduino-esp32.git arduino && cd arduino +git submodule update --init --recursive cd ../.. ``` From d1e4e6f17e3034f62d3c9dab0ce413ea871e199c Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 5 Apr 2021 20:53:35 +0200 Subject: [PATCH 3/3] [DOC] add real-life battery endurance --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8e843a..fd53f45 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ tar -xzf xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz rm xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz ``` -Prepare toolchain (Debian, Ubuntu) (ubuntu devel vm): +Prepare toolchain (Debian, Ubuntu): ``` sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial @@ -82,8 +82,9 @@ You would probably have to adapt the `UPLOAD_PORT` in the `Makefile` or set it v ## Battery Life The hardware was designed with two options to drop the battery voltage to a level, which can be fed to the ESP32: A voltage regulator or a simple diode. -A test with increased data rate (for a shorter test duration) showed, that the voltage regulator leads to a slight battery life benefit. +A test with increased data rate (for a shorter test duration) resulted in a slightly better battery life using the voltage regulator. Using a measurement interval of 30 seconds and a WiFi connection interval of 3 minutes, the 2500mAh LiIon (3.7V) battery lasted 30 days with the diode and 36 days using the voltage regulator. +In real-world application, a battery life of about 9 months can be expected (with good WLAN reception). The selected voltage regulator has a quite low drop-out voltage and more importantly a low leaking current during the deep-sleep phases, which have a very low current needed by the ESP32. In comparison a diode has no leaking current at all, but a more or less fixed voltage drop.