PENGUIN ROBOT Rocket Launcher - the Code
Title: Penguin Rocket Launcher
Code Name: penguin_rocket_launcher.bpx
Purpose: Count out backwards one minute
Here's an easy way to countdown from 60 seconds
like a stopwatch. It's great for launching model rockets!
The code uses only one digit on the segment display.
The key is a simple Truth Table, to represent two digit numbers.
Now, there are two ways to represent two digit numbers on
the one digit display. Use either this Truth Table or the
Virtual 2-Digit Display.
humanoido
Code Name: penguin_rocket_launcher.bpx
Purpose: Count out backwards one minute
Here's an easy way to countdown from 60 seconds
like a stopwatch. It's great for launching model rockets!
The code uses only one digit on the segment display.
The key is a simple Truth Table, to represent two digit numbers.
Now, there are two ways to represent two digit numbers on
the one digit display. Use either this Truth Table or the
Virtual 2-Digit Display.
humanoido
humanoido said...
Programs in the time/count series:
penguin_brain_timer.bpx (counts up to one minute)
penguin_rocket_launcher (counts down one minute)
penguin_continuous_counter.bpx (counts 1 to 9 then 0 and repeats a thousand times)
penguin_counting_eye.bpx (an eye to count the first 10 people)
penguin_tiny_timer.bpx (ten second counter with display & ticking sound)
' Penguin Rocket Launcher is a one-digit countdown timer, ' decrementing numbers from 60 seconds. It counts like this: ' ' Decrement Truth Table ' 6 9 8 7 6 5 4 3 2 1 ' 5 9 8 7 6 5 4 3 2 1 ' 4 9 8 7 6 5 4 3 2 1 ' 3 9 8 7 6 5 4 3 2 1 ' 2 9 8 7 6 5 4 3 2 1 ' 1 9 8 7 6 5 4 3 2 1 0 ' ' ideally for Penguin to time the launching of rockets. It uses the ' one digit display and shows only one digit numbers, one at a time, ' to achieve sixty seconds and uses a simple Truth Table. The technique ' to forgive the sound at the tens increment will note the position ' in time. ' ' This program uses the statements as part of the timing. For short ' durations, such as one minute, the microcontrollers internal pulse ' is highly accurate. For this, pause statements when added with ' program statements yield a relatively accurate timing base.