A bit of help please
As I write this I am a student in a technial school in PA. This term we are doing digital circuits with a new instructor that has no knowledge on much of anything useful. For our lab class we are working with Parallax Basic Stamp. Our final project we are doing a ech a sketch clock run sololy by the basic stamp. We are using the pulsout command to make letters by running servos which is working pretty good. We are running into a bit of trouble with all 10 characters that can be displayed we don't have enough room to have that and a program to tell the stamp which numbers to write. With having to do all of our own research on how to do this and us being begginners I would like it if someone could point me in the corrent direction and maybe give me some options on how to have a program tell the stamp what time it is and what numbers to display. Thanks for your time in this matter.
Here is our number one program:
' {$STAMP BS2}' {$PBASIC 2.5}counter VAR WordDEBUG "1", CRFOR Counter = 1 TO 25 PULSOUT 4, 400 PAUSE 35 NEXTGOSUB servo_pauseDEBUG "2", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30 NEXTGOSUB servo_pause DEBUG "3", CRFOR counter = 1 TO 13 PULSOUT 15, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "4", CRFOR counter = 1 TO 2 PULSOUT 4, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "5", CRFOR counter = 1 TO 13 PULSOUT 15, 400 PAUSE 30NEXTGOSUB servo_pauseDEBUG "6", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30NEXTENDservo_pause: DEBUG "Blank", CR FOR Counter = 1 TO 10 PULSOUT 14, 500 PAUSE 30 NEXTRETURN
Here is our number one program:
' {$STAMP BS2}' {$PBASIC 2.5}counter VAR WordDEBUG "1", CRFOR Counter = 1 TO 25 PULSOUT 4, 400 PAUSE 35 NEXTGOSUB servo_pauseDEBUG "2", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30 NEXTGOSUB servo_pause DEBUG "3", CRFOR counter = 1 TO 13 PULSOUT 15, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "4", CRFOR counter = 1 TO 2 PULSOUT 4, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "5", CRFOR counter = 1 TO 13 PULSOUT 15, 400 PAUSE 30NEXTGOSUB servo_pauseDEBUG "6", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30NEXTENDservo_pause: DEBUG "Blank", CR FOR Counter = 1 TO 10 PULSOUT 14, 500 PAUSE 30 NEXTRETURN
Comments