Shop OBEX P1 Docs P2 Docs Learn Events
Serial LCD to BS2P-24 and Thermocouple — Parallax Forums

Serial LCD to BS2P-24 and Thermocouple

Twisted PairTwisted Pair Posts: 177
edited 2007-03-10 15:13 in BASIC Stamp
Trying to connect·my·3 Wire Parallax·2x16 Serial Backlit LCD (PN# 27977), to my BS2P-24, which has a Parallax Thermocouple Kit (PN# 28022), connected to Pin 8. I downloaded the Demo code (Thermo-k.BPE) from the Advanced Code folder·on the Parallax web site and the Thermocouple works Fine as I can read the Temperature on my PC using the Stamp Editor.·The problem is that the Demo Code is using a LCD with more Pins out to the LCD than I have with the 27977. Is the 27977 compatible with the BS2P-24 ? If so, can anyone share a code that will allow me to use two Thermcouple's,·One that Displays temperature on line one of the LCD, and the other temperature on line two. I will also need the Backlit. My lack of programming experience and Newbism prompted this question. Thanks for your help.

·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-21 15:21
    Hello,

    ·· There is example code for the LCD which explains how to write data to it. There are also examples for the Thermocouple. The trick will be merging these programs since you’re new and do not have the experience doing this. Have you read through the “What’s a Microcontroller?” manual? It covers many fundamental basics, although the code examples are all written around the BS2. You will find that the BS2p has different timing parameters for some commands due to it being so much faster. This causes you to have to modify much example code that was written for the BS2 to adjust for these parameter differences.

    ·· In the example code for the LCD Display there are constants for setting the current line to print on. If these constants are included in your source code it will be a simple matter of putting the constant at the start of your SEROUT data to set it to that line. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-02-22 00:38
    Yes, I have read the WAM and performed all the activities. It's a well assembled coarse. I had fun with it too. The Solder Pot Controller sounds more like what I'm after since I will be doing basically the same thing with my Crydom relays Etc. Are the code, parts list and schematics that you used available ?

    Thanks Chris....
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-22 00:58
    Well I could post the code, but you would still have to make changes to add the second thermocouple as well as changing the subroutine for the display since it’s different than the LCD. I will try to put together a parts list and maybe even a schematic. The knob is actually attached to a rotary encoder, not a potentiometer.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-02-22 01:27
    If you could post that info I think that I would get a better view of the big picture while trying to learn programming. Fun Stuff. Will the info be in the Completed Projects Forum ?


    Thanks Again Chris....
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-22 20:10
    This weekend I will try to compile everything I have and we’ll try to get it online next week in the Completed Projects Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-02-23 01:28
    Thanks Chris....
  • Marc SchneiderMarc Schneider Posts: 5
    edited 2007-02-27 21:34
    Hi, I am looking for the same sort of thing. I just got into the Basic Stamps and I have the Bs2pe. I am trying to display the values of the temp on my lcd #27979, which is very similar to twisted pairs. I am only looking to display one set of values rather then two, but im sure the coding will be very similar. Thanks.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-02-27 22:21
    Marc -

    Take a look at the SEROUT command in the PBASIC Manual, or the PBASIC Help file. That will get you started.

    The basic format is:

    SEROUT PinPort, BaudMode, [noparse][[/noparse]variable1, variable2 ... ]

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-03-08 00:49
    Anyone know where to find Info or Posts regarding the Solder Pot Controller that Chris Savage built ?· Thanks, Twisted Pair....
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-08 15:04
    Sorry, I spent the whole weekend sick with a cold…Never got the information compiled. I will try to do that today and get it posted. Check back in a few hours. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-03-08 16:45
    Thank you Chris. Just trying to move ahead with my project. I do appreciate your time. LCD is up and runnig now. Its performing as expected. Great support from you and Parallax. Thanks Again....Twisted Pair....
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-09 15:13
    Twister Pair,

    Wouldn’t you know, we had an area power outage yesterday here and I was unable to get the schematic completed. It’s on my priority list today and we’ll get it up on here as soon as I get that done. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-03-09 16:59
    Sounds like my luck Chris....Thanks for your time....
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-10 01:59
    Twisted Pair...As promised here is the Solder Pot Controller information posted...I came home and worked on it until I got it done! I hope it helps you. Take care!

    http://forums.parallax.com/showthread.php?p=637023

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-10 02:08
    By the way, as per my earlier post regarding displaying temperature on the Serial LCD I will offer you this. With the Solder Pot Controller code all it would take to change from the Serial LED Display to a Serial LCD Display would be to alter the Display_Temps and few subs below that. Pretty straight forward. Some small amount of re-writing would need to be done to easily account for two thermocouples and to clean things up a little. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Twisted PairTwisted Pair Posts: 177
    edited 2007-03-10 15:13
    Thank you very much for the Solder Pot Controller Info Chris. Your commitment and Professionalism shows.

    Twisted Pair....
Sign In or Register to comment.