How to display variables to a parallel LCD: my test code

I was messing around with a parallel LCD earlier, and I could not figure out how to display variables to it. I was becoming agitated when an idea came to mind. When I programmed clocks, I remember breaking the time down into four segments. The same thing applies here. Bingo. Below is my test code in C++ to emulate C. The only difference is the integers on a computer are 4 BYTES in length. In the test code for a negative numbers in a microcontroller, there will need to be an overloaded function to send signed integers to since an unsigned integer might be misinterpreted as signed. There will be more challenges ahead. There will need to be other approaches for floating numbers.

There is no error checking in the code below. Be sure that you do not exceed the length of the character array. They will always need one more place to account for the null character.

Continue reading

The Temp/Humidity/Dewpoint Datalogger: Final Product

Well, due to eBay difficulties, I was severely delayed in finishing this project. It seems that the person that I ordered my first blue LCD display from didn’t want to send a few folks their stuff this month. I went to check on the status of my order, and there were negative feedbacks from around the time that I placed it. So much for that. They sure were inexpensive.
Continue reading

Serial LCD and breadboards that I bought from eBay

I’ve been doing some shopping lately on The eBay. I went into my barn the other day and couldn’t find a single solderless breadboard. How can an experimenter work without one? So I tried to find some SPICE programs to help me play some. No way! That is not something I want to spend hundreds to thousand of dollars on.
Continue reading

Temperature, Humidity, Dewpoint and Clock datalogger

This is another project that I am currently working on. I started this one back in February and had quite a bit of programming done. I am using the PIC16F887 microchip and programming it in C. I had pages upon pages written, and the program was deleted from my computer. Well, today I am glad that it was deleted because it has enabled me to write a much better program. My first one was very sloppy. I started writing the program into several parts to keep it simple, and at the end I will slowly begin to combine the segments as needed. The first thing I will need to do is combine an LCD snippet and the SHT11 temp probe snippet to make sure that the SHT11 portion of the program actually works. I wrote the program according to examples from the BasicStamp, and sometimes breaking those down can be tough.

SHT11 datasheet hosted on www.sensirion.com