|
3 weeks ago | |
---|---|---|
21.png | 3 weeks ago | |
22.png | 3 weeks ago | |
23.png | 3 weeks ago | |
24.png | 3 weeks ago | |
25.png | 3 weeks ago | |
26.png | 3 weeks ago | |
27.png | 3 weeks ago | |
README.md | 3 weeks ago | |
pool_kit_modified.ino | 4 weeks ago |
README.md
DESCRIPTION
This repository contains the pool_kit_modified.ino file, which was generated by modifying the source_code.ino file from the Original_Code_Pool_Kit repository. The purpose of these changes was mainly to add different sensors to the Wi-Fi Pool Kit and changing the format the data is shown in the Arduino Serial Monitor, specifically so that the text printed is only the numeric data of the parameters that are being measured, but these printed numeric data to be separated by commas so that it turns out easy for the user to copy the printed information into a .CSV file, since this is the most common format used for data analysis with the Python language tools we work with.
I2C address and device list
In the code lines 21 to 25, we have added instructions for the conductivity and dissolved oxygen circuits, including also the I2C addresses corresponding to each one of them. In this case, we have removed the instruction for the pH circuit since this parameter at the end was not considered as representative in the specific application that was being developed.
In the code lines 27 to 33, the names of the conductivity and dissolved oxygen circuits are added to the device list so that we can refer to them using their corresponding names.
Enable pins in the microcontroller
In the line 41 of the code, we need to set the pin number needed for our dissolved oxygen circuit, corresponding with the connection this circuit will have with the ESP32 microcontroller.
In the setup function, we also need to set up the pinMode for the added circuits, specifically if they need to have a LOW or HIGH digital value in the corresponding circuit.
step3 function
hh