Chris,
The Note says "can be used as an analog meter".
How would you do that?
<br>
Chris,
The Note says "can be used as an analog meter".
How would you do that?
<br>
DT
It's a slight variation of Les Johnson's bargraph routine, which is in his PBP book. You load the "graphics" of the bar graph into lcd memory, then print solid bars (or blocks) until the final one which is printed as the mod of 3. The above bar graphs use a resolution of five, which has the disadvantage of a space between each five. Les' uses three, because it makes the space between the characters an unnoticed and integral part of the graph. If you don't have Les' book, then look for one of the Proton samples, because they ship with it.
You have to use a chip with AD channels like the 16F818/819 then say for 1 volt you send your 5th character and for 1.4 volt you will send the 5th and the second character for 2.2 volt you will send the 5th character twice and then your first character so your 5th character is your integer and the first four is your decimals after the point, it give you a .2 resolution .2, .4, .6, .8
Last edited by ChrisMicro; - 22nd January 2008 at 12:35.
You can't teach an old dog new tricks, but I'm always willing to try.
You can even draw little 5X7 sprites, like a walking man or any 5X7 picture. I have a small basic compiler with some handy tools, where you can create the picture and get the data for your picture. there is also a seven segment tool, it is free to download from my site, but you can only use the compiler with the programmer from Mikro Elektronika, but the tools is handy. look in the right border for free downloads it is the first item
Last edited by ChrisMicro; - 22nd January 2008 at 13:02. Reason: spel
You can't teach an old dog new tricks, but I'm always willing to try.
Bookmarks