LCD display and BoeBot
Hi!
I want to put a LCD display into my BoeBot.
I've three push-buttons connected to my BoeBot. I would like to create a "pulse counter" with an LCD.
I've 3 push-buttons, called A, B, and C.
I would like that the LCD shows this:
If I push A and C :
If I push B and C:
...... (and always the same) .......
I would like to create a push counter.
It's possible with a 2 lines Parallax LCD ( http://www.parallax.com/Store/Accessories/Displays/tabid/159/CategoryID/34/List/0/Level/a/ProductID/52/Default.aspx?SortField=ProductName,ProductName ), so the text will have to scroll ¿?
Sorry if my English isn't very good.
Regards from Barcelona!
I want to put a LCD display into my BoeBot.
I've three push-buttons connected to my BoeBot. I would like to create a "pulse counter" with an LCD.
I've 3 push-buttons, called A, B, and C.
I would like that the LCD shows this:
A has been pushed: 0 B has been pushed: 0 C has been pushed: 0
If I push A and C :
A has been pushed: 1 B has been pushed: 0 C has been pushed: 1
If I push B and C:
A has been pushed: 1 B has been pushed: 1 C has been pushed: 2
...... (and always the same) .......
I would like to create a push counter.
It's possible with a 2 lines Parallax LCD ( http://www.parallax.com/Store/Accessories/Displays/tabid/159/CategoryID/34/List/0/Level/a/ProductID/52/Default.aspx?SortField=ProductName,ProductName ), so the text will have to scroll ¿?
Sorry if my English isn't very good.
Regards from Barcelona!
Comments
SEROUT <pin>,<Baud>,[noparse][[/noparse]"A:",dec2 Acnt, " B:",dec2 Bcnt, " C:",dec2 Ccnt]
would display the count information for A, B, and C. You'll need additional characters at the beginning of the SEROUT to instruct the display to position to the first row and first column. I don't have that information handy, but it's in the documentation and examples for the display. Acnt, Bcnt, and Ccnt are byte variables where you keep a count of the number of times the button is pressed. If you haven't already, download and read the "What's a Microcontroller?" tutorial (which is also available in Spanish). It'll show you examples for connecting and sensing push button pushes.
I'll buy the LCD and putting the information in the way that you've told me.
Thanks again, Mike!.