Académique Documents
Professionnel Documents
Culture Documents
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
CONTENTS
1
Introduction ...........................................................................................................................................................3
1.1
3.1.1
Basics .......................................................................................................................................................5
3.1.2
Digital .......................................................................................................................................................5
3.1.3
Analog ......................................................................................................................................................5
3.1.4
Communication........................................................................................................................................6
3.1.5
3.1.6
Strings ......................................................................................................................................................7
LIST OF TABLES
Table 1-1 Component List ..............................................................................................................................................4
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
1 INTRODUCTION
The ENERGIA-TUTORIAL-KIT provides all components needed for Energia tutorials using Texas
Instruments LaunchPad Evaluation Kits and BoosterPack Plug-in Modules in one Box! This kit can be
ordered at www.newark.com order code 07X0640.
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
2 KIT CONTENTS
The ENERGIA-TUTORIAL-KIT consists of a number of components including LEDs, resistors and a
breadboard and wires for easy connectivity and testing of the examples as listed in the tutorials.
Newark PN Component
10R0135 400 Tie Point Breadboard
74R1718 70pcs jumper assortment kit
25R0846 Piezo Buzzer
25R0924 8 ohm Piezo speaker
26M1122 Tact Switch
07X0631 Force Sensing Resistor
43K6981 7-segment display
14N9373 3mm Amber LED
14N9375 3mm Green LED
14N9379 3mm Red LED
14N9384 3mm Blue LED
14N9395 3mm Yellow LED
77M1652 RGB LED - 5mm
80K0985 Tact Switch
32K8161 10K Potentiometer
99F4265 200K LDR
58K5082 100 ohm, 1/8W, +-5%
58K5083 10K ohm, 1/8W, +-5%
58K5084 100K ohm, 1/8W, +-5%
58K5029 220 ohm, 1/8W, +-5%
58K5112 330 ohm, 1/8W, +-5%
58K5113 3.3K ohm, 1/8W, +-5%
58K5123 470 ohm, 1/8W, +-5%
59K8413 1K ohm, 1/8W, +-5%
59K8483 4.7K ohm, 1/8W, +-5%
Qty
1
1
1
1
1
1
1
2
2
2
2
2
2
2
3
3
10
10
10
10
10
10
10
10
10
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
3 ENERGIA TUTORIALS
The components provided in the kit can be used to test one or more of the Energia Tutorials listed
below. More information about Energia can be found at www.energia.nu
BASICS
DigitalReadSerial: Read a switch, print the state out to the Energia Serial Monitor.
AnalogReadSerial: Read a potentiometer, print it's state out to the Energia Serial Monitor.
ReadAnalogVoltage : Reads an analog input and prints the voltage to the serial monitor
3.1.2
DIGITAL
Blink Without Delay: blinking an LED without using the delay() function.
Simple Keyboard: a three-key musical keyboard using force sensors and a piezo speaker.
Tone4: play tones on multiple speakers sequentially using the tone() command.
3.1.3
ANALOG
AnalogInOutSerial: read an analog input pin, map the result, and then use that data to dim or
brighten an LED.
AnalogWrite: fade 7 LEDs on and off, one by one, using an MSP430G2 LaunchPad board.
Calibration: define a maximum and minimum for expected analog sensor values.
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
3.1.4
COMMUNICATION
These examples include code that allows the LaunchPad to talk to Processing sketches running
on the computer. For more information or to download Processing, see processing.org.
Physical Pixel: turn a LED on and off by sending data to your LaunchPad from Processing.
Virtual Color Mixer: send multiple variables from LaunchPad to your computer and read them in
Processing.
Serial Call Response: send multiple vairables using a call-and-response (handshaking) method.
Serial Call Response ASCII: send multiple variables using a call-and-response (handshaking) method,
and ASCII-encode the values before sending.
Serial input (Switch (case) Statement): how to take different actions based on characters received by
the serial port.
3.1.5
CONTROL STRUCTURES
Array: a variation on the For Loop example that demonstrates how to use an array.
While Loop: how to use a while loop to calibrate a sensor while a button is being read.
Switch Case: how to choose between a discrete number of values. Equivalent to multiple If
statements. This example shows how to divide a sensor's range into a set of four bands and to take
four different actions depending on which band the result is in.
Switch Case 2: a second switch-case example, showing how to take different actions based in
characters received in the serial port.
ENERGIA-TUTORIAL-KIT
Doc ID: ENERGIAKITUM
Rev. 0.1, 09/18/2013
3.1.6
STRINGS