How to show the total number to the LCD (2x8)
davidchoi
Posts: 7
i buy the LCD appmod 2x8
i use basic stamp to do the coin electronic saving box
and i want to use LCD appmod 2x8 to display total coin in the saving box
coin it will be $1 $2 $5 and $10
how to write the program
i use basic stamp to do the coin electronic saving box
and i want to use LCD appmod 2x8 to display total coin in the saving box
coin it will be $1 $2 $5 and $10
how to write the program
Comments
We need more details. Doyou have the LCD and have you got it working using the sample code? How are you counting the coins? Give as much information as youcan and folks will be happy to help.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
my LCD model is LCD TERMINAL APPMOD 29121 the LCD display it have 4 button . each button is set the coin number , i want the coin crash the button then the LCD display will add the total to input.
I use the materials such as this LINK
http://www.parallax.com/Portals/0/Downloads/docs/prod/appmod/29121-LcdAppMod-v1.2.pdf
finally I ask one more question basic stamp can use 74C922 to connect keypad
If you go to http://search.parallax.com·and type 74C922, you will find several links, one of which is: www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol4/col/nv97.pdf
the LCD display have 4 button, how to set each button is +1,+2,+5,+10, how can i write a program to do this function?
The routine to get the button values returns the button status in the lower 4 bits of the variable "buttons". You need to test each bit in turn and, if the button has changed from 0 to 1 you would add the appropriate value to a variable, perhaps called "coins". To keep track of whether the button changed from 0 to 1, you obviously have to remember the previous value of "buttons" so you can compare to the new value. You need another variable for that.
If this doesn't make sense to you, you'll have to back up and learn some of the basics of programming the Stamps. "What's a Microcontroller?" is a good introduction to this. You can download it from the Stamps in Class Downloads page here: www.parallax.com/tabid/535/Default.aspx.
If you don't already have it, you will need a copy of the BASIC Stamp Syntax and Reference Manual here: www.parallax.com/tabid/440/Default.aspx.