Help with New Project.
Archiver
Posts: 46,084
Hello,
A while back I had some questions regarding the basic stamp and
unfortunately for me, I haven't really been able to act on the help.
I procrastinated enough that I lost the messages and don't want to
sort through all the messages on the board.
What I would like to do, is create a multi-sport "indoor" scoreboard
that has a clock, two scoring panels with three digits, two scoring
panels with two digits and one panel with one digit (for
period/quarter).
I have the basic stamp and want to create the scoreboard using LED's.
My controller would be my computer where I would be able to do the
following.
Change the main score in specified increments (1, 2, 3, 6)
Change the main score manually (type in the new number)
Change the secondary score panels in increments (1, 2, 3)
Change the secondary score manually (type in the new number)
Reset the secondary scores at the same time (reset to 0)
Set the scoreboard clock
Reset the scoreboard clock
Start/Stop scoreboard clock and be able to change it
I don't necessarily want the clock to run down in tenths of a second
but if it's not a lot of code, then I'd do it.
Any help is appreciated and I'll print out the responses. The problem
is, I know very little about writing code and have had problems with
the lessons. I don't have a lot of money to learn other projects and
I want to devote my money to developing the scoreboard.
When I get this set, I want to create other variations of this
scoreboard and try to create the baseball version again.
Thanks in advance,
Jarrod.
For all of your corporate events, dances, sporting events, parties and
more, call upon Jarrod to make your event the best it can be! For
more
information on booking your next event through SportsAnnouncing.com,
simply reply to this message!
A while back I had some questions regarding the basic stamp and
unfortunately for me, I haven't really been able to act on the help.
I procrastinated enough that I lost the messages and don't want to
sort through all the messages on the board.
What I would like to do, is create a multi-sport "indoor" scoreboard
that has a clock, two scoring panels with three digits, two scoring
panels with two digits and one panel with one digit (for
period/quarter).
I have the basic stamp and want to create the scoreboard using LED's.
My controller would be my computer where I would be able to do the
following.
Change the main score in specified increments (1, 2, 3, 6)
Change the main score manually (type in the new number)
Change the secondary score panels in increments (1, 2, 3)
Change the secondary score manually (type in the new number)
Reset the secondary scores at the same time (reset to 0)
Set the scoreboard clock
Reset the scoreboard clock
Start/Stop scoreboard clock and be able to change it
I don't necessarily want the clock to run down in tenths of a second
but if it's not a lot of code, then I'd do it.
Any help is appreciated and I'll print out the responses. The problem
is, I know very little about writing code and have had problems with
the lessons. I don't have a lot of money to learn other projects and
I want to devote my money to developing the scoreboard.
When I get this set, I want to create other variations of this
scoreboard and try to create the baseball version again.
Thanks in advance,
Jarrod.
For all of your corporate events, dances, sporting events, parties and
more, call upon Jarrod to make your event the best it can be! For
more
information on booking your next event through SportsAnnouncing.com,
simply reply to this message!
Comments
> A while back I had some questions regarding the basic stamp and
> unfortunately for me, I haven't really been able to act on the help.
> I procrastinated enough that I lost the messages and don't want to
> sort through all the messages on the board.
Copied below is the reply to your original post. It was from S Parkis on
11/19/02:
Hope it helps,
Randy
www.glitchbuster.com
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Jarrod-
Here's a possible starting place for you. It uses DEBUG and SERIN
statements to communicate with your PC's keyboard and display. It
uses SERIN's timeout feature to count down seconds. It uses ASCII
backspaces rather than carriage return/line feed so that the same
line on the display is refreshed rather than scrolling down. The
timing accuracy isn't spectacular, but you're not going to get great
precision with your Stamp anyway. You can tweak the timeout value
(1000) to improve the accuracy somewhat.
If you press a key while the display is counting down, the countdown
stops, the key you pressed is displayed, and you can insert whatever
logic you need at that point.
FWIW, I like the notion of using serial input with timeout, and
serial output (DEBUG in this case) because you can easily adapt it
to other I/O devices later.
You can expand on these basic functions to set the timer value from
the keyboard or whatever other features you may need.
Regards,
Steve
'{$STAMP BS2}
BS CON $08
minutes VAR BYTE
seconds VAR BYTE
pc_byte VAR BYTE
minutes = 2: seconds = 10
DEBUG DEC2 minutes,":",DEC2 seconds
loop:
SERIN 16,16468,1000,timeout,[noparse][[/noparse]pc_byte]
DEBUG BS, pc_byte
' insert keyboard pressed logic here
timeout:
minutes = minutes - (60 - seconds / 60)
seconds = 59 - seconds / 59 * 60 + seconds - 1
DEBUG BS,BS,BS,BS,BS,DEC2 minutes,":",DEC2 seconds
IF seconds + minutes > 0 THEN loop
DEBUG CR "timer expired"
' insert timer expired logic here
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/