28129 Parallax Inc, 28129 Datasheet - Page 29

TEXT BASIC ANALOG & DIGITAL

28129

Manufacturer Part Number
28129
Description
TEXT BASIC ANALOG & DIGITAL
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28129

Style
Book
Title
Basic Analog and Digital
Contents
Basic Analog and Digital Text
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Chapter #2: Introduction to Bit Crunching
An important step in learning how to make the BASIC Stamp process analog data is
learning how to make it send and receive binary numbers. It's also important to
understand how binary numbers work, and how to convert from a binary number to a
decimal number.
BASIC COMMUNICATION
This experiment introduces some techniques for transmitting and receiving binary
numbers using the BASIC Stamp. In this experiment, we'll make a binary keypad for
transmitting binary numbers to the BASIC Stamp. The BASIC Stamp will also be
programmed to process and display the binary numbers it receives. The binary numbers
will be displayed by LEDs as well as by the Debug Terminal. The Debug Terminal will
also come in handy for monitoring and displaying the binary numbers in decimal form.
In What’s a Microcontroller?, we learned that binary is the number system used by
microcontrollers, and that it works with two digits, 0 and 1. The BASIC Stamp is part of
an entire class of digital electronic devices that can interpret 0 volts as binary-0 and 5
volts as binary-1.
Binary is useful for describing both states and numbers. In terms of states, the two digits
in the binary number system (0 and 1) can be used to describe off/on, closed/open,
no/yes, etc. Combinations of binary digits can be used to describe numbers. For example,
the binary numbers 101, 110, and 111 describe the decimal numbers 5, 6, and 7. These
numbers can in turn be used to describe analog information, such the position of a door as
it swings open and closed.
Parts Required
Gather these parts from your parts kit and let's get started.
(2) 470
(2) 220
(2) 10 k resistors
(2) Pushbutton switches
(2) Red LEDs
resistors
resistors

Related parts for 28129