changelog
- Sun, 10 Sep 2023 17:29:15 +0200
- by Michiel Broek <mbroek@mbse.eu> [Sun, 10 Sep 2023 17:29:15 +0200] rev 37
- Version 0.4.3. Attempt to fix the sunlight overflow of the APDS9930 sensor in the private part of the esp-idf-lib. Removed some error checks from functions that always return OK. Store light sensor registers in the state record and report the values in the json result string.
- Thu, 20 Apr 2023 15:19:31 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 20 Apr 2023 15:19:31 +0200] rev 36
- Moved the kicad drawing into the project.
- Thu, 20 Apr 2023 14:01:29 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 20 Apr 2023 14:01:29 +0200] rev 35
- Version 0.4.2, some code cleanup.
- Wed, 19 Apr 2023 15:38:42 +0200
- by Michiel Broek <mbroek@mbse.eu> [Wed, 19 Apr 2023 15:38:42 +0200] rev 34
- Global settings for the INA219 boards.
- Mon, 17 Apr 2023 16:53:38 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 17 Apr 2023 16:53:38 +0200] rev 33
- Removed all BLE code. It is not usefull in this application.
- Mon, 17 Apr 2023 16:20:58 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 17 Apr 2023 16:20:58 +0200] rev 32
- Version 0.4.1 Measure internal chip temperature, range -10 to 80. Result available in mqtt json payload.
- Mon, 17 Apr 2023 14:54:35 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 17 Apr 2023 14:54:35 +0200] rev 31
- Added basic BLE code.
- Sun, 16 Apr 2023 12:27:12 +0200
- by Michiel Broek <mbroek@mbse.eu> [Sun, 16 Apr 2023 12:27:12 +0200] rev 30
- Preparations for BLE GATT. Added extra time after INA219 is powered on before measurement. Reduced LEDC frequency to 60 Hz, that makes the LED lights less nervous. Hardware mod on output 4, now needs external pulldown resistor.
- Sat, 15 Apr 2023 13:29:40 +0200
- by Michiel Broek <mbroek@mbse.eu> [Sat, 15 Apr 2023 13:29:40 +0200] rev 29
- Final release and installed for production.
- Thu, 13 Apr 2023 15:28:11 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 13 Apr 2023 15:28:11 +0200] rev 28
- Added INA219 power save mode again, it works now. Don't measure shunt voltage and current, just the shunt voltage and calculate the current.
- Thu, 13 Apr 2023 14:29:41 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 13 Apr 2023 14:29:41 +0200] rev 27
- Adjusted BMP280 default parameters for low power usage.
- Thu, 13 Apr 2023 12:08:24 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 13 Apr 2023 12:08:24 +0200] rev 26
- Version 0.4.0. Disable normal logging mqtt.
- Wed, 12 Apr 2023 16:37:17 +0200
- by Michiel Broek <mbroek@mbse.eu> [Wed, 12 Apr 2023 16:37:17 +0200] rev 25
- A bit simpler mqtt event handling.
- Wed, 12 Apr 2023 16:23:02 +0200
- by Michiel Broek <mbroek@mbse.eu> [Wed, 12 Apr 2023 16:23:02 +0200] rev 24
- Reduced I2C master speed from 400 to 100 Khz. Hope to get power-on init for BMP280 more reliable. Added warnings for I2C devices that are missing. Some logmessages reduced to debug log messages. Added extra 10 mSec delays before read shunt voltage in the INA219 task. Removed and reduced log levels in the MQTT task. Show received data events. Remove WiFi total time debug logging, it's ok now.
- Tue, 11 Apr 2023 19:41:53 +0200
- by Michiel Broek <mbroek@mbse.eu> [Tue, 11 Apr 2023 19:41:53 +0200] rev 23
- Shorter delays during wifi connect timeout. Some code cleanup in the main state table. Report WiFi TX power during init. Removed SSID from WIFI_State because it wasn't used.
- Tue, 11 Apr 2023 11:11:13 +0200
- by Michiel Broek <mbroek@mbse.eu> [Tue, 11 Apr 2023 11:11:13 +0200] rev 22
- Decreased WiFi transmit level to 13. Level 15 is unstable, skip 14 just to be sure. It seems to be the bad designed antenna circuit on the ESP32-C3 Lolin v2.1.0 board. The board also benefits from a ground plane connected to the shield of the USB connector. The final implementation needs an external antenna anyway so the onboard antenna will go away. In the meanwhile, the wifi task is now more robust. Also, in testing mode there is no battery alarm, only when building for production.
- Fri, 07 Apr 2023 14:31:17 +0200
- by Michiel Broek <mbroek@mbse.eu> [Fri, 07 Apr 2023 14:31:17 +0200] rev 21
- The esp-idf-lib apds9930 component is now working. In nvsio stop logging not updated values. Store gain and aglbit values in nvs.
- Thu, 06 Apr 2023 22:01:08 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 06 Apr 2023 22:01:08 +0200] rev 20
- Some extra time for the mqtt messages.
- Thu, 06 Apr 2023 20:53:06 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 06 Apr 2023 20:53:06 +0200] rev 19
- Set the new measured deep sleep current consumption. This is half of the Wemos D1 system.
- Thu, 06 Apr 2023 20:49:52 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 06 Apr 2023 20:49:52 +0200] rev 18
- Added nvsio utilities to make read/write to nvs namespace easier. Added variables for deep sleep to nvs namespace. In task_wifi, removed some init parameters that might add to instable wifi connect problems.
- Thu, 06 Apr 2023 13:22:03 +0200
- by Michiel Broek <mbroek@mbse.eu> [Thu, 06 Apr 2023 13:22:03 +0200] rev 17
- Code changes to try to fix the not working ADPS9930 driver.
- Wed, 05 Apr 2023 20:00:26 +0200
- by Michiel Broek <mbroek@mbse.eu> [Wed, 05 Apr 2023 20:00:26 +0200] rev 16
- First pass of debugging APDS9930 with a real chip.
- Tue, 04 Apr 2023 20:57:49 +0200
- by Michiel Broek <mbroek@mbse.eu> [Tue, 04 Apr 2023 20:57:49 +0200] rev 15
- Splitted wifi and mqtt connect states to make the connections more robust. Protect the mqtt connection request against requests when a request is already done or in progress.
- Tue, 04 Apr 2023 14:33:26 +0200
- by Michiel Broek <mbroek@mbse.eu> [Tue, 04 Apr 2023 14:33:26 +0200] rev 14
- Fixed wrong voltage and current measurements due to differences between Arduino and ESP-IDF.
- Mon, 03 Apr 2023 20:11:29 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 03 Apr 2023 20:11:29 +0200] rev 13
- Changed voltage range to 32 volt. Tried INA219 powersave mode, doesn't work.
- Mon, 03 Apr 2023 16:07:34 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 03 Apr 2023 16:07:34 +0200] rev 12
- In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.
- Mon, 03 Apr 2023 11:08:09 +0200
- by Michiel Broek <mbroek@mbse.eu> [Mon, 03 Apr 2023 11:08:09 +0200] rev 11
- Added untested port of the Arduino APDS9930 library as component into the esp-idf-lib.
- Sun, 02 Apr 2023 09:33:20 +0200
- by Michiel Broek <mbroek@mbse.eu> [Sun, 02 Apr 2023 09:33:20 +0200] rev 10
- Fixed start of json status message.
- Sat, 01 Apr 2023 21:06:59 +0200
- by Michiel Broek <mbroek@mbse.eu> [Sat, 01 Apr 2023 21:06:59 +0200] rev 9
- Added task_out to drive the relays and led lights. Added NVS namespace to store the state of the outputs. Respond to subscribed MQTT topics to set new output values.
- Fri, 31 Mar 2023 21:12:39 +0200
- by Michiel Broek <mbroek@mbse.eu> [Fri, 31 Mar 2023 21:12:39 +0200] rev 8
- Added namespace and output variables in NVS.