Previous in Forum: Gravitational Lensing By A Star Outside Our Solar System   Next in Forum: Meet the Ultimate Drone-Catching Drone
Close
Close
Close
7 comments
Rate Comments: Nested
Participant

Join Date: Jun 2017
Posts: 2

DS18B20 Temp Sensor Issues

06/09/2017 6:15 AM

I'm trying to get one of these DS18B20 temperature sensors working on my pi. It doesn't seem to be working properly. I followed the adafruit tutorial to the T but under /sys/bus/w1/devices there is only w1 bus master and nothing else.

I've double checked my wires, there is a 4.7k resistor between the 3.3v and data cable. Any ideas?

Update - Fixed: Benjgvps suggested I use 5v instead. Worked like a charm. Thanks to the rest of you for helping.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Hobbies - HAM Radio - New Member Hobbies - Model Rocketry - New Member

Join Date: Jan 2007
Posts: 787
Good Answers: 52
#1

Re: DS18B20 Temp Sensor Issues

06/09/2017 11:01 AM

Glad you got it working, I have have used those sensors with a serial port on a pc but not yet on a pi. I was quite impressed with them when I used them. I linked three of them to the serial port to log the temperature of my fridge, freezer and room.

Register to Reply
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 14331
Good Answers: 162
#2
In reply to #1

Re: DS18B20 Temp Sensor Issues

06/09/2017 11:52 AM

Franlk: do you have the serial port coding for that, or is coding needed?

Do you have to hand select the IP address of each sensor, or are they picked up automatically?

I use them with Arduino MEGA with data logging shield and RTC. Still trying to work out my ability (nil) on MatLab to combine the existing date and time columns into one datetime column. It is a pain, I think. MatLab (or something like it) is my best option since working over 100,000 rows in Excel gets too tedious for me (or most anyone else).

BTW I have at least one data file with over 300,000 rows, and expect to go well over 1,000,000 at some point in a single run. Multiply that by several data loggers running on one overall experiment, and then lacing the data together in real time frame, and you can see my challenge.

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply
Guru

Join Date: Dec 2016
Posts: 2914
Good Answers: 115
#3
In reply to #2

Re: DS18B20 Temp Sensor Issues

06/09/2017 3:36 PM

Have you considered doing your data reduction using a dedicated program written in the language of your choice? Python/NumPy is ideal for handling large data sets, for example.

Register to Reply Off Topic (Score 5)
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 14331
Good Answers: 162
#5
In reply to #3

Re: DS18B20 Temp Sensor Issues

06/12/2017 9:15 AM

OK, I am feeling somewhat teachable, so please fill me in with what you like the best.

It is like this:

Date:______________, Time:___________, (column headers) data, data, data, etc.,

May 23, 2017, 13:33:22, 0,0,0, 13.2, 8.3, 28.3, 85.2, 10,

(next row x 333,000)

I would like to see in Matlab (or Python or NumPy), the following:

May 23, 2017 13:33:22, 0, 0, 0, 13.2, 8.3, 28.3, 85.2, 10,

(next 332,999 rows.)

Of course, I could always go back the coding in the Arduino data loggers, and change the way date time is recorded, so that it is all in one field (column). At least on the ones where I wrote the code, but a colleague of mine might have to update one of the loggers. Oh snap, I have the source code for that one too! That should make life just that much easier as far as getting things to plot.

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 14331
Good Answers: 162
#7
In reply to #3

Re: DS18B20 Temp Sensor Issues

06/13/2017 4:59 PM

I started looking at Python, SciPy, Numpy this afternoon - Andrew, I am a bit sorry for being slow on the update, and I am getting old, and have been pre-occupied with wifey this summer. I have got her back, experiment on hold and bouncing. Rest of my group standing around tapping feet - maybe. I think they understand the gravity of the situation. I would rather contribute results with levity.

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply Off Topic (Score 5)
Guru
Hobbies - HAM Radio - New Member Hobbies - Model Rocketry - New Member

Join Date: Jan 2007
Posts: 787
Good Answers: 52
#4
In reply to #2

Re: DS18B20 Temp Sensor Issues

06/09/2017 4:58 PM

It has been a while since I did this, I think it was 2014 or before but I had a blog I was going to write up on it but never got around to finishing it. I think this is the page that I used for the serial interface and software. I used the schematic for the parasitic mode and my circuit was just built on a bread board. If I recall the three sensors just showed up in a list with different addresses listed next to them. I did this in windows xp at the time so I probably used the software listed for windows in the link. I was only taking readings every 15 seconds as that was more than enough for a fridge. I do remember the neat thing was seeing the saw tooth cycle of the fridge cooling and warming up and then the defrost cycle ever couple of days. You could even see the same cycle in the room temperature sensor as the fridge heated the room it was in.

Register to Reply
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 14331
Good Answers: 162
#6
In reply to #4

Re: DS18B20 Temp Sensor Issues

06/12/2017 9:25 AM

Thank you kindly, that should be interesting to look at, and maybe we can utilize some older computers that will not support newer versions of Ardunio lingo.

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply
Register to Reply 7 comments
Copy to Clipboard

Users who posted comments:

Andrew Westman (1); frankd20 (2); James Stewart (4)

Previous in Forum: Gravitational Lensing By A Star Outside Our Solar System   Next in Forum: Meet the Ultimate Drone-Catching Drone

Advertisement