KIT-14130

Roshamglo Hookup Guide
Roshamglo Hookup Guide SparkFun Wish List
Introduction
The Roshamglo Badge Kit is an easy to assemble badge that allows you to
play Rock-Paper-Scissors with an opponent using infrared (IR)
communication. The Roshamglo will also keep track of your score, which
you can upload to the scoreboard station and see how you’re doing against
other people at the event.
Required Materials
To follow along with this hookup guide, you will need the following:
Solder Lead Free - 15-gram Tube
TOL-09163
This is your basic tube of unleaded (Pb-free) solder with a 60/40 no cl…
Hakko FX888D Soldering Station
TOL-11704
For over 50 years, Hakko has been producing superior quality solderi…
Suggested Reading
SparkFun Roshamglo Badge Ki
t
KIT-14130
Page 1 of 7
If you aren’t familiar with the following concepts, we recommend checking
out these tutorials before continuing.
Hardware Overview
The Roshamglo uses the following:
•ATtiny84
•IR LED
IR receiver with built in 38kHz demodulator
USB programming
Programmable red and green LED
A switch for power
5-way switch for input
Reset switch
6x AAA PTH battery clips
IR Communicatio
n
This tutorial explains how common
IR communication works, as well as
shows you how to set up a simple IR
transmitter and receiver.
What is an Arduino?
What is this 'Arduino' thing anyway?
How to Solder: Through
-
Hole Solderin
g
This tutorial covers everything you
need to know about through-hole
soldering.
How to Install an ATtiny
Bootloader With Virtual USB
With this, you will be able to upload
Arduino sketches directly to the
ATtiny84 over USB without needing
to use a programming device (such
as another Arduino or FTDI chip).
Page 2 of 7
3x AAA batteries for power
The brains behind the Roshamglo is an ATtiny84, a light weight Arduino
compatible microcontroller. The ATtiny84 comes with the following:
8kB of flash memory for our program (~6kB after the bootloader is
installed)
512B of SRAM, which stores our variables used in our program
512B of EEPROM
12 IO pins MAX (the Roshamglo breaks out 9 of these pins)
10-bit analog to digital converter which can be used on 8 pins
For details about what each pin is able to do, refer to the table below.
Pin Analog or Digital Additional Uses Roshamglo Uses
0 Both Analog Reference 5-way switch down
1 Both -- 5-way switch right
2 Both -- 5-way switch up
3 Both -- IR Receiver
4 Both SCK, SCL 5-way switch left
5 Both MISO, PWM IR LED
6 Both MOSI, SDA, PWM 5-way switch center
7 Both PWM Green LED
8 Digital PWM Red LED
Missing from the list, are digital pins 9 and 10. The bootloader,
uses these two pins for USB programming.
Each of these pins have been broken out to edge of the board to make
customization easy! If you would like to use any of these pins for something
other than what it’s currently connected two, we provided jumpers that can
easily be cut with a hobby knife. The only pins that do not have a jumper on
them are the pins used for the 5-way switch. The pins for the switch use the
ATtiny’s internal pull up resistors, so as long as the switch is not closed, the
pin can be configured in any way you’d like without having to cut traces.
Page 3 of 7

KIT-14130

Mfr. #:
Manufacturer:
SparkFun
Description:
Development Boards & Kits - AVR Roshamglo Badge Kit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet