Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:31 07 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Cant display temterature

Author Message
Desw
Newbie

Joined: 20/02/2017
Location: Australia
Posts: 5
Posted: 07:05pm 25 Feb 2017
Copy link to clipboard 
Print this post

This is my first post to any forum.Have taken up interest in the Micromite since reading about it in Silicon chip.Have worked with the picaxe but liked the idea of touch screen control.My problem is getting a DS18B20 to display its temperature on the LCD.Using the code TEXT MM.HRes/2,MM.VRes/4,DS18B20$,CM,1,4,RGB(CYAN),RGB(BLUE)does not return any errors but will not show temperature reading.Have spent a lot of time trying to figure out how to without any luck Would be very thankfull if some one could help out. Hardware is working as the temp shows up on the conscole.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 07:15pm 25 Feb 2017
Copy link to clipboard 
Print this post

Welcome to the forum.
Can you get any text to display on the LCD?
Can you get the temperature to display on the console as a string?

DS18B20$ = str$(TEMPR(pin_number))
PRINT DS18B20$

That will confirm the reading part.
Only then can you try and display it.

Jim
VK7JH
MMedit
 
Desw
Newbie

Joined: 20/02/2017
Location: Australia
Posts: 5
Posted: 07:30pm 25 Feb 2017
Copy link to clipboard 
Print this post

Thanks for replying
Have displayed text time date etc on LCD
Have displayed temp on console
Will try with your code
Thanks again
 
Desw
Newbie

Joined: 20/02/2017
Location: Australia
Posts: 5
Posted: 08:19pm 25 Feb 2017
Copy link to clipboard 
Print this post

Thank you TassyJim
Tried your code it worked
Are u from Tasmania by any chance
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 09:12pm 25 Feb 2017
Copy link to clipboard 
Print this post

  Desw said  
Are u from Tasmania by any chance

What makes you think that?
North-West.

VK7JH
MMedit
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025