Gini009 0 Posted September 8, 2014 Share Posted September 8, 2014 I am using DS18S20, and supposedly I'm doing the right math for it. I am simply comparing the same sensor type readout between two platforms (raspberry pi vs TM4C1294) . Almost always on tiva c its 2-3+ degrees hotter. So I'm wondering why the difference between two exactly identical sensors (i'm pointing fingers at the platform/library). As you say the sensor is very accurate so I'd expect to see both readouts within a degree of each other. I've been running multiple DS18S20 sensors on a Pi and the output is more close together when they are reading the same area. Great work on the library btw! Its a very good starting point. Quote Link to post Share on other sites
Grandthau 0 Posted September 8, 2014 Share Posted September 8, 2014 I am not an energia user so we may have to ask an energia user to pipe up here. In CSS, I would have to setup both the pin number and the port number in C code so that the functions would know where to find the sensor. So, the missing information is how to tell energia what port the sensor is on. Figure that out and it ought to work. It is the same thing. If you write P3_6 it means 29 in Energia. That is not the problem and did not solve the problem... I am a rookie, i really do not know how to fix it.. Do you know how to do this in CCS????? That would be really great for me if anyone could help me do this in CCS.. Quote Link to post Share on other sites
zeke 693 Posted September 8, 2014 Share Posted September 8, 2014 Do you know how to do this in CCS????? That would be really great for me if anyone could help me do this in CCS.. Yeah, sure. Check out this thread where we worked out all the details on how we got a DS18B20 and a DS18S20 working. Grandthau 1 Quote Link to post Share on other sites
Grandthau 0 Posted September 9, 2014 Share Posted September 9, 2014 Yeah, sure. Check out this thread where we worked out all the details on how we got a DS18B20 and a DS18S20 working. Thank you very much!!! I am trying to make it work with my MSP430f5529, but some variable names are not the same(obviously). Could you explain these lines for me? #define UART_TXD 0x02 // TXD on P1.1 (Timer0_A.OUT0) #define UART_RXD 0x04 // RXD on P1.2 (Timer0_A.CCI1A) #define UART_TBIT_DIV_2 (16000000 / (9600 * 2)) #define UART_TBIT (16000000 / 9600) All the timer_UART names are wrong(undefined). How do you fix this?? Quote Link to post Share on other sites
zeke 693 Posted September 9, 2014 Share Posted September 9, 2014 Yeah, that code was written for the 2231 I believe. We had to bit bang the uart on it. The 5529 has a couple hardware uarts. Give me some time to get you some sample code for the 5529 instead. I'll be back! Grandthau 1 Quote Link to post Share on other sites
czibol 0 Posted September 14, 2014 Share Posted September 14, 2014 What could be the problem? Quote Link to post Share on other sites
Grandthau 0 Posted September 22, 2014 Share Posted September 22, 2014 Yeah, that code was written for the 2231 I believe. We had to bit bang the uart on it. The 5529 has a couple hardware uarts. Give me some time to get you some sample code for the 5529 instead. I'll be back! Any luck?? What if you do not use the uart interface of 5529 and bit bang another one, just like you did with 2231... Quote Link to post Share on other sites
zeke 693 Posted September 22, 2014 Share Posted September 22, 2014 @@Grandthau, Yes. See this thread for all the details. Quote Link to post Share on other sites
zaxu 0 Posted November 25, 2014 Share Posted November 25, 2014 Hi all, i'm using this library on Stellaris LM4F120 and i have a problem. Sensor often gives to me value 0 and other times the right value of temperature. The sensor works well on arduino so it's not the problem. What can i do?? Thx a lot Quote Link to post Share on other sites
zaxu 0 Posted November 25, 2014 Share Posted November 25, 2014 Hi all, i'm using this library on Stellaris LM4F120 and i have a problem. Sensor often gives to me value 0 and other times the right value of temperature. The sensor works well on arduino so it's not the problem. What can i do?? Thx a lot Quote Link to post Share on other sites
zaxu 0 Posted November 25, 2014 Share Posted November 25, 2014 Hi all, i'm using this library on Stellaris LM4F120 and i have a problem. Sensor often gives to me value 0 and other times the right value of temperature. The sensor works well on arduino so it's not the problem. What can i do?? Thx a lot Quote Link to post Share on other sites
abecedarian 330 Posted November 29, 2014 Share Posted November 29, 2014 Hi all, i'm using this library on Stellaris LM4F120 and i have a problem. Sensor often gives to me value 0 and other times the right value of temperature. The sensor works well on arduino so it's not the problem. What can i do?? Thx a lotYou have pull-up resistor(s) in place? Quote Link to post Share on other sites
mbruder 1 Posted January 12, 2015 Share Posted January 12, 2015 I'm starting to use Launchpad CC3200 and I had no luck with any of those libraries. Has anyone been working with CC3200 and DS18B20? RobLewis 1 Quote Link to post Share on other sites
OzGrant 22 Posted January 12, 2015 Author Share Posted January 12, 2015 As I need an excuse to fire up my new CC3200, will check it out with a DS18. Will get back soon. Grant Quote Link to post Share on other sites
RobLewis 7 Posted February 11, 2015 Share Posted February 11, 2015 As I need an excuse to fire up my new CC3200, will check it out with a DS18. Will get back soon. Grant Waiting breathlessly for your report :-) I'd like to read a few sensors, not just a single one. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.