Commit Graph

43 Commits

Author SHA1 Message Date
Theo Arends 1b24378da5 Free 500 code bytes on ADC/ESP8266 2024-08-15 12:52:12 +02:00
Theo Arends b93e6cee7b Change GUI name of Analog<x> to ADC<x> 2024-08-13 15:11:51 +02:00
Theo Arends ff46745252 Fix ADC conversion to v14.1.0.4 2024-08-13 13:57:58 +02:00
Theo Arends 85da678132 Fix ADC bad energy jumps 2024-08-10 17:01:14 +02:00
Theo Arends bcd1a9c986 Fix ADC multiple GPIO parameter storage 2024-08-09 16:11:30 +02:00
Theo Arends 040ffb33e0 Fix restore ADC energytoday on power cycle 2024-08-06 18:07:26 +02:00
Theo Arends 4f035d18f6 Fix invalid ADC energy reset 2024-08-04 18:06:24 +02:00
Theo Arends bdec6aed67 Update xsns_02_analog.ino 2024-08-04 16:37:36 +02:00
Theo Arends 469f12abbc Add ADC support for Shelly Plus RGBW PM 2024-08-04 16:35:02 +02:00
Theo Arends f6c3064890 Fix ADC migration 2024-08-03 18:03:41 +02:00
Theo Arends c7faff7ac6 Refactored Analog driver to better support multiple channels
- Add command ``AdcGpio<gpio> <parameters>`` to better support ADC configuration
2024-08-03 17:52:47 +02:00
Theo Arends a98399367b Fix analog reset adcparam 1 2024-07-28 18:58:06 +02:00
Theo Arends 88293d7414 Analog GPIO changes
- Analog GPIO ``ADC Input`` with ``AdcParam<x> 1,<start_range>,<end_range>,<margin>,1`` provide direct light control
- Analog GPIO ``ADC Voltage`` with ``AdcParam<x> 11,<start_range>,<end_range>,<lowest_voltage>,<highest_voltage>`` provide energy monitoring with dc voltage
- Analog GPIO ``ADC Current`` with ``AdcParam<x> 12,<start_range>,<end_range>,<lowest_current>,<highest_current>`` provide energy monitoring with dc voltage
2024-07-28 18:52:38 +02:00
Theo Arends 87ec0cce21 Revert "Analog GPIO extensions"
This reverts commit 7c1cf6a81f.
2024-07-28 18:47:13 +02:00
Theo Arends 7c1cf6a81f Analog GPIO extensions
- Analog GPIO ``ADC Input`` with ``AdcParam<x> 1,<start_range>,<end_range>,1`` provide direct light control
- Analog GPIO ``ADC Voltage`` with ``AdcParam<x> 11,<start_range>,<end_range>,<lowest_voltage>,<highest_voltage>`` provide energy monitoring with dc voltage
- Analog GPIO ``ADC Current`` with ``AdcParam<x> 12,<start_range>,<end_range>,<lowest_current>,<highest_current>`` provide energy monitoring with dc voltage
2024-07-28 18:33:43 +02:00
Theo Arends a4e592c776 Refactor analog
- Change from double to float where possible
- Fix Voltage/Current energy calculation
2024-07-28 14:15:35 +02:00
Theo Arends d7c6474104 Add Analog Voltage and Current 2024-07-27 17:11:25 +02:00
Theo Arends 4cf741e6eb Update xsns_02_analog.ino 2024-07-26 11:02:27 +02:00
Theo Arends 9af25c73d6 Refactor ADC MQ_SAMPLES saving code and RAM 2024-07-26 11:01:09 +02:00
Theo Arends 2f33f8e5a8 Fix Non-ESP32 Analog read resolution 2024-07-25 18:04:01 +02:00
Theo Arends ac06195907 Remove non IDF5 code 2024-05-15 16:45:42 +02:00
Jason2866 1e63c8924e
use "minimal" instead of "safeboot" (#21346) 2024-05-04 15:34:11 +02:00
Jason2866 9168f7b198
More shrink of safeboot (#21333)
* remove crash recorder from safeboot

* small refactor

* safeboot more shrink
2024-05-03 15:01:31 +02:00
Theo Arends 9fc47b7d90 Tune GPIOViewer 2024-01-13 15:16:34 +01:00
Theo Arends 3e3bfccb58 Bump version v13.3.0.3 2024-01-12 12:17:31 +01:00
Theo Arends 0d300aebff Update GPIOViewer
- Add ESP8266 PWM state logging
- Add ADC state functions
2024-01-07 15:10:19 +01:00
Eduardo Spremolla b63a061aeb
Update xsns_02_analog.ino for calibrated values on ESP32 (#19732)
ESP32  ADC has variables errors, but calibrations values are put in eFuses at factory test.
analogReadMilliVolts() from api correct the ADC reading with tata values.
Since now the value are mV and not ADC numbers, the fast solution is to revert it back to ADC numbers:
divide by Vcc  => ANALOG_V33*1000  and multiply by ANALOG_RANGE
Other way is to modify all sensor cases to account for the different unit.
2023-10-15 11:57:13 +02:00
s-hadinger 0b3d6fd146
Prepare for Arduino v3 / esp-idf v5 2nd batch (#19265) 2023-08-05 20:34:24 +02:00
s-hadinger 5c8c7cdfca
Prepare for Arduino v3 / esp-idf v5 (#19264) 2023-08-05 15:11:10 +02:00
Theo Arends d0e88c9dae Fix BusyDelay WS2812 2023-05-24 17:24:48 +02:00
Theo Arends fc67cca8b4 Add generic SystemWaitIfBusy() to fix WS2812 led flicker
Add generic SystemWaitIfBusy() to fix WS2812 led flicker
2023-05-24 16:21:59 +02:00
Theo Arends 4be618fe7b Fix WS2812 string distortions during analogRead()
Fix WS2812 string distortions during analogRead()
2023-05-24 15:09:26 +02:00
Barbudor 870874d181
fix display of adcparam param4 for ct (#18397) 2023-04-13 09:04:17 +02:00
Barbudor 52060259ce
improve ADC_CT (#18369) 2023-04-08 21:31:50 +02:00
Theo Arends 2b89b7a134 Fix init order of device drivers (#18124) 2023-03-11 15:52:02 +01:00
Barbudor 119aeca4d9
oversample ADC_RANGE by 32 like ADC_INPUT (#17975) 2023-02-17 22:33:06 +01:00
Theo Arends 630987302a Fix Analog MQ exception
Fix Analog MQ exception (#17271)
2022-12-12 10:57:21 +01:00
Theo Arends c1ea8953cb Refactor uint8_t to uint32_t 2022-11-11 10:44:56 +01:00
Barbudor 7c258f4de1 Add param4 in AdcParam ersponse 2022-09-30 23:53:58 +02:00
Barbudor e9922b0b13 adc_temp alternate mode, take 2 2022-09-27 23:05:53 +02:00
Barbudor d6cdec003f alternate ADC_TEMP mode, take 1 2022-09-25 22:40:29 +02:00
barbudor 4d7f78e06e refactor pow to constant 2022-08-22 14:32:08 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00