Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Virtual 3-Digit Display - the Code — Parallax Forums

PENGUIN ROBOT Virtual 3-Digit Display - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-10-25 03:53 in Robotics
Penguin VR Virtual Reality 3-Digit Display
penguin_3digit_display.bpx
Converts 1-Digit Display into 3 and counts to 100


Virtual Reality is all about giving more function to existing
hardware, by using only software. My goal is to maximize
Penguin Robot capabilities using software, and develop
virtual components and instrumentation. This new code
accomplishes that purpose. Add-on virtual hardware has
no weight and takes up no external physical space,
because it exists only in software.

This code gives more capability to Penguin Robots!
This is the new streamlined code for the 1 digit Penguin display.
It turns it into a 3-Digit Virtual Display! You only need this
code and a stock Penguin.

The previous program penguin_2digit_display.bpx
is very effective for handling two digits and shows the technique
for numbers display up to 99.

This new program compliments that level and installs capability
to show 3 digit numbers - it's fully embeddable into your own
programs with only four simple subroutines.

humanoido
humanoido said...
The main code has only 4 subroutines.
1) count 0 to 9
2) count 10 to 99
3) count 100 digit
4) turn off
' OUTLINE
' -------
' Penguin Robot displays 1, 2 & 3 digit numbers on a 1 digit display.
' Counts numbers 0 through 100 inclusive.
' This is a VR Virtual Reality 3-Digit Display in software only.

' BACKGROUND
' ----------
' Stock Penguin has a one digit display. Once you count from zero to
' to nine - it won't go any higher. However, in the real world, there
' there are many applications that use two and three digit numbers.
' It's much more useful to count from 0 TO 100 than from 0 TO 9.

' COMPANION PROGRAM
' -----------------
' This is a companion program to penguin_2digit_display.bpx.

' OPERATION
' ---------
' This program will convert Penguins 1-digit display into a 3-digit
' display, capable of displaying one, two and three digit numbers.
' This is a fully functional VR Virtual Display that counts
' numbers from 0 to 100. To accomplish this small miracle,
' the code uses timing and persistance of vision.

' DEBUGGING
' ---------
' It's now possible to run applications reporting debug numbers
' without a computer connected. Just insert representative numbers
' for output to the virtual display from 0 to 100. Slight code
' modifications may be required to call individual numbers.

' TYPICAL REPRESENTATIONS
' -----------------------
' Typical numerical displays can include counting, timing, cardinal
' directions, pulse output, baud information, frequencies,
' intensities, program numbers, steps, light levels, IR data,
' speaker volumes, program subroutines, special functions,
' ultrasonic ranges, obstacle conditions, cartographic positioning,
' bumper conditions, language reporting in base ten, input and
' output states, servo cycles, motion range reporting, remote codes,
' radio bands, Penguinese vocabularies, lexicons, changes of state
' and conditions, surveillance reporting, tune & music sequences,
' and switch conditions.
Sign In or Register to comment.