Send pH, Redox and temperature values to domoticz
In first time, sorry but my english is not very good.
I will explain my project:
I put in place a pool regulation with an arduino Mega and an LCD screen.
- pH value of the water pool
- Redox value
- temperature of the water
- pump to inject Chlore for the redox
- pump to inject acid for the pH
My system works as I want.
My next step is:
- Send the pH value to domoticz ( between 6.8 and 8.0 ) (float)
- Send the Redox value to domoticz ( between 400 and 1000 ) (int)
- send the temperature value
I would like to be able to control the light and the heat pump of the pool throught domoticz.
I allready have some mysensors nodes at home ( light level, temperature and motion sensors ) wiches are working perfectly.
I don't know how to send the pH and the Redox values
It will be kind of you if someone could help me.
Welcome @Jérôme-Mathues-Koody !
I think you could use S_WATER_QUALITY and V_ORP + V_PH. See https://www.mysensors.org/download/serial_api_20#sensor-types for a complete list of the supported sensor types.
See https://www.openhardware.io/view/381/Floating-Swimming-Pool-Sensor-Water-Quality for a similar project, maybe you can reuse some of Ric's ideas/code.
thanks @mfalkvidd I will have a look at this.
In fact, in my arduino code, I take the average value of the ph and the redox to keep stability of the values. I record it into 2 variables:
- float pH
- int Redox
So I have to use the "var1_msg( 0 , V_VAR1 )," to send my variables as I can see in the "sensor water quality" project.
I will try this
Unfortunatly, my LCD allready use the PIN 2 of the arduino.
As I need to connect my NRF24L01+ on my Arduino mega, I need to use the PIN 2 also for the RF.
Do you know if it's possible to map the LCD on other PIN?
For the moment, it's map like this:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Thank you for your help
@Jérôme-Mathues-Koody just us another number instead of 2?
I try to change the pin 2 by another but my lcd doesn't works.
I don't know if it's possible to change the assignment for the pin lcd.
To put in place the lcd I have used a tutorial. I have a look on google but a lot of tutorials have the same pin assignment.