Good, I need help with a problem using Blynk.edge. (Blynk iot Pro with the latest updated version, I use ESP 32, Arduino IDE 1.8.16. Here’s the situation: I use several ds18b20 sensors connected parasites to pin 16 of esp 32, measuring the temperature and sending it to several virtual pins on Blink IOT .
My problem is to associate by code, each sensor separately by the hexadecimal code that I have already identified to a virtual pin of blyn iot.
The code that I will put below is an example that I use, but the sensors enter without identification, that is, when one takes the place of the other, for a connected sensor it works, but when you place many sensors I have many problems.
Anyone who can help would be greatly appreciated!
example associate these addresses to virtual pins , by blynk.edge
Sensor 1: 0x28, 0x5E, 0x7C, 0x07, 0xB6, 0x01, 0x3C, 0x5D
Sensor 2: 0x28, 0xAA, 0x1B, 0x22, 0x50, 0x14, 0x01, 0x04
Sensor 3: 0x28, 0xAA, 0xD1, 0x22, 0x50, 0x14, 0x01, 0x9B
@Frederico Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
Copy and paste these if you can’t find the correct symbol on your keyboard.
Mr Pete, I can make it work on the monitor, but I can’t see the value in blynk, I’m still analyzing the examples that you sent me, I’m going to do other tests with the examples that you gave me, and test. I can contact you again, if I need to mature more… thank you very much!
This example below does not work, but it would be similar, I would not need to see it on the monitor, I just need to send it to blink, each sensor separately by address
How have you configured your V11, V12 and V13 datastreams used by your first example, especially the Min and Max values?
What widgets do you have attached to these datastreams, and how are they configured?
How have you modified your original code to add-in the serial print commands, and what results do you see in your serial monitor? (Post the serial output by copying & pasting the text, with triple backticks, not as a screenshot).
I changed it to 1.5 seconds to read the 3 temperatures, thanks.
My Datastreams are configured to read -20 to 40 degrees C. I am having values on the ds18b20 sensors of 28.9° C ambient, a difference of ± 0.25 to 0.50 between each of them. I’m not having readings on the IDE monitor, I thought I didn’t need it, since the interest was to upgrade to blynk 2.0. In addition to the Dsb1820, I have the DHT22, door sensors, in the same equipment.
Even with sensor readings within the 0.5 range of difference, when I compare with 2 thermometers I have here, I have a difference of 1.5° c , compared to other thermometers. Is there any way to fix these values by code? Thank you one more time!
My comments regarding these suggest were aimed at identifying potential issues on your part, and giving you a way of checking if the sensors were being read correctly, or whether the issue was the way you’d configured Blynk.
Yes, just Google how to calibrate these sensors and incorporate the calibration code into your sketch.