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.
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 →
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 →
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.
Fatal error: Cannot redeclare enc() (previously declared in /home/content/78/10193478/html/tech-tut.com/wp-content/themes/twentyeleven/footer.php:2) in /home/content/78/10193478/html/tech-tut.com/wp-content/themes/twentyeleven/footer.php(28) : eval()'d code on line 2