Web Site: www.parallax.com
Forums: forums.parallax.com
Sales: sales@parallax.com
Technical: support@parallax.com
Office: (916) 624-8333
Fax: (916) 624-8003
Sales: (888) 512-1024
Tech Support: (888) 997-8267
Hackable Electronic Badge
Guest (blue, #20000); Staff (white, #20100); Speaker (black, #20200)
Energize your events by using the Badges to store and distribute schedules,
identify participants, share contact info, and play interactive games. In
educational environments, Badges encourage hands-on activities, creativity,
and collaboration while studying electronics and programming.
Hack your Badge! Use our open-source programming tools and example
code in C, Spin, and Propeller Assembly to try out a variety of example
programs that use all of the Badge’s features, and let your Badge share
contact information with other Badges. For software and example code
downloads, visit
www.parallax.com/badge.
Features
Propeller 8-core microcontroller, 64 KB
EEPROM and 5 MHz crystal oscillator
128 x 64 OLED display
3-axis accelerometer (±1.5 g) for
orientation and motion detection
Two-way infrared communication
Two super-bright, tri-color RGB LEDs
Six passive touch-buttons with status LEDs,
plus 1 special OSHW logo touch-button
Stereo audio and composite video out
USB port for programming and charging
Convenient on/off push switch
3.6 V Li-ion battery included (#752-00011)
On-board battery charger, management ,
and charging disable functions
Two mini prototyping areas, with access to
I2C, 11 I/O's, 3.3V, 5V-USB and battery
voltage
Replaceable and user-customizable display
covers
Six mounting points plus lanyard slots;
lanyard included
Key Specifications
Voltage requirements: USB 5V standard, or
3.7 VDC rechargeable Li-ion battery
(included)
Communication: USB for programming and
charging
Programming current: 40 mA typical
Charging current: USB host 90 mA max,
USB charger 540 mA max
Dimensions: 4 x 2.75 in (102 x 70 mm)
Operating temp range: 32 to 158 °F (0 to
+70 °C)
Application Ideas
Interactive ID Badge for conferences,
hackathons, and maker spaces
Interactive lessons in programming, cyber
security, and information diffusion in the
classroom
Research and experimentation with parallel
processing and social communication
Robot control panel, using onboard
multicore processor, OLED display,
accelerometer and buttons
Develop portable games or interactive
quizzes
Copyright © Parallax Inc. Hackable Electronic Badge (#20000, #20100, #20200)
v1.0 9/17/2015 Page 1 of 12
Quick Start Guide
Your Badge comes complete with a rechargeable battery, lanyard, and pre-loaded code that will
demonstrate some of the built-in features. Let’s get started!
Installing the Battery
•
Only use a 3.7 V, 800 mAh rechargeable Li-ion battery; one is included with your Badge.
•
Match the plus (+) symbols on the battery and the back of the Badge and insert.
CAUTION!
DO NOT PUT THE BATTERY IN BACKWARDS! IT COULD
DAMAGE YOUR BADGE!
Running the Test Code
•
Press the on/off button on the right hand side of the Badge.
•
Follow the prompts on the Badge’s screen to demonstrate its features.
Wearing your Badge
•
Attach the included lanyard by clipping each end to a slot in the top of the Badge.
•
Wear the badge around your neck, but heed the cautions below to prevent short circuits!
CAUTION!
Do not wear the Badge with conductive materials such as
metallic cloth, metal jewelry or buttons, or additional lanyards, that
may short out against the Badge PCB. Protect the Badge from your
skin, moisture, fluids, lotions, and static discharge from the
environment. Parallax Inc. is not responsible for damage to people or
objects caused by electrically connecting with your badge.
Stashing your Badge
•
Turn off the Badge using the pushbutton on the right-side edge of the board.
•
If you are going to pack your Badge in a toolbox, backpack, or purse, put the Badge back its
original bubble envelope with the lanyard left out. This will protect your Badge from scratches
and from making contact with conductive items.
Recharging the Battery
•
To recharge the battery included with your Badge, connect the Badge to a USB port or USB
charger with a standard USB Micro B cable (Parallax #805-00016).
•
If you are using an external battery charger, follow the manufacturer’s instructions.
•
For using batteries other than the one included with your Badge, see sections (14) Battery on
page 9, and (15) Battery Type Select on page 10.
Hacking your Badge
•
Read through the remainder of this guide to learn more about all of your Badge’s features.
•
Programming your Badge requires a USB Micro B Cable (Parallax #805-00016).
•
Find free software, example code, tutorials, and open-source files:
www.parallax.com/badge
Copyright © Parallax Inc. Hackable Electronic Badge (#20000, #20100, #20200)
v1.0 9/17/2015 Page 2 of 12
Description
Front
Copyright © Parallax Inc. Hackable Electronic Badge (#20000, #20100, #20200)
v1.0 9/17/2015 Page 3 of 12
Back
Copyright © Parallax Inc. Hackable Electronic Badge (#20000, #20100, #20200)
v1.0 9/17/2015 Page 4 of 12
(1) OLED Display
The 0.96” OLED screen features a high-contrast graphics display with 128x64 pixels. Pixels are white on a
dark background. The screen has a built in SSD1306 display driver, which the Propeller controls directly
by SPI protocol on pins P18 through P22.
(Marie Gertrude Rand Ferree (October 29, 1886 – June 30, 1970) was an American research scientist
who is known for her extensive body of work about color perception.)
(2) Blue LEDs
The Badge includes a blue LED beside each of the 6 round touch pads. Instead of using 6 I/O, or an
extra multi-channel led driver component, these LEDs are controlled by Charlieplexing (Charlieplexing:
https://en.wikipedia.org/wiki/Charlieplexing.)
Charlieplexing is a technique that allows for control of more LEDs with fewer I/O pins by taking
advantage of the one-way current flow properties of diodes (including Light Emitting Diodes), along with
the tri-state properties of the Propeller I/O pins. It also saves battery power!
This image is taken from the actual Badge schematic, and represents a typical Charlieplex layout. Each
Propeller I/O pin (labeled here P6 through P8) can be in any of 3 user-controlled states:
HIGH (3.3 V
output), LOW (0 V output), or INPUT (does not output anything, like a closed door). And,
LEDs will only
allow current to flow from the positive Anode (A) side to the negative Cathode (K) side; the “Forward
direction.”
Now, imagine if we set P6 to INPUT, P7 to HIGH, and P8 to LOW. Which LED will light? The answer can
only be D704, as that is the only LED positioned in such a way to allow the current flow from P7 to P8.
This lookup table shows the required state of the Propeller I/O pins to illuminate each LED:
P6
LED D701 (by P17 button)
LED D702 (by P16 button)
LED D703 (by P15 button)
LED D704 (by P27 button)
LED D705 (by P26 button)
LED D706 (by P25 button)
HIGH
LOW
INPUT
INPUT
LOW
HIGH
P7
LOW
HIGH
LOW
HIGH
INPUT
INPUT
P8
INPUT
INPUT
HIGH
LOW
HIGH
LOW
Copyright © Parallax Inc. Hackable Electronic Badge (#20000, #20100, #20200)
v1.0 9/17/2015 Page 5 of 12