Hi Guys.
I have been trying to understand and learn how to use the one wire function. Being new to Flowcode and Micro chips, I am not doing to well.
I am trying to use this with a DS18B20.
At the moment i have taken the One Wire Example form the Example pack and have changed the relevant Custom code for the One Wire.
How ever when I connect up my sensor I am unable to get the correct temp to display and get 85.0 on my display.
I have also been getting this with other examples i have been looking at and found on the forum.
I am running this in a Pic16F887a
with the sensor On port A0. i have tried with the VDD pin connected to GND & with the Data pin connected with a 4K7 resistor to the v5 line of my board.
I have attached the code for you to look at as i might of missed some thing..
any help would be very much appreciated
Thanks
Tristan
One Wire DS18B20
Moderator: Benj
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: One Wire DS18B20
Dear Tristian,
The 85 C reading means is the default temperature of the sensor. This means part of your setup is working correctly. What is wrong, software of hardware, can be checked by using a working software of Ben
http://www.matrixmultimedia.com/mmforum ... B20#p15709
Good luck
Jan
The 85 C reading means is the default temperature of the sensor. This means part of your setup is working correctly. What is wrong, software of hardware, can be checked by using a working software of Ben
http://www.matrixmultimedia.com/mmforum ... B20#p15709
Good luck
Jan
-
- Flowcode V4 User
- Posts: 40
- Joined: Sat Mar 06, 2010 5:25 am
- Location: Chicago USA, & Oxford & Northampton UK
- Has thanked: 6 times
- Contact:
Re: One Wire DS18B20
Thanks Jan,
Looks like have found my problem....
I have 2 Bad Sensors. found a 3 sensor and plugged it in and i am getting a reading.
Thanks
Looks like have found my problem....
I have 2 Bad Sensors. found a 3 sensor and plugged it in and i am getting a reading.
Thanks