Shop OBEX P1 Docs P2 Docs Learn Events
Sensor data to 2x16 LCD — Parallax Forums

Sensor data to 2x16 LCD

Eagle1Eagle1 Posts: 28
edited 2009-09-12 20:53 in BASIC Stamp
Just got a Parallax 2x16 serial LCD and it works great ! Problem is that I can't reason out how to send sensor data, such as, DS1620 temperature or ADC0831 voltage to the LCD display. Can someone point me in the right direction?

Thank-You-In-Advance

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-12 19:37
    From something like a DS1620 or an ADC0831, you'll get a number. In the case of the ADC0831, it'll be an 8-bit byte with a value between 0 and 255. You'd use a SEROUT statement to send this 8-bit byte to the LCD as a string of digits by using what's called a "formatter" like DEC. If your value is in a variable called "result", you'd use something like: SEROUT <pin>,<Baud>,[noparse][[/noparse]DEC result] where <pin> and <Baud> are whatever values you need for your LCD display.
  • Eagle1Eagle1 Posts: 28
    edited 2009-09-12 20:53
    Thanx Mike , worked as you described, just needed that little nudge!
Sign In or Register to comment.