Giter Site home page Giter Site logo

esp32-poolmaster's People

Contributors

gixy31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-poolmaster's Issues

librairie ads1115

A priori pas la bonne version de ads1115, elle ne veut pas s'installer :

Library Manager: Installing ADS1115 @ 1.0.0
Warning! Could not find the package with 'ADS1115 @ 1.0.0' requirements for your system 'windows_amd64'

j'ai celle ci : https://github.com/jrowberg/i2cdevlib.git

Installation

Hi!
Is there any documentation on how to install this software and set it up?
Im new to platformIO but have managed to install it and connect to the ESP32 but then I'm quite lost.
Where do I setup my wifi settings and how do i connect to the board when installed?

Thanks!

Erreur de compilation Olimex ESP32-EVB.

Bonjour,

J'essai de compiler ESP32-PoolMaster sur un Olimex ESP32-EVB. La compilation échoue avec pluseurs erreurs concernant ADS1115 :

Library Manager: Installing ADS1115 @ 1.0.0
Warning! Could not find the package with 'ADS1115 @ 1.0.0' requirements for your system 'windows_amd64'

Alors plusieurs erreurs sortent du fichier src/Loops.cpp :

src/Loops.cpp:16:8: error: 'ADS1115Scanner' does not name a type; did you mean 'ADS1115'?
src/Loops.cpp:44:3: error: 'adc' was not declared in this scope
src/Loops.cpp:44:16: error: 'ADS1115_SPEED_16SPS' was not declared in this scope
etc ...

Peut-être avez-vous une idée?

Merci,
Jérôme.

Ci-dessous le résultat de la compilation dans le moniteur :

