Subject: DS 18B20 sensor, many DS18B20 sensors, use OLED 128x64 4 pin display, or serial monitor?
Hi!
I can display the data of 1 piece of DS18B20 connected to NANO on an OLED 128x64 4 pin display.
This sensor provides only one temperature data.
When I add another DS 18B20 sensor, I have problems with the OLED display.
This way I cannot measure the temperature of the water entering and leaving the radiator and display it on an OLED display.
This is my task
The only thing I can solve with 2 DS18B20 displays is to use the serial monitor.
I can use the serial monitor to handle the 2db sensor, display the measured temperatures and calculate
the inlet and outlet water temperature, the deltaT.
If you are interested in the solution described, I can give the drawing and code.
I do not understand why you cannot display more than one temperature on the OLED. Post the code that fails to display more than one temperature and maybe we can help fix the code to display what you want it to.
carpenter:
I can give the drawing and code.
That would be useful.
How is the system powered when you're using the OLED?
You clearly aren't trying hard enough, printing on display really isn't so different from printing to serial monitor. It might be just some silly cursor problem. This might help.
Dear forum members!
It's only been a few days since my earlier post
published.
I was using the Arduino nano, the DS18B20 displays.
By the time I posted, I already knew the 2 pieces
DS18B20 sensor to measure the results of the data calculation on the serial monitor
display.
However, I had a hard time using the 4 pin 0.96 "128x64 OLED display. I couldn't display the data displayed on the serial monitor on the OLED monitor.
I did not receive any helpful help after the post was completed.
There was nothing else left for me to solve the task I had set
I had to find it.
The result of my hard work and my efforts has been: I have succeeded in my task!
The DS18B20 sensors were read by several methods. I used the
-Stenhart-Hart method for a sensor reading
- the sensors connected to the I2C circuit are read
indexed method
- reading the 64-bit address of the DS18B20 sensors
reading sensors by title
The results of readings made using these methods
I can handle them, cut them with calculations, and measure them
and display the results of the calculation
also on the OLED display.
In this way, solving the task set by myself, heating radiators for forward and return heating water
I can measure the current temperature with the sensors and use the measured data to calculate the difference between the supply and return heating water temperatures, the deltaT.
I experience that there are 2 DS18B20 temperature sensors
accuracy is different from the specified 0.5 degrees C.
The difference between the two sensors was 0.86 degrees Celsius.
I used this as a correction for the deltaT value
When calculating.
I don't know if any of the forum members are interested in my job?
If you are interested in using the 2 piece DS18B20 sensor
Arduino Nano, my OLED 4 pin 128x64 display application,
welcome to send a private message to
solved the wiring diagram of my own solution,
source code.
Thank you all for your appreciated interest.
Redads for everyone ...