Using multiple DS18B20 sensors, how do I figure out which is which?

78 views
Skip to first unread message

Jason

unread,
Nov 30, 2019, 11:05:03 PM11/30/19
to PrivateEyePi

I'm testing cooling performances for a 3D printer. I'd like to use 5 sensors to check temperatures at various locations.
While I'm new at all of this, I've been able to connect up everything, get the PrivateEyePi on my RPI, set up an account and get my sensor data there.

But, I have five sensors and I'm not sure which went where. I physically labeled my sensors, but I don't know how to determine which sensor is which easily.

Can someone tell me how to do this?
Thanks!

Jason

unread,
Dec 1, 2019, 3:08:33 AM12/1/19
to PrivateEyePi
I'm wonder if I've missed something.

At Step 4, "Step 4: Configure the program" 


It reads,

"Page down until you see the DallasSensorNumber settings (as per Figure 4). Enter the GPIO number of the sensor (e.g. DallasSensorNumber(7) ), replacing the numbers you see in the file with your own numbers. If you have multiple sensors then repeat the line with the other GPIO numbers (as per Figure 4)."

But, there is no Figure 4.
The dashboard seems to see all of my sensors as the same temperature, even when warm one up.
Also, the temperature numbers are not updating themselves. Seems like 'dallas' and 'alarm' should be on autostart in the globals.py file?

Jason

unread,
Dec 1, 2019, 4:13:57 AM12/1/19
to PrivateEyePi


On Sunday, December 1, 2019 at 12:08:33 AM UTC-8, Jason wrote:
I'm wonder if I've missed something.

At Step 4, "Step 4: Configure the program" 


It reads,

"Page down until you see the DallasSensorNumber settings (as per Figure 4). Enter the GPIO number of the sensor (e.g. DallasSensorNumber(7) ), replacing the numbers you see in the file with your own numbers. If you have multiple sensors then repeat the line with the other GPIO numbers (as per Figure 4)."

But, there is no Figure 4.
The dashboard seems to see all of my sensors as the same temperature, even when warm one up.

I found the solution to this one in another thread! 

"Because you have multiple temperature readings you need to assign unique id’s to each sensor and the associate each of those id’s with the directory on your Raspberry Pi that contains the temperature readings for each id. In the tutorial we have three sensors given as an example with id’s 7, 89, and 88. The first number (7) is the RPI PIN number to which you have connected the ds18b10 chain of sensors (per figure 2). 89 and 88 are any arbitrary numbers that give the other sensors a unique id. Then the DallasSensorDirectory settings (the three lines below the sensor numbers) you associate the Sensor id’s with the sensor reading directories on the RPI. The first directory is for sensor 7, second is the directory for sensor 89 and the third for sensor directory 88.

Once you have Dallas.py running ok then you will see three sensors appear on PrivateEyePi with GPIO no’s 7, 89 and 88."


 
Also, the temperature numbers are not updating themselves. Seems like 'dallas' and 'alarm' should be on autostart in the globals.py file? Even after starting, the temp readings stop after a while. How can I adjust the reading interval and keep them running?

Gadjet Nut

unread,
Dec 1, 2019, 8:41:21 AM12/1/19
to Jason, PrivateEyePi
Thanks. Figure 5 should be called figure 4. We’ll update the tutorial. Is there something else we should change in the tutorial to make it easier to understand?

You say your deans or are not updating themselves. Can you be more specific what you mean? Try give as much information as possible.  

--
You received this message because you are subscribed to the Google Groups "PrivateEyePi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privateeyepi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privateeyepi/fc66fda2-2de2-434c-8e41-ab5b28c1ef49%40googlegroups.com.

Jx J

unread,
Dec 1, 2019, 11:41:42 AM12/1/19
to PrivateEyePi
It's really easy.
I hold one of them and see which temperature reading goes up.   Then move to the next one.
If you live in a really hot country, use a block of ice instead.

Jason

unread,
Dec 1, 2019, 1:29:19 PM12/1/19
to PrivateEyePi
OK, I can do that, thank you.

Jason

unread,
Dec 1, 2019, 2:06:25 PM12/1/19
to PrivateEyePi
On Sunday, December 1, 2019 at 5:41:21 AM UTC-8, Gadjet Nut wrote:
Thanks. Figure 5 should be called figure 4. We’ll update the tutorial.

OIC, thank you.

 
Is there something else we should change in the tutorial to make it easier to understand?

I don't know. I know so little about all of this, that I am only now getting a glimmer about how much I don't know.
You've done a great job, it's so cool how people work so hard to provide so much information.
But, I will take some time and re-read the tutorial and think on it. I'll take some notes and try to help a little bit.


You say your deans or are not updating themselves. Can you be more specific what you mean? Try give as much information as possible.

After I get a few temperature readings, they seem to stop. No new readings come in. I'm so sorry, I know so little.
But, I am learning more with all the reading that I am doing. I feel guilty for asking for help, I think that I really need
to slow down and just learn a lot more about all of this.
 

On Sun, Dec 1, 2019 at 4:14 AM Jason <Ja...@yosemiteoutside.com> wrote:


On Sunday, December 1, 2019 at 12:08:33 AM UTC-8, Jason wrote:
I'm wonder if I've missed something.

At Step 4, "Step 4: Configure the program" 


It reads,

"Page down until you see the DallasSensorNumber settings (as per Figure 4). Enter the GPIO number of the sensor (e.g. DallasSensorNumber(7) ), replacing the numbers you see in the file with your own numbers. If you have multiple sensors then repeat the line with the other GPIO numbers (as per Figure 4)."

But, there is no Figure 4.
The dashboard seems to see all of my sensors as the same temperature, even when warm one up.

I found the solution to this one in another thread! 

"Because you have multiple temperature readings you need to assign unique id’s to each sensor and the associate each of those id’s with the directory on your Raspberry Pi that contains the temperature readings for each id. In the tutorial we have three sensors given as an example with id’s 7, 89, and 88. The first number (7) is the RPI PIN number to which you have connected the ds18b10 chain of sensors (per figure 2). 89 and 88 are any arbitrary numbers that give the other sensors a unique id. Then the DallasSensorDirectory settings (the three lines below the sensor numbers) you associate the Sensor id’s with the sensor reading directories on the RPI. The first directory is for sensor 7, second is the directory for sensor 89 and the third for sensor directory 88.

Once you have Dallas.py running ok then you will see three sensors appear on PrivateEyePi with GPIO no’s 7, 89 and 88."


 
Also, the temperature numbers are not updating themselves. Seems like 'dallas' and 'alarm' should be on autostart in the globals.py file? Even after starting, the temp readings stop after a while. How can I adjust the reading interval and keep them running?

On Saturday, November 30, 2019 at 8:05:03 PM UTC-8, Jason wrote:

I'm testing cooling performances for a 3D printer. I'd like to use 5 sensors to check temperatures at various locations.
While I'm new at all of this, I've been able to connect up everything, get the PrivateEyePi on my RPI, set up an account and get my sensor data there.

But, I have five sensors and I'm not sure which went where. I physically labeled my sensors, but I don't know how to determine which sensor is which easily.

Can someone tell me how to do this?
Thanks!

--
You received this message because you are subscribed to the Google Groups "PrivateEyePi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privat...@googlegroups.com.

Jason

unread,
Dec 1, 2019, 4:51:54 PM12/1/19
to PrivateEyePi
It's running constantly now, so I guess it's fixed!
Oh boy, I have so much to learn!
Reply all
Reply to author
Forward
0 new messages