Pages: [1]   Go Down
Author Topic: temperature sensors  (Read 513 times)
0 Members and 1 Guest are viewing this topic.
scranton,pa
Offline Offline
Newbie
*
Karma: 2
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,i did not play with arduino for a while and now trying to do temperature sensor with  OneWire but every example does not work.My plan is to have 2 or 3 temperature sensor hooked up to hot tub to keep from freezing pump,check and set/turn on heat all from phone. I have got my uno and ethernet shield to work over internet but can not find OneWire code that workes so i can learn from.

does anyone have code that works?

thanks tom
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
does anyone have code that works?
Yes, I have some. Probably won't work with your sensors. On the other hand, it might. If you said what kind of sensors (in the form of a link), and showed your code, and explained what "it didn't work" really meant, perhaps some real help would be forthcoming.
Logged

0
Offline Offline
Shannon Member
****
Karma: 199
Posts: 11650
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which temperature sensor?  What code?  We are not mind readers.  [well perhaps on a good day!]
Logged

[ I won't respond to messages, use the forum please ]

scranton,pa
Offline Offline
Newbie
*
Karma: 2
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this is the sensor https://www.sparkfun.com/products/9438 and the arduino  library OneWire
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want to use OneWire on that sensor, it is probably a ggod idea that that sensor speaks OneWire.
Logged

0
Offline Offline
Shannon Member
****
Karma: 199
Posts: 11650
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

LM335A requires analogRead(), not OneWire.
If you really want some code for it you could look at that page and read the "Comments" section.
Logged

[ I won't respond to messages, use the forum please ]

scranton,pa
Offline Offline
Newbie
*
Karma: 2
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well thanks anyway but i tried codes from "Comments" section and when i check code it comes up error and not sure why,that is why i asked if anyone had sample code that works so i can learn from
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but i tried codes from "Comments" section
Show us what code you tried. Don't expect us to go looking.

Quote
and when i check code it comes up error and not sure why
Perhaps you could ask somewhere. Like, maybe, I don't know, how about here on the forum? Post the error messages.
Logged

Pages: [1]   Go Up
Jump to: