Connect with us

Dallas temperature DS18B20 sketch mod

Discussion in 'General Electronics Discussion' started by bigone5500, Aug 18, 2015.

Scroll to continue with content
  1. bigone5500

    bigone5500

    712
    121
    Apr 9, 2014
    I wanted to see if I could implement a temperature conversion in a sketch and output the temperature in F instead of C. I am also making it output to an I2C LCD.

    Here is my sketch so far. The only thing I can't figure out is the display has some foreign characters after my reading.
     

    Attached Files:

  2. bigone5500

    bigone5500

    712
    121
    Apr 9, 2014
    Can anyone take a look at the sketch and tell me why I get these weird characters on the display?

    20150818_152042.jpg
     
    Last edited: Aug 23, 2015
  3. bigone5500

    bigone5500

    712
    121
    Apr 9, 2014
    I figured out what was happening. I had lcd.println which was causing the odd characters. I removed the 'ln' and all is good.
    It seems like I read somewhere that the 1602 does not like carriage returns...
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-