Processing serial_upload (platform: espressif32; board: esp32-evb; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-evb.html
PLATFORM: Espressif 32 (6.3.2) > OLIMEX ESP32-EVB
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 @ 3.20009.0 (2.0.9)
  • tool-esptoolpy @ 1.40501.0 (4.5.1)
  • tool-openocd-esp32 @ 2.1100.20220706 (11.0)
  • toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain+, Compatibility ~ soft
    Library Manager: Installing ADS1115 @ 1.0.0
    Warning! Could not find the package with 'ADS1115 @ 1.0.0' requirements for your system 'windows_amd64'
    Found 47 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- Arduino_DebugUtils @ 1.1.0
    |-- Time @ 1.6.1
    |-- PID @ 1.2.1
    |-- I2Cdevlib-ADS1115 @ 1.0.0
    |-- RunningMedian @ 0.2.1
    |-- ArduinoJson @ 6.21.3
    |-- Easy Nextion Library @ 1.0.6
    |-- DallasTemperature @ 3.11.0
    |-- AsyncTCP @ 1.1.1
    |-- AsyncMqttClient @ 0.8.2
    |-- OneWire @ 2.3.7
    |-- Wire @ 2.0.0
    |-- Pump-master
    |-- Preferences @ 2.0.0
    |-- WiFi @ 2.0.0
    |-- ESPmDNS @ 2.0.0
    |-- ArduinoOTA @ 2.0.0
    |-- Update @ 2.0.0
    |-- I2Cdevlib-Core @ 1.0.1
    Building in debug mode
    Compiling .pio\build\serial_upload\src\Loops.cpp.o
    Compiling .pio\build\serial_upload\src\Nextion.cpp.o
    Compiling .pio\build\serial_upload\src\PoolMaster.cpp.o
    Compiling .pio\build\serial_upload\src\PoolServer.cpp.o
    src/Loops.cpp:16:8: error: 'ADS1115Scanner' does not name a type; did you mean 'ADS1115'?
    static ADS1115Scanner adc(0x48); // Address 0x48 is the default
    ^~~~~~~~~~~~~~
    ADS1115
    src/Loops.cpp: In function 'void AnalogInit()':
    src/Loops.cpp:44:3: error: 'adc' was not declared in this scope
    adc.setSpeed(ADS1115_SPEED_16SPS);
    ^~~
    src/Loops.cpp:44:16: error: 'ADS1115_SPEED_16SPS' was not declared in this scope
    adc.setSpeed(ADS1115_SPEED_16SPS);
    ^~~~~~~~~~~~~~~~~~~
    src/Loops.cpp:44:16: note: suggested alternative: 'ADS1115_RATE_16'
    adc.setSpeed(ADS1115_SPEED_16SPS);
    ^~~~~~~~~~~~~~~~~~~
    ADS1115_RATE_16
    src/Loops.cpp:45:18: error: 'ADS1115_CHANNEL0' was not declared in this scope
    adc.addChannel(ADS1115_CHANNEL0, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    src/Loops.cpp:45:18: note: suggested alternative: 'ADS1115_RATE_8'
    adc.addChannel(ADS1115_CHANNEL0, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    ADS1115_RATE_8
    src/Loops.cpp:45:36: error: 'ADS1115_RANGE_6144' was not declared in this scope
    adc.addChannel(ADS1115_CHANNEL0, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~~~
    src/Loops.cpp:45:36: note: suggested alternative: 'ADS1115_RATE_64'
    adc.addChannel(ADS1115_CHANNEL0, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~~~
    ADS1115_RATE_64
    src/Loops.cpp:46:18: error: 'ADS1115_CHANNEL1' was not declared in this scope
    adc.addChannel(ADS1115_CHANNEL1, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    src/Loops.cpp:46:18: note: suggested alternative: 'ADS1115_RATE_16'
    adc.addChannel(ADS1115_CHANNEL1, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    ADS1115_RATE_16
    src/Loops.cpp:47:18: error: 'ADS1115_CHANNEL2' was not declared in this scope
    adc.addChannel(ADS1115_CHANNEL2, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    src/Loops.cpp:47:18: note: suggested alternative: 'ADS1115_RATE_32'
    adc.addChannel(ADS1115_CHANNEL2, ADS1115_RANGE_6144);
    ^~~~~~~~~~~~~~~~
    ADS1115_RATE_32
    src/Loops.cpp: In function 'void AnalogPoll(void*)':
    src/Loops.cpp:67:3: error: 'adc' was not declared in this scope
    adc.start();
    ^~~
    *** [.pio\build\serial_upload\src\Loops.cpp.o] Error 1
    ================================================= [FAILED] Took 20.69 seconds =================================================

Environment Status Duration


serial_upload FAILED 00:00:20.688
============================================ 1 failed, 0 succeeded in 00:00:20.688 ============================================

  • The terminal process "C:\Users\xxxxxxx.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

No probe readings

Hello i am currently in the process of recreating this awesome Project for my Pool.

Everything but the probes functions. I get readings of pH 40.4 and ORP of -897mV
I tried running an I2C scanner but it only finds the address 0x38 wich should be the PCF8574A.
The ADS1115 wich should have an address of 0x48 is not found. 
I checked all physical connections and checked the voltages of the components even used a new mcu but still no luck.

Does someone have or had a simular problem?

Calibration of Pressure Sensor

Hey,
does anyone know a good way to calibrate the pressure sensor?
I'm using this Sensor: https://amzn.eu/d/ekGDIym

It shows -0.9 on the display and doesn't change when the pump is running.
The manual gauge shows around 0.5bar when the pump is running.

Looking at the mqtt values they report as follows
Pump Off: -9.3122074991 PSI
Pump On after 15 min: -8.752225019 PSI

Thanks in advance

I can't compile code error: aggregate 'tm timeinfo'

Hi,

I am trying to compile your code, but I have find several problems:
(Fixed) Can't find pump.h (result downloaded from logic code)
(Fixed) Cannot find ADS1115 @ 1.0.0 from lib_deps (it generates an error that it cannot find the library ... but I have commented and downloaded it working)

Pending solution:
src \ Setup.cpp: 44: 4: error: aggregate 'tm timeinfo' has incomplete type and cannot be defined
tm timeinfo;
^
Compiling .pio \ build \ serial_upload \ lib714 \ Easy Nextion Library \ readCustomCommands.cpp.o
*** [.pio \ build \ serial_upload \ src \ Setup.cpp.o] Error 1

Can you help me?

BOM obsolete

Hello,

Thanks for your work on this !
While getting the items from the BOM, I've found out that most of the links are not directing me to the correct items.

Would it be possible to update the BOM ?

Thanks !

LED State

Hi,

is there a little description, which led is for what state? I couldn't find it in the readme files.

Thanks in advance

Kind regards,
Tom

Grafana Dashboard

Sorry to ask for help again

I import the json grafan file but no panels show up in the newly created dashboard.
Do you think I’ve done something wrong?
Any ideas?

Thanks

Buy HARDWARE for esp32-poolmaster

Hi is it possible to buy hardware somewhere or at least buy pcbs somewhere?
Have you built board and it has been put in work somewhere or is this hypothetical?

Wifi Disconnect Loop

If for some reason the wifi cannot reconnect the while statement check continues in an endless loop.

[ 1289 ] [WiFi] Connecting to WiFi...
..E (6107) wifi:Set status to INIT
[ 2951 ] [WiFi] Connection lost
...[ 4479 ] [WiFi] Connection lost
....[ 6479 ] [WiFi] Spurious disconnect event ignored
..........................................................................................................................................................................................................................................

WiFi.reconnect();
    while(WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(":");
    }

Software doesn't publish any MQTYT

Hi

I have recently lost all my original code! I have been trying to get the system back up and running with your latest code.
The nexion screen works and is reporting Realtime data. I can also upload OTA so the WIFI is working.

Problem is no information in being published via MQTT. I have a subscription and monitoring the Topic.

Attached terminal screen, nothing seems to happen after the Subscibe ack. qos:2

Could you assist

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[ 60 ] CPU frequency : 240MHz
[ 61 ] CPU Cores : 2
[ 61 ] Flash size : 4MB
[ 61 ] Free RAM : 282444 bytes
[ 72 ] Min heap : 238072 bytes
[ 72 ] tskIDLE_PRIORITY : 0
[ 72 ] confixMAX_PRIORITIES: 25
[ 72 ] configTICK_RATE_HZ : 1000
[ 1396 ] Stored version: 51
[ 1397 ] Same version: 51 / 51. Loading settings from NVS
[ 1428 ] 51
[ 1428 ] 0, 0, 1, 0
[ 1429 ] 10, 10, 20, 8, 22, 20
[ 1429 ] 2700, 2700, 30000
[ 1429 ] 1800000, 1800000, 0, 0
[ 1429 ] 7.3, 720, 15.0, 15.0, 10, 18, 3.0, 3.496258, -2.011338, -876.430775, 2328.898500, 1.0, 0.0
[ 1440 ] 2700000, 0, 0, 18000, 0, 0, 0, 0, 28.00, 7.30, 720, 1.30
[ 1451 ] 60, 85, 20, 20, 1.5, 1.5
[ 1451 ] Config loaded
[ 1453 ] [WiFi] Connecting to WiFi...
[ 1631 ] [WiFi] Connection lost
[ 1716 ] [WiFi] Connected to: Fisher
[ 1716 ] [WiFi] IP address: 192.168.0.216
[ 1716 ] [WiFi] Hostname: PoolMaster
[ 1716 ] [WiFi] Connecting to MQTT...
[ 1760 ] Connected to MQTT, present session: 0
[ 1772 ] Subscribe ack., qos: 2
[ 2295 ] NTP configured
Sunday, August 14 2022 09:31:03
[ 2296 ] 2022/08/14 09:31:03
[ 2407 ] 1wire W devices: 1 device(s) found
[ 2408 ] 1wire A devices: 1 device(s) found
DS18B20_W: 28:a5:3f:8d:0c:00:00:bd
DS18B20_A: 28:aa:87:87:48:14:01:d5
[ 2530 ] Init done, starting loop tasks
[ 3631 ] [WiFi] Connecting to WiFi...
[ 3638 ] Disconnected from MQTT
[ 3661 ] [WiFi] Connection lost
[ 3802 ] [WiFi] Connected to: Fisher
[ 3803 ] [WiFi] IP address: 192.168.0.216
[ 3803 ] [WiFi] Hostname: PoolMaster
[ 3803 ] [WiFi] Connecting to MQTT...
[ 3840 ] Connected to MQTT, present session: 0
[ 3850 ] Subscribe ack., qos: 2
[ 5662 ] [WiFi] Connecting to WiFi...
[ 5668 ] Disconnected from MQTT
[ 5692 ] [WiFi] Connection lost
[ 5798 ] [WiFi] Connected to: Fisher
[ 5798 ] [WiFi] IP address: 192.168.0.216
[ 5798 ] [WiFi] Hostname: PoolMaster
[ 5798 ] [WiFi] Connecting to MQTT...
[ 5847 ] Connected to MQTT, present session: 0
[ 5855 ] Subscribe ack., qos: 2
[ 7692 ] [WiFi] Connecting to WiFi...
[ 7698 ] Disconnected from MQTT
[ 7722 ] [WiFi] Connection lost
[ 7827 ] [WiFi] Connected to: Fisher
[ 7827 ] [WiFi] IP address: 192.168.0.216
[ 7828 ] [WiFi] Hostname: PoolMaster
[ 7828 ] [WiFi] Connecting to MQTT...
[ 7884 ] Connected to MQTT, present session: 0
[ 7892 ] Subscribe ack., qos: 2
[ 9723 ] [WiFi] Connecting to WiFi...
[ 9729 ] Disconnected from MQTT
[ 9753 ] [WiFi] Connection lost
[ 10059 ] [WiFi] Connected to: Fisher
[ 10060 ] [WiFi] IP address: 192.168.0.216
[ 10060 ] [WiFi] Hostname: PoolMaster
[ 10060 ] [WiFi] Connecting to MQTT...
[ 10111 ] Connected to MQTT, present session: 0
[ 10117 ] Subscribe ack., qos: 2
[ 11753 ] [WiFi] Connecting to WiFi

Tank volume "problem"

Hi

Very good project my system is up and running, plus or minus. I have an issue potentially where the tank fill volume drops to zero in one movement. I dont understand why?

See attached picture of Grafan. Top panel show where over time ive set the tanks to 100% and randomly they drop to zero %

Any ideas?
tank volume

Board

Where can i get my hands on the board

BOM

Sorry to bother again!
Total newbee here!
Got the PCB's they worked a treat.
Struggling to find the correct resistor components to fit, hence the request for BOM?
Would also like to know what level sensors you used for the chlorine and acid solutions?

Thanks again!
V

CAD/Eagle File

Thanks for putting the project on github and supplying the code and documentation. Would it be possible to also upload the eagle/CAD file as well? I wanted to make a couple slight modifications on the board. Thanks!

Bug possible en utilisant la lib ADS1115

A cet endroit là :

adc.update();

Tu ne te sers pas du résultat de la fonction adc.update().
Juste en dessous tu viens lire adc.ready(), qui peut entre temps, avoir terminé, et donc tu peux lire potentiellement des valeurs qui sont fausses.

Je pense que si tu mets adc.update dans ton if, ça corrige éventuellement un bug.

Pour ma part je vais fork et utiliser une librairie plus standard pour ADS, d'autant plus que la seule fonction qui n'y est pas est les valeurs moyennes que tu reimplementes un peu plus loin. Peut être une autre fois je me servirait des signaux ready pour faire du vrai asynchrone avec les interruptions.

Si tu veux tu prendras la pool request.

Gerber files

Hi!
Thank you for this fork!

I’m having some issues with the pcb when it’s was sent to the pcb-maker.

they sent me this:

7D0ED0A3-CBDB-43F4-A84F-B6F3CCC8788C

i have no idea what this means or how to fix it. What should I do?

Thank you! / viktor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.