20
UNBELIEVABLE
ARDUINO
PROJECTS
Introduction
Hore are wont aaing hin procs ta you almost woul belive if tr ta they re the eal dal These authors have ina hat widest dams ita
Tea wih re paverof Ardino, an easy tose mroconlr develop hong is no worden Araino Realy tara to "Song rend acing) n
oc wn tho misty power ot Aria I compacta ghlonttd ard makes onbodcng Sckoris io We wotld atta hn hd acy.
these amazing projec, and gt Inspired to bull your own really.“Table of Contents
Inroduction
‘Aur and Copyright Notices
Diccssimer
LED Cube axex8
lem: LED Cube axtx8
‘Step 1s Skis required
Step Component st
Fle Downloads
‘ep: Ordering components
Step: What 8 LED cube
‘Step 5: How does a LED cube work
‘Step6: The anatomy of aLED cube
‘Step 7 Cube sizeand 10 por requirements
‘6p8: 10 pot expansion, more multiplexing
Fle Douniads
‘Step 9: 10 pat expansion, allemative solston
File Downloads
‘Stop 10: Poworcupalyconsiaraions
‘Step 11° Buy apower supply
‘Step 12: Build a power supply
‘Step 13: Choose your LEDs
‘Stop 14: Choose your resistors
‘ep 15: Choose the sizeof your eube
‘6p 16: How to make sight wire
‘t0p 17: Practos h smal cesta
‘Step 18: Bld thecube: create ag
‘6p 19: Build he cube: soldering advice
‘0020: Build tho cube: tot ho LEDS
‘Step 21: ld hecube: sober a ayer
‘ep 22: Pull the cube: test he layer
‘0228: Bull ho oube: etalon te pre
‘Step 26: Bulldthecube: bene the phe
‘ep 25) ld the cube: solder the layers together
‘i6p28: Build the cube: cteae he base
‘Step 27: ld he cube: mount the eve
Step 28: Pulidthecube: cathode rsers
‘e028: Build thecube:alach cables
‘i030: Build tho conto ayout
Fle Downloads
‘691: Build the contol cock fequency
‘20932: Build tho contol: proaboard soldering advice
a
6
6
16
8
24
2
20
20
a
22
22
2
26
a
28
2
“1
4“
6
4s
a‘Step.90: Bld the controle: Powe terminal an ierng capacitors
Step 34) Build hecontola: IC sodkes, resis end connectors
‘698: Build the contol: Pomer rae and IC power
‘Step.6: Bld he controle: Connect he Is, at Bus + OE.
Step 37: Pulldthecontolie: Adress selector
‘6038: Build the contol: AVR board
‘20939: Build tho controler: Transitr array
Step 40: uid the controle Buttons and satus LEDs
Step 41: Build he contol: RS-232
‘Stop 42: Build tho contol: Mako an RS-232 c:b16
Step 43: uid the controler: Connect he boards
‘Step 44: Build the contol: Connect the cube
‘0p 48: Program the AVR: St hous bite
‘Step 46: Progtamtne AVA wih ex code
File Downloads
‘S109 47; Tost tio eido
‘Step 48: Programtne AVA wih eal code
Fle Downloads
‘20049: Sofware: Invoducion
File Dounionds
‘Step 50: Sofoare: How it works
‘Step5t: Sofare:10intalzation
‘0952: Sofware: Mode cloction and random soos
‘Step 50: Sorware:Inemupt routine
‘Step 54: Software: Low leveltunctons
‘Step 55: Sofware: Cube vitual space
‘ep 56: Sotware:EMect launcher
‘Step 57: Sofware: Efet 3, sin
‘6058: Sofware: Efect 2, plane boing
‘0p 59: Sofware: Elect 3, soncvoxals random Z
‘Step 60: Software: Elect 4, box shvinkstow and woopunop
‘Sep 61: Sofware: Elect 5, 2s updown randsuspend
‘20062: Sofware: Eet 6 tingly
‘Step 60: Sontware: FS 232 pu
‘ep 64: PC Software: Inbocucton
Fle Doumisads
‘ep 65: PC Stare: Cube updater tread
‘Step 66: PC Software: Etec! t, ripples
‘10067: PC Softwar: Etec! 2, sidewaves
‘Step 68: PC Sotware: Ene! 3 rewars
‘Step 69: PC Software: Etec! d, Conways Game af Lfe 3
Bae Ree Bas
™
6
80
8
8
82‘6p 70: Run the cube onan Arduino
File Dounioads
ep 71: Hardaare debugging Broken LEDS
‘6p 72: Fosdback
Folate Iniucatles
Power Laces: he Autolacng shoe
Into: Power Laces the Autolacing shoe
‘Stop 1: Parte & Tools
‘Step2 The Laces pt. 1
‘ep: The Laces p-2
‘Stop: Sorve Mounting Pais
‘tep5: Const he Motor Shiels
‘Step 6: Mount the Servos Battery, and Arduino
‘0p 7 Adding come oberon: to ho moor shold
‘Sep: GomecttneLaces tothe Servos
‘Step Uploadthe Acino Sketeh
File Downloads
Aolates Insucacies
Pantduino Greenhouse
Into: Plantéuine Greenhouse
‘Stop 1: Plant Soleo 101
‘Step2 Build Garden Plant Seeds
ep! Buda Greenhouse: Step 1 matta's
Step Bula Greenhouse: Step 2 Bull the Frame
‘05: Buda Groonhouee: Sip 4 Lay tho plastic
‘Step 6: Bulllthe Greenhouse: Siep 5 Ads he beck and he door
‘607: Bulthe Greenhouse: Siop 7 Make talrighwaterproot
‘Step 8: Bula Groonhouee: Step Dig aTreneh
ep Watering Systeme Step + Materials
‘Step 10: Watering System: Step 2 Bulda Relay Box
‘top 11: Watering System: Stop 3 Connect the Valve
‘Step 12: Watering Systeme Stop 4 moisire sensors
‘Step 13: Watering System: Step 5 Wits he Code
‘Stop 14: Watering System: Stop 6 Erg NAL Together
‘Step 18: Prantduino: Step 1 materia
‘ep 16: Plankduino: Step? Schematics
‘Stop 17: Plantduno: Stop Asbombly Tipe and Tricks
‘Step 18: Blrshouse: Creation and isttotion
‘ep 19: Creating the Bshouse Motherboard
‘ep 20: Video
‘Step 21: Final Troughts’Reional Reading
ates Insteucatles
8
88
7
82
1
7
101
102
108
09
+10
110
m
12
12
or
116
19
119
120
121
121
122
122
123
124
124
125
125
17
128
129
a0
133
136
136
136The EyeMiter 20
Into: Tho EyeWitor2.0
Sep Overview
Step 2 Patt ist
‘i003: Sofware -oponFrameworks & EyoWior
‘Step Software - Gamera & Arona
‘Step 5: Load Arduino sketch
‘6p 6: Hardware: Pome Adaper
‘Step 7 HardWare: Irae LED's
‘ep. Hacking the PS Eye camera preparing
‘609: Hacking the PS Eye camera- VSyme
‘Stop 10: Hacking the PS Eye camera finishing
Step 11) Ful Creut
‘Step 12: Building wood base
‘Stop 18: Using 2yewitar Software - Setup & Tracking Seren
ep 14: Using EyeWiter Softare -Catoration Sereen
‘Step 18: Using EyeWiter Software - Catch Me
‘Stop 18: Using 2yeWitor Software - Drawing
‘Step 17: Using Eyevnter Snare Typing
‘Step 18: Using EyeWiter Software - Pong
oat Intucatles
“Twitlor Moos Light The Works Mood ina Box
Into: Twitter Mood Light ~The Words Mood in a Box
Step 1: Howit works
‘i002 Allyou noose.
‘Step. Gomect he Arduino and Wily a computer
ep 4 Coneeting he LED
‘ep: Choosing good search terms
‘Step6: Downloasthe ease
Fle Downloads
‘3607: Programming sep 1: SPLUART
‘Step. Programming sep 2: Connecting to Wieless Network
ep! Progeamming sep 9: Searching Titer wth TCPAP part 80
‘Step 10: Programming stp 4: RGBLED
‘Stop 11: Programming 8: Computing te Works Mood
ep 12: ulding te Box
‘6p 19: Enjoy!
Folate Intucatles
Famethrowing Jae O-Lantern
Into: Flanetrowing Jac-O-Lamim
Stop 1: Gogo aut
sepe cutacay
197
a7
198
138
138
139
140
10
140
13
6
148
9
150
151
152
182
182
159
153,
154
155
155,
156
187
159
160
161
169
165,
165
165,
168,
169
am
173
175
a8
16
176
7
awSteps:
Step
eps:
Step 6:
‘S697:
S008
ue
Designa face
ca
Bena
Brackets
Fle Downloads
S08:
‘0p 10:
sept
step 12
S.0p 13:
Delt holes
‘tah ing
Canale moun!
Battery adapter
Program tho Racover
File Dounioads
Sep 18
Program the transmter
File Downloads
sep 15:
sep 18
sep 17
sep 18
sep 19
sep 20:
sepa
sepa:
step 231
Step 2t
sop 25:
Plates
ston
antenna
Wire the transite
Power
Case dosee
Wire the reciever
Put together
ie the motor
Puttin the pumpkin
candle
Fie!
Instat
Make a 24X6 LED mati
lett: Mako a 24X6 LED matic
sep
Step:
S093
sepe:
Steps:
Geng A The Fgh Things
How it works?
Sehimatce
‘Soering The LEDS
Programing The Display
Fle Dounisads
sep6:
Plates
‘We Are Dore!
Insteuatles
Secret Kock Detecting Door Lock
Into: Seerer Knock Detect Door Look
Sept
(sal looks to chalening, you might consider signing kt malinglist which, when availble, willbe much easier anda lot more simple) Time
“Too, Supplies, Red Skis
178
179
180
sa
182
182
183
183
184
105,
186
188
187
187
188
108
108,
189
190
190
190
191
191
192
192
109
199
194
194
195,
195
108
197
197
108
198
198,
201
201Ski 201
Toots: an
Matenals 201
Electrons: 201
cave: 201
ep Program The Arcine 202
File Downloads 203
‘i093: Lay Out And Tost The Girl 203
‘Step Prepare The Case 204
‘695: Make The Lock Turning Clamp 206
‘i096: Make The Knock Detector Spring 207
‘Step 7 Soldering The Creuts 208
ep Assembling The Case a3
‘Sep9: Mounting Testing, and Use 26
‘Step 10: Epilog: Changes Ana improvements 26
i you busts? 26
acters of Secret Knacks: 216
Aolates Intucacies aa
‘urn signal bing jacket 28
Ino: Turn signal biking jacket 218
‘0p 1: Supotee 28
‘Sep 2 Design 29
‘Step: Sew your power supply and LilyPad to your jacket 2
Step Test your siting 204
‘Sep: Sow on your um signal LEDS 28
‘Step 6: Sew in your contol switches 207
‘S627 Sow in your indicator LEDs 200
‘0p 8: rogram yout Jacket 2a
ates Instructables 209
Tree Clinbing Robot 24
Into: Troe Gtinbing Robot a
Sep 1: Design 28
‘tep2 Tools and Materials 26
‘i093: Motor Conralor 28
Step 4 Power 20
Step 5: Power, cont ee
‘1096: Loge 28
‘Sep 7: Feet 2s
Step 8: Motor Hubs es
‘ep9: Buling he Frame 26
‘Step 10: Frame, con 27
Step 11! Elecrones Platoon 2gStep 12
S.0p 13:
sep 14
sep 15)
0p 18
sep 17
sep 18
step 18
sep 20:
Fotaton Sensors.
Backbone Motor
Mounting ne Spine
Mounting the Spine, cont
near Sidee
{eng tne Robot
Lunt Setchas
Battery Holos
Programming
Fle Downloads
lated Instructatles
Rave Rover - Mable Dance Stage
Into: Rave Rover- Mile ance Stage
Sp
stop 2
Step
Step
S100 8:
sep6:
‘S697:
S008
S100 8:
sep 10:
step 11
s.0p 12
sep 18
Seep 14
‘.0p 18:
sep 16:
Sep 17
step 18
sep 18
Step 20:
siep2t
Stating te Build
‘Cuting Pars
Fting te oor
Getthg LEDs weedy
Instaling tho LEDS
‘asing tne Frame
LED Color Check and Testing
Gathoring More Motors
Frame Builing
Geting Frames oH
Mounting Components
More Mounting.
Pole Mounting
Fishing the Electonics
Dive Test
Frstalng Fhor
Foal touches.
‘Speaker Insill
Faly Done!
Where to tis pars.
Pasty Time!
lated Iniucatles
‘Type Case,
‘he making of a owesohton apy
Into: Type Case, the making ofa burrescluion csplay
0p 1
sepa:
Step:
stop 4
sep8:
‘Tho idea
‘Smulons|
Development = so}ving problems
Thou
“The documentation process
250
251
252
253
288
250
27
258
280
20
261
201
261
264
08
25
287
267
28
260
20
ae
are
ana
are
215
26
216
216
a
28
278
278
280
2
2a
2
me
23
23
26ates Insteucatles
Sigh Collector
Into: Sigh Collector
Step 1: Mateia Needed
‘86p2 Buldand Program Circuit Hack nt Ai Pung
File Dounioads
ep. Bulethe Sgh Collector mainunt
File Downloads
‘Stop 4: Makoto ar bladdor
‘ep5: Combine eectnics vith ain uni. Insal Check Valve and Pump
‘Sep 6: Buldearyng case, Sew hand.
File Dounisads
‘Sep 7 Buléand Program ctout fr sigh deteoton.Resemble electrons Ino eanying case.
Fle Downloads
‘0p 8: Cut and Sow chest strap andatach ite stetsh eoncr.
Step 9 Awordon Wireless
‘Step 10: Fished
late Instructatles
Make a Fre Breathing Animetronc Pony Yom FurReal Buterscotch or Sores
loti: Make a Fie eating Animetronc Pony fom FuRel Butterscotch or Moves
‘ep 1: Gat before you hack it
‘62 What you wil need
‘S2ep3: Removing the skin: Hearst
ep 4 Removing Shin: ENT
‘ep 5: Remove Skin: Sight fom the horses mouth
‘0p 6: Remove Ski: Tho body
ep 7 Removing the skin: The legs
‘8628, Removig the skin: the Neck
‘09: Removig the lace
‘Step 10: Gettng access fo the Grult board inthe lower ody.
‘Step 11: Cuting the power fo he Mieocontler
‘Stop 12: Tapping power forthe Arduino
‘Step 18: Tapping the Ines ino the motor contol eu
‘Step 14: Taping tothe encoders
‘Stop 18: Goting to morore and consors connected othe arin.
‘Step 16: Connecting a wi nunchuck note sytem.
‘Step 17: The Arduine Code.
File Downloads
Step 18: Gettng he wel to ehead
‘2p 19: ulding an ignition system.
‘tep20: Remote uel rigger
28
29
2a
27
207
200
a
‘ot
02
203
‘08
08
208
06
207
207
207
08
00
ano
a0
a
a
ae
aiaSep21: Folow up
lates Insucanies
‘Tweetauett- How to make a twitring power meter
Into: Tweeta-wat - How fo make a witeing power meter.
Stop 1: Makai!
Step? Prep,
‘ep: Make the Recover
‘Sop 4: Contgure
‘tep5: Solaer the Transmiter- pats is
‘ep 6: Transmitter Schematic
‘0p 7: Assomblo and erate ih rensmito-1
‘Step Agsemble and erate the ansmiter-2
Step 9 Assemble and create the ransmiter-3
‘Stop 10: Assembla and croats the tansmiior 4
‘ep 11! Assemble and crete the tansmiier-5
Step 12: Sofware
‘6p 18: Expand
‘Step 14: Design overview
ep 15: Design listen
‘Step 18: Design store
‘0p 17; osign- raph
Step 18: Resources
‘Step 19: Downlosd
ate Instuctatles
Bubblewoon Bubble Machine
Into: Bubblestesn Bubble Machine
‘Step 1: Things you wil need
‘8092 Boal with the micro controler
Fle Downloads
‘ep: Putting it together
‘Sp: Arduino & melo shied platorm
eps:
Step 6: Addtional photos
Folate Intucaties
{Arduino FIG Lawnmower (pire)
lot: Arduino RIC Lawernomer (pate
Stop 1: Sattng uD
‘Step 2 The Motor Daver
‘Step: The Wheels
‘Step: Tho Frame part A
‘ep 5: The Frame part
ep 6) Mounting he motors
aia
ae
ans
318
ae
ae
aie
220
mae
aor
aor
m9
sat
aa
as
eee 28
82
256
87
sr
88
288
88
80
80
a0
260
2
22
268
a0
ars
378
an
78‘Author and Copyright Notices
insmudable: LED Cate dude
Author: hv
Lise: Aout NonComarea SharaAlks [bn
Inetetable: Power Lacoe- she Aut acing shoo
‘utor:sexebevn
Llcenee: Aticiion NonCommercal Share (oyne-8a)
Inetetable: Plancuine Greeriouse
‘Author: clovercrestre
Llsenee: Ascion NonCommercal ShareAike (ayne-8a)
Inetetabl: Tho EyoWAtar 20
‘Author: hesystomis
Llcenge:Atroutor NonCommercia Snare (byes)
Inetetabie: Tite Mood Light- The Wore Macs in a Box
‘Author: Randorhiatix
Lleenge: None (AI Righs Reserved c)
Instnetable: Famethowing Jack-O-Laniem
‘Author: andto
Llpenee:Atibution-NonCommerciaShareAlke (o.nc-53)
Instructable: Make a 26X6 LED matic
‘Author: 513m
Llpenee: Alicutlon-NonCommerciaShareAlke (o.nc-23)
Instructable: Secret Knock Detecting Dao’ Lock
Author: cra
LUpenve: Altbution-NonCommerciaSharlke (o.nc-23)
Instretabl: Tum signal biking jacket
Author: earuschiey
LUponee: atsbution NonCommercial Sharks (by ne-8a)
Instnetable: Tree Cimbing Robot
‘thor: Technoeticken
LUponee: Albuton NonCommercial Sharks (by. ne-8a)
Instetable: Rave Rover - Mabie Dance Siage
‘har: oiliamson8
LUponee: Atsbuten-NonCommercal Snark (oyne-03)
Instnetable: Type Case, he making of low-resolution deplay
Author: Marin reser
LUponee:Atscuton NonCommercial Sharks (by ne-88)
Instetable: Sigh Coloctor
‘uthor konto
Llcenee: Arbllon NonCommercal ShareAlike (oyne-8a)
Ineuetable: Make a Fve Bathing AnietronioPony tom FurReal Bulorecotch or Moree
‘or:
Llcenee: Alcuin NonCommercal ShareAlike (ayne-8a)
Ineetabl: Tet watt How te make a tlteting power meter.
Author: ada
Llcenee: Arbnion NonCommercal Shae (oyne-8a)
Inetvotable: Bubbesteen dusble Machine
Author: bliecrot
License: Attbuton-NonCommercial Snare (byes)
Inatvetable: cine FC Lawnmower (pants)
‘Autor: ohindaw 00
LUcense!attouton-NonCommercial Share (bye-s4)
Inetetabe: How 10 Bul an Arne Powered Chess Paying bet
Author nduetce
LUpenee:Atibution-NonCommercia ShareAlike (oy.nc-83)
Instuetable: SITWAY
‘tor: risky 00
LUpense:Alticutlon-NonCommercia Share (b.nc-23)
Instetable: & Makers Weekkng- Photo booth
Author: eiNeBeFrarks
LUpenge: Attoutlon-NonCommercia ShareAlike (by.nc-s3)
hp vivwrw Instructables. comvid'20-Unbelevable-Ardulne- Projects!‘6p 7 Mounting te mower deck
‘0p 8: Soloct and tal to battorios
‘Step 9 Mount the electronics
‘Step 10: The Code
Fle Douniads
‘Step 11! More Viseos
sates Instucatles
How to Bull an Arduino Powered Chess Playing Robot
Into: How 1 Bula an Arcuno Powered Chess Playing Robot
Step 1: Patts and Materials
‘ep2 Design and Code Explanation
File Dounisads
ep.) Mounting te Drawer Bearings (¥ Ax)
‘Step 4 Bullcing the Motor Mourt (¥ Ais)
‘i005: Installing tho Rack Goars (Y Axe)
{ep 6) Wing and Moun the Motor (Y Axis)
‘6p 7: Mounting the Crossbars (X Ais)
‘Sep Mounting be Drawer Bearing and Rack Goars(K Ae)
‘Step aching the Magnet tothe Servo (x Ass)
‘69 10: Wing and Mounting the Motor Axis)
‘Stop 11: Wing the Sonsore
‘top 12: Pago the Magnets
‘Step 18: Code, Final Assemaly« Reieeton
File Downloads
lated Intucatles
sitway
lot: SITWAY
‘Stop 1: MATERIALS AND COSTS.
‘tep2 Saluaging pars rom the donor wheetenaie
‘Step: Builth tame and mourt he wheels and motors
‘Step: STEERING CONTROLLER
‘Sep: ELECTRONICS:
Step 6: WIRING
‘Step7. MOTOR TEST
File Douniads
Step: THE FIRST TEST RIDE
File Downloads
‘S198: ADDING aD PRINTED OBJECTS:
‘Sep 10: CONCLUSION
lated Instucatles
[A Maore Wedding - Photo booth
Into: A Makers Weatng-Protaboath
80
ae
er
87
‘87
9
90
390
21
92
‘99
04
298
296
207
297
290
299
oo
42
ae
os
405
0
407
407
47
40g
ano
10Sept
How it works
‘62: Software and Tigger Buton
eps:
Booth Design
Fle Dounioads
Step
S100 8:
Step 6:
‘S697:
S008
eps:
Cul The Panels
Bottom Parl Tripod Mount
Box Constuction
‘Adding Components
Towing
Dot's andFinhing Part
‘6p 10: Detaled Finishing -Pant 2
Fle Dounioads
sept
Usage
ates Instrucatles
at
ait
ae
ans
As
ae
ae
420
422
420
24
aor
427
429Disclaimer
Allgortyoursl actives invove tsk, and your safety is your own resporsbiy, including proper use of eculpment and safely gear. and deteining wheter you have
Sdequas sil and experiance. Some ol he tescurces uses tor hate projects ate dangetous unless used properly andw th adequate precautions, incuand ste dear
Som ila photos so noi dat eal precsutene or equipment noter to chow the pooct laps more clear}, The projols ar rt ended er Use by ean,
Mary projects an Istuetabes are usor submited, and appearance of proc inthis lara dossnot inca thas boon chockod fr safely or tunctlonaliy. Us of ho
Insrvctons and siogestons is at your own risk Intrucatles, ne dsciams al responsibilty sor any resling damage, jury, of expense, It's you esporsoly 1 Nake
‘that your aetvites comply wih all pplebie ls.LED Cube 8x8x8
by chr on November 16,2010,
Authors
lke mierocontoltrs and LEDs
Intro: LED Cube 8x8x8
Croate your vn 8x8x8 LED Cube &dimensional sigsay!
We balove his nstuciale i the most comprehensive step-by-step guide o bul an 8x88 LED Cube ever published onthe intubes. til teach you everything fom
theory of epetatin, how fo bull the cube the nner workhge ofthe stare Wel take you through the sottare step by slep, bot he lw lave! divers oitnes
anghow te erate awesome animations. The stare aspect 01 LED cubes ston overooxed, bi 8 ED cube\s any se awesome as te sohware tins
‘About halway through the Insmuctabl, you wll actualy havea fly functional LED cube. Tho romsining stop wll show you Now to eoaie te satware
‘A video is wort a thousand word. I justeave it upto his vido to convince youthat tis isthe next projec you wl be buling
[made this LED cube ogetier wih my end citer. The bull tock about 4 days tom smal scale prototyping to completed cube. Then ancther couple o hous to dbus
some ily bans.strs.
“The aoinate Is probably anather 45 days ot work combined
Step 1: Skills required
[AfFet ance this projec might seom tho an overly complex and daunting task. However, wo are dealing wih dg elodroricshore co overyihing is othar on or ot
vo boon doing elocronics fora jong tine andor yoars|ctuggld wih araiog cteults. The analog crcl fad over ha thotime oven i folowod inetuctons. One
‘esstoror capac ulna sity wong value, ante cial doesnt work
Aout 4 years ago, | ride to gve micocontolersa ty. This completely changes my relationship wth electronics. I went rom ony being able bua simple anaiog
cults, Bolg aboo bud almest anything!
‘Aciojtal crcl doesnt cae fa resistors tk ohmor 2k chm, as long as ican distinguish high from lw. And believe me, this makes ALOT easier to do elaorics!
Wh that saa, here ae sil some things you should know bere venting out and bung ths rather lege projet
You shouldhave an understanding ot:
* Basic electors. We would recommend agains bulking this 2s your very fst electrons projet. But please read the Instructable, You stil leam 2)
= Howto soiger.
> Howto use @ mutineter te.
+ Whiing code in © (oatonal We provide a uly uncional program, ready to 99)
‘You ehouisaleo have patience anda generous amount o! Roe imStep 2: Component list
Here's what you leed fo make & LED cube:
512¢LEDe (pu sme ox making mistaken)
teres [ae separate top rc vale)
‘07 2x arg prcttpe PUBS. The ype wi coper “yes see mage.
{x Rrinegate mexoroneor (ou cat also use Ye pincorpalble At raya)
usta LEDs You encoee coor and soe,
Sheree forthe sis LEDs
as tensa ics
Gu PN2002 tants
oxtereaere
ierahcraB ie
‘an A292 10
i ABS csi
25229Fceram capactors
“én0 tub came capac
31000 coca exzactor
Be 0uF elec opactor
“1 J00uF erate eapsctors
8:20 pin iC sockets
‘a0 pin socket
218 Bini enott
‘2pm seen trina
‘re cable wt pigs
Sein onal ita
‘ee-pinterminal pis ht anak
2: ein robo ele connector
“elon eben ele conecar
boon cable
spun
2arbbon cab pigs
Srp female header lugs
Sraicaic ana Sp eal pln header
ous of wood froma ar sea
xin pulp sso lye
5 Sper spy ee sopra sep er power supp
“ota estimated bulls cst: 67 USD. See atached price UistImage Notes
Take sure o get this ype! potolying PCB. IUD and ite of LEDs!
Image Notes
1000
Image Notes
{Don ack at the coor codes. This sno! 10DchmsImage Notes
jrar wrapping wie. 30 AWG,
/
Image Notes Image Notes
1 Very ny wre, Perle or working on protabplng PCBS, 1 Fanto Dow away tose soloering tues.
rom haa
Jos vss. ve soar ip fr tm vat)
|< one tty BBs Comper yes)
[x Armogss2 mieecoter
esis fore stat LEDs.
ex 74csr4 ice
Ie kar waaae 16
fx i 436 ur ct
fs 22 ceramic pacts
1000 eect caper
fe sour sever capace
x 100 wate cpeciens
Je 20 pn ic sockets
x 20 pn sxe
fr 16 pn ic sachet
[spn sre ei
Image Notes Image Notes
TLaisoF ICs ‘S20 aac oxeol le fo fli
File Downloadsa (:2k8)
INOTE: When saving, you see mp asthe fe ex rename ito picts
Step 3: Ordering components
We see alot of people asking for pat numbers for Dike, Mouser or thet ig econ stores.
When you're working wih hobby electronics, you dont neces aly need the mos! expensive components with the best quality.
Mostof inetime, tis more important to actualy have the component vale athand wen youneed
Wo ar bi fans of buying realy cheap comport ots on aay. You ean gol assortments of resistor capacor, ranicore and overythingin botwoan.F you buy hase
‘ypesct assorinens, youll alnos! always have the pats you need in yourpartcolecton,
For 17 USO you can get 2000 resistors of SO dierent values. Grea valve, an very convenient
‘Try doing som eBay seetenes and buy some components for ture projects!
-Avother one of out avo stocesis Funnle (p48. com). They have everthing you Nees. The ng they dort have is 1000 deren! versions o that thing
{hat you need, £0 Growing the inventor eat lees coniusng than Buying om fave gga Companies.
See see a =
[eee :
iam
17000 lads for 16 bucks. But beware! The descriptions aren't always that get
ie ordered stucod lade an gol cleat ones
Notes
TITHSi¢the ype of proloype PCA we Used, 7 dol!Image Notes
12000 resins for 17 USO
Step 4: What is a LED cube
LED cues ke a LED screen, out tis special in at has thie dimension, makingit 3D. Thk ft as many tanspavertlow resclion dsplys.n normal éspiays
iis normal by to stack te phels.as cose as possiie in order to make tok beter, but in acube one mus beable o see rough fl and more spacing between the
bel (acualy Hs vowels singe tis no) is needed. The spacingisa Wade between how easy ihelayars behing lis see, and Voxel idol,
Since tsa lot more work making a LED cube than a LED display, they are usualy law resliton. A LED display of x8 pines # ony 64 LEDS, but a LED cube hn Bxex8)
18572 LEDs, an ofder of magne harder to make! Ths ise reason LED eubes are ony made ow foun,
[ALED cube doce not have tobe symatica, itis possible ts make a 7x89, or oven ody shaped ones.
‘Step 8: How does a LED cube work
‘hie LED cube hae 512 LEDe, Obviously having a dedicated !O pot or 2ach LED wauls be very impractical You would noed & miro cantar wih 61210 pork, and
rin12 wes tough the cube
Instead, LED cubes rly on an optical phenomenon called pasisence of vision {POV},
Iyounash ted realy fast, the image wl sia on yourretna fora tte whe ater the lec tums of
By fashing cath layer of ho cube one ater another realy rally as, tgves the luson of a 2d image, whon nt fat you 26 looking ta soroso 2d images stackos
‘ontop onsanother Thia's ato called muliplesing
Wah this setup, me ory need 64 forthe ancdes) «8 fr each ayer 10 ports 6 contol the LED eb
In tre vole, he proces is slames dow enough fot Youle See hen I tins asier And faster unt the teesh rte si enovgh for the camera to eaten the POY eee,Image Notes: Image Notes
We sartby flashing the bottom yer. Layer 0. "Then the second
Image Notes Image Notes
And 0 on Da nis ast enough, snd your human eyes wont know Ihe dlferenes! Reber
may be ate to see past fe lsion, trough
Step 6: The anatomy of a LED cube
Wor going to bo aking about anodes, eathodos, columns and layers, so lots take a moment to go lamilar wt tho anatomy of aLED cube.
[An LED has twolegs. One postive [the anode) and one negative (catha). order alight upan LED, you have un cunt fom the postive to he negaie le.
remember comect the acca ow of slackers is he cher nay a/Sund. Bul lets sicko the Row of cusent whe om postive to negative fr ro)
The LED cube Is mage up of column ana ayes. The eshode legs ot every LED ina layer are slderes together. AL
1 anode ogsin one column are solsered togetre.
2 of the 64 columns are connected tothe carttlsr board wit a oparato wir. Each column ean bo cantrolodinvidualy Each ol tho 8 lyors abo have a eoparato
vie going tothe contol boatd
Ech of he liyers ate comected t a tansisor thet enables the cube fotum an ard of the flow of current tough each ayer
By ony rng on the vansitar or anelayer, euent Rom the anode eal
ubutto onthe 64 ancée wirs are only shown on he solo layer
ca only How trough tha ayer. The vansitor forthe cer yore are of ana he mage
To display he nextayer, imply turn of the transistor forthe current ayer, change the image on the 6¢ anode wits o bre mage forthe mex! ayer. Then tm on the
vansstr forthe next layer Finee an repent very very as
The inyrs wil be etered a8 layers, estos lyers or grouns layer
‘The columns willbe refitted to ae Couns. anode coum or anodes,Image Notes: Image Notes
Ua levers teat
2 A 6de64 image sHashed fst on layer 0
Then ancther mage stashed on layer 1
44 Wachrnee repeat
Image Notes
Tins easier to see when | ae drawal’ thes
Cube size and IO port requirements
To dive a LED abe, you need wo Sts ot 10 ports, Oneto saute all Ihe LED arode columns. and aneto ink atthe estos layers
For tho anode sto oft cabo, youll red x°210 pots, whore x°Sis th szo of your LED cubo, For an 8x8x8 (ee), you rood 6¢ IO pots ove the LED anodes
[8s8). You also need 810 ports to drivethe cathodes.
Keepin ind tha the numberof 10 ports wilineease exponentialy. So wl he numberof LEDs. You can see alt of 10 pin requirement for dierentcube sizes in tae
Fora emallLED cubo, 24310 or 4s, youmight get avay wit connecting the cattado las drocly fo a mire contaliorO pn. Fata ltger cube howove, the eutent
going trough his pin willbe to hgh. Foran 8848 LED cube wih only 10m per LED, you need lo swich 0.61 Ampere, See ible? lor ar overview a power
‘quirements tor av ED layer of erent ses This abe ows the curent saw ih al LEDS on
Ifyouare planning to bulla largor cube than 8898 orrunning gach LED a mors than 10h mA, remember to ake Ino eansdoration that your layer ranssors mus! bo
sbleto hands thatload2) a Ge) (Cube size [Leds per layer] Total mA at X mA per LED
Cube size | Anodes | Cathodes | Total [toma [20m
Zi 4 2 6 a al aq a
3 a 3 2 al @} ‘20 780)
4 76 + 20, al 16 760] 220)
i 25 5 30, Ei 2g 250) 00)
6 36 6 a2. Gi 34 360) 720)
7 49. 7 56. 7 ag 490] 980)
& eh S 72 a el 640) 7,280)
9 ‘8 9 90, | al sid) 7.620)
10 1001 10 110. 7a} 700 7,000) 72,000]
1 121 14 132. i 121] 4.210} 2.420)
2 144 12 756. 1a) 144i 1.440) 80)
13. 169. 13 162. 13] ‘69 7,620) 3,380]
14 196. 14 210 14) 196 1,960) 3,920]
15 225 15 240 15} 25) 250) 4,500]
16 256 16 272 16) 256) 2,560] 120]
Step 8:10 port expansion, more multiplexing
We gatheres ttm he ist step that an 83838 LED cube requis 6418 10 lines to opera. No AVR mio controler wit a DIP package the kind of trough hole chip you
‘an faci solr oruso ina breadboard, Oual nina Package} nave hat mary 10 nes avalabe,
To ge! got he required 64 ouput Ines needed forte LED anodes, we wil erate a simple muliploxr circu This cteut wil muliplex 1110 lines ino 64 ouput ines.
‘The mutipleseris bul by using a component called latch a itp. We wil call hem laiches from here on
This multpiexer uses an itbte 1G eal 74HOS74, This chip has he folowing pine
+ Binputs (0027)
* Boutpats G07)
© Vater pin cP)
+ output enable pi (OF)
“The jb ofthe ath isto serve as aknd of simple memory. The lich can hold 8 bts cf ntrmation, and these tits are cepuesented on the ouput pins. Concer latch
viv an LED eonnactodo output Co. To tunthis LED on. apsly V+ (1) 2 nput DO, then pul tho GP pinion (GND), on hh (¥)
When the CP pin changes from low toh the state ofthe input 0 is "ahd" onto the output OD, an this output stays in that state regardless of ute changes inthe
status of put 00, unt new datas loaded by puting the CP pin tow ana high again
‘Tarmake 8 hich aay thal can remember the owaF sate of 64 LEDe we naod #9 thee lalehee, Tho inpuleDO-7o al he ltches are connected tagether han 8 bi
‘To loadthe ont stats of al he 64 LEDs we spy do thi: Loe the data of he fist atch ont the bus pul he CP pin ofthe fst low then high Loaithe data ot
tho Socond itch onto the bus. pul the CP pin of to Socandiaten low tion hgh. Load the daa ne theaaich ano ho bus. ul tho CP pin ot Hie ach iow than
high. Rinse and repeat.
‘The only problem wi his setups that we need 81D ins to canto the CP line foreach atch. The solution iso use a 7AHC198. Ths IC has 2 inp ts and 8 outputs.
The np Ines are used 0 contol wien of he ouput nes ha ve pull iow at ry tne. The rest wl be righ E90 out ne outputs onthe P4UCIS & connected
‘lhe CP ph enone of he aces.
“The following peuco-coc willond the contrts oa bute tray ont he lle a
PORT Ae data tus
(PORT @ - adres bus (74HC138)
1 chr bull hokis 64 sof data for thelateh aay
PORTE = 0x00.) Ths pulls CP on atch + tw.
‘or 0s Biv)
t
‘The oupus othe 4HC198 are active LOW. That means thatthe output hati active pled LOW. The lle pn (CP) on the latch & a rsng edge tigger, meaning
‘hal ihe datas laced when I changes fom LOW loHIGH. To Wgger te rte, Ne PAHCTSE needs say ne slp ahead ofthe counter. it had been an active
HIGH ep, we cous wits PORTE You ate probably hing, what nappa when te counter reacres 7, that would mean fal Je ouput on PORTE & (1000
binaryor he last terton of te for ip. Oni the Fat bis of PORT Bars conneced fo fhe 7410198, So when port B outs @ or 1000 nina, the HCY
‘eads 000 in binary, thus completing is exch. (t states at 0). The MHHCT3B now outa he lolowng sequence: 1 23.456 70, hus gung achange Fom LOWto
HIGH orto euront atch acoording fo counFile Downloads
Locon theoreticaLseh [21 KS)
INOTE: When saving, yousee tmp as the fie ex rename itt "mulplex tNeoraca sch)
Step 9:10 port expansion, alternative solution
‘There anahe soluton ‘or proving more ouput tines We went wih he lich based mulipleser because we had niches avaliable when bul the LED cube
‘You can aio use a etia-n paral out ei egctr to gt 64 output ines. 74HC164 ie an bt eit rogiter. Tie chip has wo npuse (may leo have an aut enable
in, tut me wil gnor this inthis exam.
+ daa
> cock
Every me the clockinput changes from ow fe high, the daa in 06 is moved into Q7, Q5 ine OB, QA rte OS and so on. Everything's sited one posionto the right
[asscming thet 00 isto hele) The state othe data putin shied ino 0,
‘The way youwouls normally oad dala nxo.a chip the th, isto take a bjte and B-sit nlo te en one bia a bme, Ths uses aot of CPU eyes. However, we nave
Jolused cf tiese chips to gat our dested 64 auiput ines. We simply cormect he data Inputol each shit reise fo each othe’ bs ona port on the micro conte. A
‘he clock puts are conned together and connected io apn on anater 10 port
‘This sotupuluse 910 Ines on the micro controler.
In th provous colon. cach byte n ourbutoraray was placedinits own latch Cin is cotip each byo wil bo dctibsod ovr al 8 si opstre, wth anata
ach,
‘The following pseudo-coc iltuanser the contents ofa G& bt butler array to the shit registers
\/ PORT Abit o eomecied 0 ht egister 8. cata inp bit te ah regskert ancss0 on
{PORT 8: tito cannacid io athe elck inputs
{chr bali Pokis 64 Bis of data
tor (0 Bee)
C
PORTE = 0x00, ,/ Pl the eoek tne ow, eo we oan palit Nigh Ineo tgge he shit register
PORTA =o Lond & by of dala onto port A
PORTE = 0x01) Pulthe eckline hghio shit data ino the shit registers
1
This is parhaps 2 beter sobton, but we had io use what we had 2valable when bul the cube. Fore purposes ofthis instuctabls, me wil be using alaich based
ruipiexr lor 10 por expansion. Peel oslo use his soso Inston if yo Understand how ney oth Wark
‘Wah this sotup, tho contonis che butler wl be Ytsted” G0 dogross compared othe latch basad muller. Wire up your cube accordingly. or srl Jit turn koO
ogress to compensate.)File Downloads
LA... attemativesch (10 K8)
INOTE: When avig.lyouo0 mp asthe le ox rename ito "mulplox aiomatvo-ch]
Step 10: Power supply considerations
‘This sop ieoasy to ovtook 3 LEDE fhomsaes dor taw that much cuton, But emamibor that his cet il daw 64 ines the mA ol your LEDS! thoy ar lon
Inaddtionto thatthe AVA and te latch ICs also claws current
“To calulate the current enw of your LEDs, conneetaled to a SV power supply withthe resistor you intend to use and measure the curant nmA Multiply this number
‘by Et and you have ho power reqorenis ortho Gubo ie, AdS I thal 15.20 mA for tho AVand a coup o! mA foreach ach IC
‘Ours atmpt ata power supply was to use 2 sto-down voltage regulator, LM7B05, wth a 12V wall ar. At over SOOmA and 12V input this chip became extremely
ot and wasn’ abe to supp the deste cue
|Welnier remevedts chip, an soisered a wie trom he mu tothe out pn where the chip used Tobe.
We now use regulated computer poner supply to get a stable high curent SY supp.
Image Notes
1 Cibeerawing almost halt an amp at vols,Step 11: Buy a power supply
Hyoudort have ho pare necorsay ould a SV PSU, you can buy one
‘ay is2 great place to buy these things
Search ta “Su power supply" andl the sear to"Business& Indsbia and you'l get lat of suitable power supeles. About 15 bucks wll get you a nice PSU.
: Build a power supply
‘Acouplo of yoars botore wo bull the LED cubo, we made our sal ane iti Iab power supply rom an old exomal SCS! cra. Tiss wha! we have Boon using to
powertneLED cube,
PC power supples ae nice, because they have regulated 12V and SV rls wth high Ampere ratings
You can use her a regular AT ot ATX power suppl or ands exemal har ave enclosure
Ityouwano use an ATX powor supe, you have to connect the grosn wite on the motherboard connootr to ground (lack). This wil power I up.
Extomal had dive ercesures are especlaly rie to use as power supplies. They akeady have a convenient enclosure. The only thing you have todo & toad extemal
power ternal,
Power supplies have alot of wire. bul he eases place to Get the power you need ie Eteugh 8 moles connector. That iethe Kindo! pug you finden hard ves before
the age! ATA,
Black s GNO Yalow is 12V Radis 6
Here san mage of our eb PSU. We have 12V output SY ouput wih an ampere meter and SV output wtnout an ampere meter. We use the second SV output to power
fn 0mm PC tanto suck or blow fumes away whens so}der
Wewen'getinto any more deals ofhow to make a power suply here. fm sute you cant another insbuclableon howto do that.
Image Notes Image Notes
TO SCSI sk 1 Ugad a ex comecor co wo cous dleconneat he eube easly,
2 Inside here 2 smal poworsupply that use to supply the SCSI hard drive that
‘ras nse.ep 13: Choose your LEDs
‘There are many hinge to consider when choosing LEDs
»
‘You want tho LED cube tobe equal visble rom al sidos. Therslore wo stony recommend using luce LEDS. A clear LED wilshoot tho majority of i's ight out he
‘op of he LED. A dueed LED wil be mors or late equaly right Fom asides. Cla’ LEDs aso create another problem I your cube is made up o! dear LEDs, The
IEDs wil also patiatyuminate ine LEDS above inem, te most! the igh erected upararss. Ths creates some Unwanted Qrosting elect
‘We actualy ordered duced LEDs trom eBay, but got 1000 clear LEDS instead. Shipping thom backto China te receive a replacomean! would have taken too veh time,
‘50 we decid 10 used the clear LEDS instead. I works fit, bu! the cube & a lighter when viewed ttm ho top as opposed to the sides.
‘The LEDs we ordered tom eBay were stuly described as “Delused LEDs". Maybe we shoul have taken the hint) Deusingis someting you do toa bomb wen you
vant aprevent rom Blowing Up, Rene
Larger LEDs gives you a bigger and bichtr pas, but since since the cube is 8layrs deep, you wan enough room ese al te way tough othe furthest level. We
‘went wits amen LEDs because we wanted the cube to De as "vaneparent” as posspe. Our fecommendaton sto se arm attised LEDS.
a
You can buy vary cheap lots of 1000 LEDS on eBay. But keepin mind he quality ofthe product maybe reflactedin t's pre, We tik ha thera is ess chance ot
LED manson it yu buy beter cualtymare expenswe LEDS
‘Square LEDs woul probably ook cool t, but hen you nee to make a sobering lemplte that can accommodate square LEDs. With Sm round LEDS, all you needs 2
Se eb,
Since the cube rls on mutislexhg and persistence of vision to create mages, each ayers only tured on for 18 of he time. Thisis called 18 duty yl. To
compensate lor his, he LEDs have be igh ensugh fo prodice the wanted bighiness level a V8 dy yee.
a
{ag length. The cube design in his instuctable uses the legs ofthe LEDs themselves asthe skeleton forthe cube. The kg lanah ofthe LEDs rust be equal or
‘festa than the stance you want between each LED.
Image Notes: Image Notes
So many chicos. 1 These ao tho once we ended up usingImage Notes
{TBAD This isnot what we ordered! Dame you ebay’ tage ices
‘GOOD This is what we expected to recovo. Ducod LED
Step 14: Choose your resistors
‘Tore at tree tings to concider whan chosing be valu ef your rosisiore. he LEDS, the 74HCSTs that dre the LEDs, an thetaneiore used o uli the layers on
and.
»
Hlyour LEDs.ame wih 9 data sheet there shoul Be some ampere rating In there, Luly, there are Wo athgs, one MA or Cominucus load, adm fr burst leds,
‘The LEDs wil burning at 18 dty cycle, $0 you can reer othe bust tana,
2
The 74110574 a0 has some maximum ratings. Ia he LEDs on ane anode column ste, ths chip vi supply current 8 o etme. Youhave to Keep within the
peated maximum mA rang forte output pins. If yu ook the dala she, You il fn tie: OC Outpu Source or Sink Cure par Outcut Pin 0-25 mA. Ako
‘here's VOU oF GND extent maximum rating of Soma, hn orer not to exceed ne, your LEDs can enly min at SO ma-since Ihe FANCS7e haa cutouts Ths ges
YOu 825 mA to work wh
3)
The transistors have to such on and of 6 x the mA of your LEDs If your LEDs draw 20m each, tat would mean tat you have to swe on and oft 1.28 Ampere
‘Tho only Wancllore wo Nad avalabio Ha a masimum rain ot 400mA,
We ended up using resistors of 100 obs.
While you are waling for your LED cube paristo arivein the mal, you can buld he uy inthe peture below: iw ns utables.coniResisor- maNotes
Mrvwala resistance!
» 15: Choose the size of your cube
Wo wantesto_raxothe LED eibo using as fow eampononte ae posi, Wehad eeen sore ppl ing mat rodsor hale dasgns but wo i have ay meta
rods Maro the mead desns also looked ate cooked
‘We figura hat he easiest way to bl af cube would be tobard the legs ofthe LEDs so thal te lgsbbecome the scalding that nods the LEDS in place
|We ont e eatnade leg on one othe LEDS ard measured i oe 25 mm om the center of Ine LED. By choosing 8 LED gpseing of 25mm. there would be a 1mm
‘overap for sldaring, (1 Inch = 254m)
With 2 smal Sm LED 250mm between each ld gave us plenty of open space inside he cube. Seding athe way throughto the furthest ayer wouldnt bea problem We
couldhave mace the cube sale, bul nen we would have fo Gu every shal leg. 2nd visi ino te cube woud be compromised
‘Ourrecommerdaton|s to ute the maximum spacing that your LED can alow. Add em margin for soldering
hp iw instructables com nbellevable-Ardulno- Projects!Step 16: How to make straight wire
larder omaks nie Boxing LED Cie, you need some tight sel wir. The only wit we had was on spook, 30'thad ob saightned
ures attempt at this fates horiby. We tied to bendit ints siaigh wre, bul ne mater ow much we ben just wast straight enovgh
Than we remembered an episode of How is made ram the Discovery Channa. The episode was about row thay make steel wite. They star out wih a spoa of realy
‘Wick wie, thon they pull frdugh emalor snd emaler holes We remembered tal the wie wae totaly eight and symmrea! ater being plod ks that
So we figured we shoul give pulling ty, and it worked! 100% sai metal wir fom a spac!
Hereis how youdo
+ cult the engin of wte you neod from the epeo, plus an inch orto
> Remove the nsuition day.
5 Geta tn grip ofeach end othe wire wit two paso pers
S Pulhars
3 Youwil feline wire sete tile be
You ony nood to crtch 2 couple of milinstrstornako nica and tag.
Ifyouhave avice,youcan secur one end inthe ice and use onepairt pists. This would probably be ao! ease, but we don't oun & vi
Step 17: Practice in small scale
Whenever Myth Busters ae testing a complex myth they start by some smal seale experiments
We recomend that you doth same thing
Betore wo bul the sxx LED cle, we started by making a smaler version, axe, By making he 4x8 version Hist, you ean perfect yout exbe soderng
Teciique belore sartng on the by one
(Checkout our dxdt LED cube instructable for intutions.on busing a smaterprotlype: Build the cube: create a jig
In oe o make anice Woking LED cube, is important talit completely symmetca, thatthe space between each LED is idantcal, ad that each LED pains the
same way The easiest way o accomelsh iis is 0 creale lempararysoienrg iempiate
»
Find spice of wood or pas thats largo han he sie of your cube,
2
Fing 9 anit hat makes aol ha sa LED snuglyin lace You dont want to bet Hp, as hat WoUlG make Hex remove the solaeted layer tom hej
‘thot bonding iI tho hols aro eo bi, some othe LEDs might come out ecokad,
Use a ue and an angle onto aw up a gr of by 8 ines intersecting a 6 pots, using te LED spacing delermined ina previous step.
a
Use a harp pointy abject te make indenone at each intersection. Thee hdentons wil proven he il rom eng edeways when you eat ding.
5
Daou allie hates
»
‘Take an LED and ty every hols for size thehle too srug, carefully dil again unl the LED fis snugly and ean be pulled ou without much ressance,
2
Somewhere near he mice of ane of theses, caw a smallmaror stow. A see! wie willbe soleres inher never ayer gve the abe some eda tiening,
Image Notes Image Notes
{Titjou make a smallindenation before celing, the del work sca sleways. TAldone We usecithis LED to test al the hoes.
2. Everything But the ktenen stk? We sor of Used he Mohen i ool he 49
inplace’)p 19: Build the cube: soldering advice
‘You ae going tobe soldering VERY cose io the LED body, and you are probably going o be using realy cheap LEDs ftom eBay. LEDs don ke heat ieap LEDS
probably moreso than others Tha means tal you have flake some pecautons inorder fo aval broken LEDS,
‘Soldering ron hygiene
Fret of al you nicod to Koop your soldering rn nico and cto. That moans win it onthe Sponge every imo you usa it.The tp of your soldering Fon shou bo clean
End stiny Whenever te you see the tip becamng iy wth fx or oxdng that means losing 's shinyness, You shou Gean f. Gven f youre the middle
{oiring Having 8 ean slcening ip makes f& LOT ease © vanster hese the soiderng ate,
‘Soldering spood
‘When soldering s cose fo the LED body, you nes to get in and out cuicky. Wipe your rn clean. Apply thy aroun of sole to the tip. Touch the pat you want to
{elser th the ade of ote fon here ya us uae solser. Le the get Mea’ up Tor S1 seeonés hen foush he oer eo he Targal yo ae slcening wth the
‘2dr. You ony nid to apoyo it Oniy the colar that touching tha moto bat wires wil rake aciferanca. A big blob of saldor wl nat mako the coda Joint
[ny stonger. Remove the sldaring ron immediatly ater applying the solder.
Mistakes and coo! down
Ifyoumako a mtak, fr exampio ithe woe move before tho colar ardans or you dart apply enough solder. Do not xy agaln right away. At his paint ihe LED ie
‘lleady very hot and applying more heat wt the soldering Fon wil ony make t hater. Conve wit the ex LED and let eel down or 2 minut, or bow on its
‘remove sme heat
Solder
‘Wereconend using a thn solder for soldering the LEDs. This ives you alot mere contrland enable you to make nice ooking soder ons witout lage blobs of
‘older We used a 0.5mm gauge slder Dor se solder witout fu I your solders vary can th x bok cleaning the tage! propel, get newer skier. We
avert experienced ths, but we have Near that tcen happen.
‘Aro wo parancid?
‘Wen using te Sx8s8 LED Cube, we ested each and avery LED before using inthe cube. We aso tested every LED ater we fished soldaring a layer. Same of the
LEDs don work ater bong soisered in place We considered these Fins belo making single sade oh. Even wih careful salting, some LEDs wete damage.
“Te let thing you want ea browen LED near conor of he cube whan ke ichos, The il and eecond layer Fam the outside ean be fixed alanWarde, buy
“ther a than tal, 2nd you need endoscopic Surgical tals)
Image Notes Image Notes
1 ithe tp of your soldering Fon looks tke this, tis time to dean Ths ite gadget grea or leaning your sldering ron
Build the cube: test the LEDs
‘We gat our LED® ram oBay realy cheap!
‘We testd sore ofthe LED belore a sttted soldering, and randomly stumbled on @ LED that was alot cinmer than the res. So we decided to est every LED belore
Us We found a coupe of ea LEDS and some ha! were dimmer han the rt
woul be very baa tohave a dm LED ini youre LED cube, £0 spend the tne to test the LEDS before soldering! Ths might be les oa prablem # you are
{Siig LEDs that te rote expense, bul we found it wor wile fost ourLEDS.
‘Get et your beadoars, connect a power supply anda rsisr, then pop the LEDS in one at ate. You might also want io have another LED ith its own resistor,
permaneny on te Breacoars while testing, The makes i easi: o petateenees in bightness,Image Notes.
Trivuiimeter conoacted in sais 10 measure mA,
2.5 volts rom power Supply
‘Step 21: Bulld the cube: solder a layer
Esch layer mace up of @ columns of LEDs haldfogetherby the legs of each LED. A! the op ofeach layer sech LED i calad 90 degrees clockwise, so that he kg
sonnets wh he op LED ofthe est column On fe ear othe ight te log wil ck out athe seo he layer We leave Ne In place snd Use tia eet oun
vmentoating al the LEDS ina ator stp.
1) Prepare 64 LEDS
Bend the exthode leg of each LED 90 degrees. Make sure the legs ate bert inthe same diction on llthe LEDS. Looking a the LED siting in anole thetemplate with
tho nol tho ight we bent tho og upward.
2) Star with the row atthe top
Start by pscing help ogi LED inthe template Then place the one to he et, postoning iso tats cade lg is touching the cathode eg ofthe previous LED.
Finge and repeat unio rea he lat LED. Soler athe rts
4) Solder alls columns
Ifyou are right handed, we recommend you sat wi te column othe ef. Thal way your hard can rest onthe wooden template when you solder. Vou wll ned a
‘lbady hand won eoldering oohand Ine ti. Slant by placing the LED s2cors ram the tp, apni eos lg oushes the salder ont am tho previous sep, Than
place the LED below tha! so thatthe catnod fg cuches the LED above. Repeat unl you reach the botiom. Solder al he oi.
4) Add braces:
You nov nave a ayer ha oo ke a com. At his oh the whole thing very Mimsy, and you wl need to ade some suppen. We used ene bracing near the bottom
and ano near ne mide. Tave a strait peace o! wie, oughly align there you want Land solder one end othe layer. Pine une he alghmert and solder the other
{nd nace. Now, make olde jst the remaining 6 clurms. Do for Both braces,
5) Test al ne LEDS
This ic covered tho not stop. Just motioning nero 6 you dont remove the layor jst yt
{6 Remove the ayer
The fret ayer of your LED cube all done, now al you have t dos temve om te template. Depending on the ze of yur holes, some LED might have more
resitanco whon you byt pull tou Simply grabbing bath onde othe ayer and puling woud pcbably break he who thing acouple of is LEDE aro stuck
Siar by Bing evey single LED a couple of milimstrs. ust enough fee that there isn't any restanee. When al the LEDs are trea from fi ol, ling
caveuly. 148 sil tuck stop and pul he suck LEDS out
Repeat s ties!
Note on images:
Hfyouare having touble seeing the deta nary ofour pictues, you can views the ul resluon by dicing on thei icon in the top kt corer of every age. Al our
‘nse ip patie are lnken wth amin rd an shoul Rave excelent macro fu On the mage page, ehoase Me orignal ie om The “Avaabe sizes" men onthe
lok hans ie,Image Notes. Image Notes.
Mista nth this rom About tt overlap. Pr
2. Thando ts column
‘An ren he rst
4. Don emave he leg thats ck
gic othe festing the LEDS.
Image Notes Image Notes,
LED ready tobe soldered, Look how nicely they line up. Trvfe mathe of where we wanted iohave the midway bracing, £0
scedenialy putin iterent locatons insach layer pImage Notes Image Notes
Tera0e AMO: dono, ust ned th braco,
Image Notes
Tal coneImage Notes.
Tre own fo go!
Step 22: Build the cube: test the layer
Selina cloc oho ody of ho LED an damagothe elec indo, We strongly roconerans tha! you at al LEDS bora sroooodig.
‘connec ground tothe tab you i sticking outa! the upper right comer. Connect wire 0 SV though a resietor. Use any resistor that igh the LED up and doesnt
‘exceed is man mA rating #1 5V 470 Chm would prodaby wok us fe
Take the mre and ap tagahst al 6 anode legs hat are sticking Up tom your template. a LED doesnt lash when youtap it that mean that something I wrong
1) Your soloring ism conducting eure.
2) The LED was overhedted ana 's broken.
43} You cit make a proper camectin Between the txt we ana hele. (ny again)
Ireveryering checks out, pull he lyer om he cube and sar solserhg the next one
Image Notes
{Ground eonneced othe ayer
2.5, fom power supoiy
3.8 ote via eso.: Build the cube: straigthen the pins
In ouropiion, a LED cube is «place of a and shouldbe peleclysyrmetical and sist, M yu look atthe LEDs in your template om the side, they ae probably
bent some direction
You want a he legs o point sraght up. a 90 degree angle tom he emp
‘Whe looking at ho tempat om the ede, eaghion allthe lage. Than coats ho template 90 degraee o wew tram te aber edo, hen othe came process,
‘You now have apt layer that is eady iobe removed irom the emplate,
Image Notes Image Notes
1 Thiam" going to be very nice LED cube! TThe beter
2. lo uso a tnd cube here demonetate
Image Notes
1 Pinstraghtening pad of. see how straight the cube ks1. Fan tabiow the umes away tom my face 1. Alte plns are bent ana ready t receive the nes yer
Step 25: Build the cube: solder the layers together
Now comes te icky pat, soldering it altogether
The rato myers can be qute tinaybelore hey are slderedtogether. You may want to put the et ayer back inthe template to We some siabiy
In oor o avoid otal easter. you wll nod someting to hold the lyor in place befor tis coldorod n paso. Lucky, tha with of a SV bar is prety oso o 25 mm.
Probably closer bo 25.5-26m, bu hats O,
Warning: The 9 volts ram a 9V battery can ess overload the LEDs ifthe contacts onthe bly comes in contact wth the lags of the LEDs. We taped over the atieny
oles to avoid acederalyrunh the LEDS we were sade.
Wohad ponty of 2 bates ying around, co wo used thom 2s temporary supports.
Blatt by acing ASV bateryin each comer. Make sue eveything aignea perlety, then solder the comer LEDS
Now Slier the LEDS aroun he elge ofthe cube, moving he SV ater alg as you go around. This wil ensure al the ayer ve Slsete prety parle! to
‘Svnow a9V Eatery he mie che eben tom one ole ss. Slit a couse ct he LEDS in ikl
“The hole thing shouldbe prety sable a this pot, nd you ean conn soldering he est he LEDs witout sing fhe SV bates support
However eos some othe LEDS oe sagging ait sien 8 9 baey fhe upt
\Whon you nave sollredallth columns. tis tme ost the LEDS agah. Romorbor that tab sticking ou! tom tho upper right com ofthe aye, that we tld you nota
remove yet? Now isms to use Take # pecs of wre and slier thst offre tlm lye oe ab ofthe layer you ust seldered in place
Connect ground tothe the gon ta
Test each ed using ite same setup a you uses when testng te inaivaual ayers. Since ihe grouna ayers have been connec Dy the 1st abs, anda the anodes in
‘cach eolunrs aro eamectod gather, aU LEDS in acolimn shoul light up whon you apy votags to top one. tno LEDs Dolow tdooe not ght up. it probably
Ineans tal you forgot a solder oi! tis A LOT batter o figure tis out a his pol aber than whan alle ayers are soldered together. The center ofthe cube is
‘tually Impossie fo get to wt a slaerng ron
‘You now have 28 of yourLED cube soldrod logster! Yay!
For tho nox 6 layars,uao the oxac! samo proess, but spand oven more time algning the corner LEDs botore soaring thom. Look atthe cube tor above, and ako
sure ha llhe comer LEDS are on sag te whe lookin ahem Om aove
Finse ana repeat
Image Not
1 We taped over he battery terminals to avail ary sisasters!Image Notes
Talos! excely 25m!
‘Step 26: Build the cube: create the base
Wo at have any fancy tole at our spesalto eeate fancy stand or box for ourLED ctbs.Intoad, ws mode the tampat to work 36a base fr the cube.
‘We encourage you to make somthing cole than we didforyour LED cube!
For the template, we ony clea coupe of mm nto the wood. To ranstoum the template ino & base, we stile all the Noles hough the board. Then we died 8
“males oles forthe &exthoge wes runing upto the 8 eahode hyers
‘course, you don want have your LED cube on a wood colored, Ya didn't have any black Bhi ying around, bu we di fed a lan lack magie marke!
Siahing the wood black wih a magic market worked surprisingly wal think he one we usedhad a TOmm port
+ Heo canode ree
7 + image Notes
Daal the way through.
Image Notes
{'TMSi¢ meuneeson the underside of he Board 0 hide wes pace.ee
appropiate A5232 loves. Ore of he 1OOnF capacirs& ailereapactor
‘The S232 connectors at = 90 degree angle or easy access when the ach aray oad s mounted ontop af the AVR board. We used a & pn connector and ext one of
tho ans out io mako& polareed connacior. This ramovos any confusion as to which way to plug nthe S222 cabo,
Inthe second picts you cars two yellow wies running from the ATmagato the MAX222, These are the TTL level TX and RX tne.
1) Camect the GND and VCC pins using solder ace or wie, Place a 100nF capactar tse to the GND and VOC pins.
2) Solder in place the rest of he 10OnF eapaciors. Vu can slde these wih solder aces, 0 is best odo this belore you connec the ts wies.
2) Solder n place a 4 pind." heaser with one pln removed. Connect the pn nextto the one that was removesto GND.
44) Cenneet the bi inp tne othe mero conte, and ho xx ouput line tothe gh header.
“The wires going tothe 4 pin header ae cossed because te et srl cable we used had this pinot.
Image Notes Image Notes
{These capactorshelps the maxza2 bump hevotage up io rszazleves. 1. ABZ connectorStep 42: Build the controller: Make an RS-232 cable
To comect he LED cube toast pot on you comput, you need to make a sti cable wih a feral D-Sub 9 pin connector
‘Our employer deployed 70 Ethemetswitcnes wih management ast year Wih each swith comes an S232 cable thats never used. We lirally hada big ple of
S222 table, eo we decide to madi one of hese.
‘On tte LED cube, 20.1" pn header I usod, eo tho S232 eablo noods a nw cannectar on te eubo si.
‘We cnt have a4 pin feral 0.1" comnectr, so we used a4 pin feral PCB header instead
‘The connectoron the LED cube PCB has one pit removed o sual the drectionaliy ofthe connector. The pin numbers goes om right oe
Pinout ofthe RS292 connector:
1). GND (OSubs pins)
ZN comected
5) RX (DSuE9 pn 3)
4) 7x (OSub9 pin 2)
Follow hace elope to make your un S232 cab
1) Cutof the conector atone end ofthe able. I your cable has afemale and 2 male connecter, make sure remove the male connector!
2) Sip away te outer sheath on the end where you remaved the connector.
2) Sip ot he wires inaise
4) Set your mutimeter to contri est mode. This makes the multmeter beep wren ihe prbes are coneted.F your multmeer doesnt have ths option, Use the
‘esistance made, Istouid ge! ose to 0 olin when you connec! th probes.
5) Cameet one multimeter prabe othe DSubss pin 5, then probe all the wires unt you the mutimster beeps. You have now dented the coor af GND in your cable
Fepeat or pine and 2 (7K aN@ RX)
£5) Yt down the colors you dontad, thon cut of tho oor wis.
7)Cutthe tree wires down to size, S0mm should do
£5) retin te wives to make soldering easiest apply hea! and solder tothe stipe wie,
9) Sie a hunk tube over the cable, Sie three smaler sink tubes over the individual wires.
10) Solcer the wires ote connector
11) Stink he emallertubee rel, hn te large ane. Kyou Use a ighter, dont ld the gtrinktube above the fame us hold etase othe ede ofthe ame.
Dont make you cable based onthe colors we used. Tes the cable ofindthe core coir,Image Notes: Image Notes
{ve managed to ge! the colors wrong onthe ist ty. That's why the cablein the Tr Ths another way ol doing
‘is pletutehes a yetow sink ibe.)
Step 43: Build the controller: Connect the boards
“The to boards are connected by two cable
‘+ Artbon cabioorthe DATA and Acre BUS,
1 A2 wreath or GND and VCC.
‘Altar connecting thee0 two eabos, your board fe compat
Image Notes
1'The GND/VOG eable connects Between te Wo Zpn headers here.
Build the controller: Connect the cube
[Gonnect tre nboon cables according tothe phous shown in plture 2 and 3.
‘The ground layer fbon cable connects ho in header haa” tho Fanilr aay I the cube ie updide dwn, jue plugin the other way.Imago Notes
"The ground ayer bon cable connects hete. Just connect the other ay i
your LED be 8 upside-down
Program the AVR: Set the fuse bits
The ATinaga32 hastio fuse byes. Tse contain seftings hat have 1obe loaded before the CPL can slat he clack soures ans othe stu
|ATmega W use an external high speed crystal eeatatr and deabe JTAG,
Yu have to program your
01001 (ob sans that everthing ator ihe b isn bay)
Wo othe lower fuso by flo) 19 0b1 1101111, an the high fuse byte to
We used avid and USBsinyISP (pwn ladyada.t/mskelusbtnysp) to program our ATmega
In alte flowing examples, we willbe using an Ubuntu Linux computer. The commancls should be Went you tn ave on Windows
duo usiny 9 m32-U Mca:wrob1 1101 111m
Ade sheng -p m2 hse wb 00%00%:m
21 oot thie wrong, you cout etiy brick your ATmegal you or oxamplo eable te rset buon you wort be abl ore ‘rogram I Il you sole the wrong
iumight not boot a al.
Waning:Image Notes.
TUSBINWISEProgram the AVR with test code
your brandnew LED cube actually wore!
-usbny spoof that we aro using ho USBLnyS® from Lady os atthe devi is an ATmoga32 1 tok avidude to work aa higher thar
File Downloads
Ls
INOTE: Wren saving
Test the cube
“Tho tt code you programmed in he provou vicod
rn thal everything
Iwi etart by drawing a plane slong one axe, then moving long a8 positions of hat axis. by plane we mean aft surface nots airplane | The test code wil
{any o he layers or columns s26m o Ight up inthe wrong order younave probably soldared the wrong wits to tho wrong ast or column. We had one mitakain ou
would eat PU oles everytime te inerup routine runs
(0 your ub 1 tho tst vio bolow‘Step 48: Program the AVR with real code
So everthing checked aut inthetast its net program he ATmaga wth the eal fimware
For the most par the process the same a nthe previous programming step. But nacton you have to program the EEPROM memory. TeLED cube has abasic
PROM, along wih some other data
Firmware § programmed using the same procedure as wih th test co
© dude cusbiny pm32-B 1 -Utashw:mainho
: cusbiny 232-8 1 -U eepromwmain
rus
LU cepromeman.cep sectiasthat wo are accegeing EEPROM momeny, ine mode. Au gee put al the EEPROM dela in main oop
on he sofware side of hinge 3s
1 tecomend that you spend some in
dor wart to play around with the code, your LED cube is Sished a his point. ut
Ityoudoeioad the binary fas, you have 1 change he Henares inthe commands othe name ofthe fs you downloadis
Software: Introduction
Microchp isaisoa nce choice, but most othe © campers cost mney, ano the tee version's have imtatons on code ice
‘Tho AV routois much morehascl re. Just apt got inal avr gee compl, and you'rain bushes.
‘The softuare onthe AVA consis of two main components, the cube inlrup oun and ell code for making ancy animations.
ITtna deplay hada nghorrosouion and mor color, wo could havo use sin) and eo funaons an
low reson, we have i use alt of) and for) fo make anything mearietu,
al that o make faney eye candy. With wo core (onan af andFile Downloads
L..... 8x8x8-v0.12tar.gz (20 KS)
Step 50: Software: How it works
As mentioned inthe prevus step, the software consists af two pas. The ntemupt rout
an the eftect cod
CCommuniaion between these wo happens vin a voxe arty. This artay has abt for every LED in he LED cube. We wl ter to ths a he ube array a abe butler
trom naw on
The cube stay s made of 8x8 byes. Snes each byleis Bits, this givesus a bulferthais 8 voxels wdle, 8 woxels high and 8 voxels dep (1 bye deep)
late unsigned char cube)
The Interupt routine reads tom he cube aray at gwen nlevals and slays the Information on he LED cube
‘The etc functions wie the desired LED statuses fo this stray
We di not use any synchonizaton or double bung, since there only one produse eer the elects cunenty runing, input rom S252) and one consumer
[he interuprend mat updates the cube). The means tal some voxels cout Be rom te next oF evs "are", bul IN nt a problem, sce the Rare tle &0
Fig
When working wih mito cones, code size cial To save code sie ad programming wotk, and io make the code easier to read, ws have ied to wile re-usable
‘nde as often as posse.
‘Tho LED cube cods has abaso of ow level drawing functions that aro used bythe high level tot tunctons. The draw functors canbe foundin draw. Draw
lunctonsinelude everything rom seting or clearing asirgle vox to draving Ines and wrelrame boxes.Step 51: Software: IO initialization
“The Fst thing the ATmega does afer boot, st call
AN1O parson the ATmegs are bi Otis the cube upside:
To make the function as simple as possible, tus draws a boxtrom 0.000 any point along the agonal between 0,00 and 7.7.7 then Uses ats mor tuncins trom
She 107. The makes rosea Wea snk he ox Nengro. ye theft along tedaginal We ist ed one varie sey ana
4)When i=, the boxhas shunk to 2 txtxt box, and we cart shrink any mor. It is greater tan 7, xyz sett08, which makes xyz travel om 0 7
wom 8 fo 15, He od ins tek avo having Two Tor leaps, wen one going Fam 7-0 ane ane a 07
5) Blank tho oubo ad doly ait bit to ako ure the blanking Is rondorad onthe cube. Disab the itoruptrouno. We do this bacause the mito functions takes a
Be ime. Without dsabing in
ups, the wrtrame box woul ash b
ng doplayed ra
7)Do the fotatons, ip is eater han 0, the cube is tame upside-down. ot tes number tom 0 9 3 where Os O degrees of rotation around Z and is 2
Gograse. To gol 270 doytece we spy mtr around X and
Enable intorups o display the now ro
cube
The othe uneton involved inthe wrerame box ete elect box_wooewcop0). The name Woopwodp lust Sounded natiral when We Wt aM the ee
ho cube
The wo
swoop uncton only does one tration and takes two arguments, delay and grow. grow & grea
han 0, the box slats a6 8 2x2x2 box and grow to 3 xBx8Here snow works
1) tba ho abo by tng the butler wth Oxo
2)Fox)oop rom 0103
i LP gtow fs spectied we set itt 34 reverse it
5) Draw a wretrame box centered slang the diagonal between 00.0 nd 77.7, One comer of he boxuuses he coordinates 4son allaxes, moving fom 47. Theether
omer usse 3 Honallaxce. novng tor 2-0.
6) Daay for a whe, then clear the cube,
tthe shrink grow elects called 8 mes, one for eech corer, then woogwoop is called four
™
two fundions are used as one single effect inthe fect aunchet
sink Ae go
To launehthe shen grow hineion, we uses a for loop wih some neat manpulatn tesinekse to avedriing 8 Ines oteode,
‘The socend argument ol the erik grow tunctione ie the roaton, 4 etope, We are counting om 0107, co wo ea simpy fea ino te uration We use the modu
Operator Seto Keep enumberinsde a rage o! -4. The modulo opeala divides by ie number species an etuin teremainder
The third arguments he fp. When ip = 0, the cube isnt flppel =O fps. We use he bitwise AND opetatarto only ead i of
WA Freaks
BBhwse ope‘sors are an abolite mus! toknow about hen working wth micro conte, but hat is utslee the peo hig rr urable, The guys over at
have posled some grea iermation about he top, You ca ead nore al Np/ naw avieaks.netindex hp?rame: PNOHpSS2K te-viewlopist-2787%Step 61: Software: Effect 5, axis updown randsuspend
This sone of our favorit iy suspended in the cube gives ance Sd
1 while vowing th ot
fects. The vox
diferent stances from where they
‘Te functon then loops 8 es moving each voxel closer ots midway destination. Aer 8 orators
“The aztual voxel drawing ie done n a eoparao function, craw_poditons_axe() co can be used in detent fet. For exampe, the voxGk: could bo eusperided micway
ina ron-random pattern, We wil eave up o you to erase tha fect uncon! D
ho tox above nmin whor reading tho coda, and uy to Hgure cut what everything ds,Step 62: Software: Effect 6, stringfly
Bebe about sted
8 © abo S28 equited oranda a eringil ex ont so we
tng and apis as charaotrsMying rough the cube
stats by placing the charactor a the back o the cube, ten uses the shi function to shit the
be contantstowatde you, making the ex fy
EEPROM memoryFile Downloads
INOTE: When aaving. you eee he oxt, conam ito oube a2
Step 65: PC Software: Cube updater thread
Inouboswe havo. ha clo. push) Thakos the 64 ble stray and conc dow ho sail n@to the LED cube
bos internal x andy
tals handles the formating, sending very Ox byte twice because Ox is our escap
In main we have he funeson cube_updat). Ths Nnetonis hunched asa separate tread using ptlyeac teste). The main thresd and he evbe updater tread
bo updalorthvad is uti awhile rueloop tat cls cube. puch) ever and vet
shares tho momory aoa 6232. cubol). Mh
some debugging, we found out that rames w
‘The fast atom at an update toad turned otto eeate sme licking in the animations. Al being iransmited
ior 10th eh ofa vocona
“This wast a problem Inthe cade unning onthe LED cube, since thas eresh rate of over 1000 FPS, but at 60 FS you cen notice
functions use te deiay_m( unction to pauee between linshed frames. We jist put a meeps) inside thors fo copy the cube butter to tho 3282 bute. This works
beauty. No more WickerStep 66: PC Software: Effect 1, ripples
“This he fre effect we made for he PC sofware, andwe tink tured out very nice,
Wie this may sem tke a complicated elect, is relly not
-Alltheetect unions runing on the micro corraer mostly use i statements to cate elects. The etlecis onthe PC software ar but a itedferent We use lat of
Sin), 0 and oor man furaione hore Meet coordinales ave ealulted fe lain point coordnaioe than ypocse nts inlogore befor bong dawn onthe cube
‘The elec you seein he videos acually ust asine wave eminating tom the cone of the cube, x=35, ya.
Heres how i works:
1) Loop tough the iteration courier
2) La0p tough al 64x an y coordinates
3) Calculate the stance betwoon he ctor ofthe cub and ha xy coosinato.
4) The zcoordnate ie calculated with sing based onthe cstance from the center «the leraion courte. The results tal the sine wave moves ou! Kor the ante a the
Look how easy tat wast
Step 67: PC Software: Effect 2, sidewaves
hiss basicall the exact same tuncton as the rpple fureon,
‘The only diference is the coorinales of te pont used to calculate tre distance to each x coordinate. We cal this point the orig, since the wave emanates frm is
point
‘Tho org enotdnatols calelatod the is
ntration county = as(taraton count)
“The reel fe that these x andy coodnates moves around in a rl, resulting in sin wave tal comes in fom the side
We just wanted to show you how easy itis to eompleely aller an fet by weaking some vatables when working wth math hased eects!Image Notes:
TBeauifu matt
Step 68: PC Software: Effect 3, fireworks
This ofloct was quio into make
Temake ns eet, we ‘ely hao doun a ink aout how reworks work, ana Wn ore influence te rework pales,
Wo camo up wit a toortica model of hw ttoworks work:
1) Atocket is shot upto arandom postion rg x. ori y, orn 2
2) The rocket explodes and throws buming paces ou in random diecions a random velocties
<2) The parties are slowed down by ai felslance ard pullestowaras te ground by aramy
Within modelin mind we created a treweris eect wih a pretty convincing esl. Here how itwor
1) A random eign postionis chocen. ihn artan Imi. x and y between 2 and 5 10 keep the fraworks more orees in he center ofthe cube. 2betwoon § and 6
Feworks exploding nea’ the gun ean be dangerous! p)
2)The rook, ms case a sngle voxels moved up the Z axe at he x andy soorinates unl resehes org.
3) Anarrayo n parle is croatcd. Each panicle has an x,y and z coordina 2¢ wall as a vabol for cach avi, de dy and az
4) ¥e for loop trough 25 parole animation step:
5) Astowrao's calculated, thisis th airesbiance. The slowrato is calculated using an) which wil tum an exponentaly rereasing number, slowiny the partes
‘aster and taser
8)A graviy variable is exteuiatod. No using tan). Tho ff of gravy is ais sxponeiial. This probably ent te mathamatcaly coroct way oleatulaing gravis
‘floc on an objec but os good.
7) For esch patie, he xy and 2 coordinates ar incremented by thera, dy nd de velocies vied bythe rate. Ths ull make the patiles move sber and
ower
8) Tho z coordinate ls dooreased by th gray variable.
9) The patil ie craw on the cube.
10) Delay fora wh, then doth next iteraton of he explosion animation,
We are cute pleased wit the result,Step 69: PC Software: Effect 4, Conway's Game of Life 3D
The Game of Life, ao krown simply as Lfe, 8 calllaraulamatan devses by ihe Bish mathematician John Horton Comsay. You can read mare shout this on
Whigesia #yOU haven theatd aba Hoetore
By popular domand, we havo mplamontat Game of Ue in 30 on the LED eubo
‘Tomake {workin the rus have tobe weaked a Re:
+ Acoad col bocomes alve if thas exact 4 neighbors
2 Alive coli 4 neighbor ve
Alive ell wit So fewer neighbors ie
Alive colwitt €or more neighbors de
The program stars by placing 10 random voxels h one corner af the cube, then the game of te cles ae appl and the Retains started
In tre secon We, we tun the animation faster and seed mh 20 vols,
Step 70: Run the cube onan Arduino
‘Soe we pushes oust LED Gube instal, we have goton aloo questions tm people Wandeng hey cule use an eit conte ee.
‘iste, wo ate one sop acd youn ho “Can fuse anata? ont:
“The 10 requirement for an 8x18 LED cabo:
Layer slet 8
Dats buefor ates: 8
Adare bus fr atenes: 3
Output enable (OE) fr atch: 1
Tatai:21‘The Arduino has 19 GPIO pins and analog inputs, wlich can alo be used ae GPIO. This givas you a otal of 21 10 Ines, exact the aroun of 10 needed to run the
LED cube
But why ve about nwren we coud ust show you?
\Wohookad te cube up 1 an Arduino and portad somo of ihe cotwara
Since the muliplexer aay and AVA board ate separated by a ribbon catle,connecine the 0 nes to an Arduino is a simple matlrof conecting some breastoard
‘ites. Luckly, we slgeted ia female 0.1 pin header forthe transistor lines wften we ware debugging ie rst eto tansistrs cust remave the AT mega an connect
vos tom Ne Arduino to ceo pn headore
Wo connect th cube Ih ths: DATA bus: Dig ins 0:7. This corasponds 19 PORTD an the ATImaua928 on the Arduino boar co wo can uso dct port acooss
instead of Ardunos digtaWite veh is low) Actress bus: Dial pre 810. This corespords fo POAT 0-2. Onthis we HAVE tose diet po access Arnos
otalWete wouldnt work tn ths, because you cant get mule pins skmutancously. the acess pins ate nel set a he exac ame me, the CULT oe 74GB
woud rgaet the wrong leis. Output Enable: Dig pnt, Layeransistors: Analog pins 0-9 and Gg ping 12 and 12
Wea to goa it outside the scope ofthe Arun pation. The intention of Arduino iso use digit
cher reasons, We haste estep that andascese the parle deely In action thal, wera Wo ve one of he timers forthe ner une.
‘Tho rogers or ho ntorupt and timors aro orn on diferent AVA made, Go the code may no be portable Botwoon cforont versions of he Aino boar.
“The code for our quick Arduino hack alachod
ke |
Image Notes
‘Atinega lemporaiy removed
2 Layer selec ines cen be comected to his header, wtnout the ATInega
imentenng,
&
File DownloadsINOTE: Whon caving, you so0 tmp as tho fo ox ranma itt "aru
Step 71: Hardware debugging: Broken LEDs
Disaster stkes.A LED inside the cube is broken!
Wehad a couple! LEDs break actualy. Luly the hardest oneto get o was only one aye inside the cube
To remove he LED, jis ave a smal part needle nose piers and put some pression the legs, then give I alight ouch wer the sodering on. The le shoul pop
ght out Do hs fr bot loge, ana it ou,
Ineering anew LED isthe bcky part. Reads tobe as symmotcal and nie a the eat ofthe LEDs, We used a helsing hand io had tin place while soldting. went
"urpraingy well and we ear even see which LEDs have been replaced
Step 72: Feedback
Welove geting ledback on ou projects! The dx LED cube has received tn of teedback, and many users have posted pctres and ves ofthe LED cubes,
Ityou olow tis nsnictabe ardmake yout own LED cube, please post picture and video
(Oh, and dont forget rato this nual you hed it)
‘As acken of ratiude for al he oteat feccback, hres acolage cf some ol the feedback on our dust LED cube instucable:Related Instructables
8 a
Z
: LED CubeAxtx4 LodCubedatst LEDCIBeRI Megs —— 3DLEDCuely HoWIOMK died Road Folowng
[ by chr (wideo) by bajgk WIth ATMEGAS flexible ring ot Scitechwa. ‘atmega and Robot Tweety
Memory lod LED's by attiny avr chips BOT" by COH206 +602, Photasynthedls agpens in two stages:
“Tho dark andthe ght Fes ne light stage whore. as the namo mplise. the cunight & noadod. What happens is clecrens aro taken om te walor melocula and
{Este n photosystem 2 Then the elestons are Wenspofied down uhal i caled the cron anspor chain. This chainis nating more hen a series o xan and
‘eaieton teacion hat progressively bing he elerrons down no less excited sat, One the electrons Nt phates) stem 7 they’ are exeled again ans go Gown
‘gothor smalor lotion vansport ean. Whi to elscane are moving rom amore sxctod saioto a be oxciod cto thoy are alo tuning a subclanc calod NADP +
[Meatnarmde adenine cinilechas phosphal) nto NAP, This Used nthe da sage, alse Known asthe eawin ele. The Caluin Cyde ts & Sere of mad eatons
stating mina reacton wth sting material FUBP (Fibulase bisphosphate) and Carbon donde using a series of enzymes and redox reactions. sealed a oye
‘bocaule ate ho aug le producod ha siring materal AuBP © again eyreezed. For every round ol he eatbor ole thors fe | sugar detwalvo ouput and 2ATP he
Source stor ites energy Soi Takes rounds a the Calin Cycle to create one glucoue mecule There ae 2 lott pants ha ze dierent varabons of is cyte
a
Pat of my exporimartatonis to come up with alow toe BH moni forth col. pH maasuros bate alt by taking tholog ofthe concentration of hysrogon moisoulos
present pHs measured ona 14 pont scale wih 1 being vey acide and 14 beng very basic. Wales rata or 7. measured the acidly of my sol inant home cH
‘that bough an amazon for. The aay ot my 8a was about 6 § when Is pee: or he Iypes of plants am roan (srawbenies, peas asl, toes) there
‘Sproblom wih your pane andthe ertlzer fine t would cugges! checking the peImage Notes
{ist thing to develop is he roots
ascular (conducting) _
Image
1 Whetetne growth happens
2.01 apidormal tiseus
5 uere pctosytnesis takes place
4. Where te water and nutents ae sored ané moved aroune troughs the
plant"
t
2 ma
2 Growinin he roa
Image Notes
’Apleal Bad: Mah longtudal growth
latina coer| Eee,
“is ae Sees
— Sa
Notes
ten Detieency
Step 2: Build a Garden/ Plant Seeds
My garden fina tase bod, Raised beds are when yu pant your garden a wooden fame Batis above gloun eve. The nce thing about ase bedi that they
‘oeasbromairian Socnice hy can Beck wees, Azo, yo lua aver sal have ntend othe sl a ou are Blessed bo ing oh In he case my
Now Englund hous, th infamously horrible col makosarasod bed the ebvous choke.
Building a Raised Bed
Tabu raised bed, cig out patch of ind the size you wart your garda toba, Then bul wooden frame thats the parmterof your garden. A coal rick to put
‘someburap oF pobbos 0 tho Bolom most l2yrof your gatdon. This way the grase wor! grow back up Cough your gar. Pung dawn abotlom layoris not,
necessary and id rot do that in ny garden. However, you have bre tine, i wl save yu tof work te.
nase provided lnk tb a more step by step fms or more specie detals. am doing ths because the making a the garden was done the previous year belote he
fgreennouse propel Here isa great webstefor hese steps
Fp: wova-sctdhouse corse nfo, 181508700 Nun! his provides instructons fra sightly mere elaborate garden than tui
‘sol
‘The msture of sol that Huse ie mature of garden so\and pest moss. 80 mx in some misee roW patng sol. Dump a large lump each sol ino the garden anc
thon mix up wit alge shovel or Yous Aeris mised, spread i out over yaut garden even. This Would be a good tne o test the pH of your ell sure. 1 shoulbe between 65-75. Yu can fest this by purchasing apH sol teste. [bough the Lustr Leaf 1612 Rapitst pH Sol Tester rom Amazon for about. Itis not the mast
peice way to measure pH, but tgves you a nice range. Aso Ih fest has a char with what to acid! your sos to basi or acike
Seca Pinning
Planting Sood i ory cas). In al caso, road ho back of tho packet your soods came in. Thare should bo achar wit dapth and spacing roquomarts fr that parlor
plant Abseiiely folow tse spacing tequietmants or you are going to havea lt of ovtle down the 08d. Also, ony plan ne or bo acs per spot. | made te
histke o planing a bunen of saweery seeds in one pt (he seeds wet so mal andi have about 10 ty st=woeny plans that cant ge! any bigger Beeaue hey
Se onlanglod nesch ober snd here arent encugh recouiezs for thorn al. Right aftr you pan hem. make eute tho 6 thorough most Watering important ars
‘ormmost pans, shouldbe daly: However, the lan ae delete, especall when they are cevauping sem systems a wate caelStep 3: Build a Greenhouse: Step 1 mater
hwo 0 oot ong, neh ater PVC pes
“thee 40 eh long, Ys inch dlameter PVC pies
-Roughiytwenty-ve 6 inch long Zpties
‘atleast by 12 foot psiners clear pater’ plate tarp nm nek
!Waleprooting Tape
Duct Tape
Indsial Vero
Tools:
Hacksaw
Sdssors
Staple Gun
Measuring Tape
eZ
Step 4: Build a Greenhouse: Step 2 Build the Frame
1) Fst we measured my gatden whieh is about 1 square meter (iy | anoW). Then we used complex integtaton and approximation to measuiethe ar length o the
tam, Just edding. We ust used 8 tape measure B eporoxinate and then ust ueed the 10 Toot measurement hat the PVC ce
2) ¥e used the hacksay to eu the ends the PY pipe at an angle so tha! they could be easly stuck into the ground. Todo this, stat about inches fom the botiom ot
‘he ppe and cut aay rom yoursal at an ange
2) Stok both ends of he ppe Ino the ground st oppose sides so that k makes a nice are. We places one ate behindand one intone garden. We measured three
Inohoe fo the lt ang thon anathor trae nee ewvay om tho garden come.
4) Net me placed one 40 inch PVC across the top he cents ofthe ac. We duct aped te ends to the ae.Image Notes
106 ape ho jos ofthe PVC bar
Mee
Image Notes
1 Thsoverhangis not essental. was usta cosmetic choice
Step 5: Build a Greenhouse: Step 4 Lay the plast
joo puoi 28Step 6: Build the Greenhouse: Step 5 Add the back and the door
To aks in end piace we cl smal poc ole plastic ard en raped ove he fae mang suet cout the round. Then we singly usted othe
As wezipledtne back wale nel he pesHe a as We COU. Fre Hoy, Wet ome ack ota he dors ous al the way
Finaly wo elt nt Ron tomske the dacraay and sara the oar wth poco of ape
Welined the det tape wih
Jc 0 that he door can be opened and closed secury
Image Notes
Step 7: Bulld the Greenhouse: Step 7 Make it airtight waterproof
Image Notes:
Tv¥e te pu ie waterproof tape over th holas Rom the 2b,Step 8: Build a Greenhouse: Step 8 Dig a Trench
‘oun he petro the garden up the gass soa! dos ol encroach onthe garden. fle the tench wih ue sine. Then me note smal narow
tench sofa we col il he wes fat cannes te azarae badhuae underynd. We nee io that Decale when ny das us the ew areas we
atm eae caughit We pur ho wires ough PV pps to proc thor For any so of haa damage Vso alr, ot). We on buod the PVC pipe In he
‘Sounatron he deck b he geeiouse (bat ya wa
Image Notes
{The neneh is about 10" wide and 5 deep. The sees dont mate 8¢ uh asthe Bare om he ever ererosehing Oe. E190 Mo bags ivestone ti oUt
tree,
Step 9: Watering System: Step 1 Materials
Pane
Owtet box
‘Oust (2 plugs for water and heat or eur plugs for wate, hea, lghing, an an)
1204 wal pg (ean be hacked trom prety much anything, This ove was fken rom some computer speakers)
14 gauge wie
5 vot relays (same number as number of nivdual out plug)
22 gauge vie
swolenosvaie
vrallwar or gleneld valve (oure wae 12 vals)
Serowetiver
re etter! Stiopers
ake Gun
Fortestng
Arcuino
Breadboard
(eptona small LED tightImage Notes:
Tress connector
2 Valve-youmay need 1 add plumbers tape othe treads so thal the nozzles ion as tight as possible
8: cordto the Wall War
4 Spain’ Connection
5 Hose eonnected o water source
Watering System: Step 2 Bulld a Relay Box
ighally the vale and relay system wae controlldby AC power rom the wall. The breadtoar layout below shows howto connec the vale and relay system using de
wer rom nate. The barery i over 120 and ie regulars 12 vot requir. The solenoid presents he solenois vaNe. The tiny is aeWated by Svots, The 12
“ole com eu of he ragulaor go Lo Ihe aura power and he eay, The Bua tte coming Wm he relay aac he cue grou and a gal ph which eon
the relay state
Image Notes
TBatory over 12 vols
212 Volt Regulator
Sireiay
4Vie
5. Ground
6. Solenois vate
Image Notes
Ho lus vary expaced connocton. SERIOUSLY!Step 11; Watering System: Step 3 Connect the Valve
You edo comec! ths vave ote lay Bo so al tne vals ecive power and conl tie flow of fe water. To doe you connect he vale toa 12val wall
van The wal War eanthenbe Grecly plugged rt the veiny ba
2) strip back th paste oxpoce tn ra and black power anc gr
the back and red wete so ha hey can urap trough teh ve solder tenia.
8) Hat glue the soe joints so that
7)Pug the wal wantin ne rlay ox!
Step 12: Watering System: Step 4 moisture sensors
Irstsoidereda we o eae of to gavenize nas. Ts bx a couple of tes but he secrets to sorape ot some ofthe gaNarzed coating tom where you want to
solder witha kif. Tis hoi ho solr sexo tho nah.
th pin SLED as an oupu " nnereneenen
petues fora gram. We conn
led he nals analogue out O and sees
Then beloytulaneeoebrate
Image NotesStep 13: Watering System: Step 5 Write the Code
Test he nals using dy, pete, and water sawrated sols, You wilwant ocala yout so fo your own waternghablts and garden needs, These numbers are
comileiely dependent on your own nal specs hous
Stop 14: Watering System: Step 6 Bring It All Together
Woh to buy 2 nozzo tha Gannoctd the clonoid valet th hos. The irigaon dtp ing we Bought at ome dopotatached parfait tio otter ond of he val.
‘You can make your oun inigaon ting by buying some plastic or rubbet hose ard poking eles iit. Pug the 12V wall wart inf Be relay box. Mak sure you use tie
Socket hats conected tthe ight auno pots For ou relay box he lop out goes to hebotlam set of wites and the batlom outlet goes to he top se of wes
Image Notes
‘Attach components s thatthe arow onthe vale is pointing towards the
Image Notes:
Teese connector
2 Vales you may need oad plumbers tape fo te Heads so tha the nozles|
‘itor as ign as posse.
Breordto ine Wall Wan
4 Spriniler Connection
5. Hose connected To water source
spur systemthis pat to the deck so thatthe wal
Image Notes,1. mako suo to snake tho inigaton tubing intro garden co that al tne plants are
vated equally
Step 1
Upetboad
Plantduino: Step 1 materials
2 bon cable
3. 16by 2led
4. 10kpotentometer or patience ang a realsor
5. femal baal jack
6.7805 power regulator
7.(2) 101" capactors
£8, Atmega 928 wth arduino bootoader preloaded on the chip
9,28 pin dp soaker
10.7) 2pin Sm pich screw terminals
11. (4) odes
12.22 gauge sold core wre
13, sell to usb een out boars
14. 16H erste
15.2) 22pF thats peolarad not micotarad) capacitors
16. 100nF capacitor
17. (8) 10 resistors
18.(11) female ph readers
19.(17) malo pintoadare
20, ato, broacboards never hurt
[you wil aso need sensors but these ave not technically part ofthe plantcino)Step 16: Plantduino: Step 2 Schematics
\Wehave broken down ihe schemates so you can check them ou piace by piace F you cart make out he mages, goo revlab com and check out the large mages
‘These schematics were made uit Fizing Fieri a greet opensource schematic! pe and Preadboard ayo progr
‘Te textin each seroma reproduces below
Pture 1 (Analog sensor) Connect pins 23, 24, and 25 to ser torminals at show. Thos pins aro tho analog pin usod forthe consors (lst omporaturs, and
igh). Fis 1 ohms. Do not connect athe sensors to the same screw fina. Threeterrinals each wih two sockets are needed iocomectal ive Sensors.
Plture 2 (Crystal Timing) The esta and capactors connect to pins @and 10 as shown. These willhelp the micocontoller keep proper time. C1 and C2 are 22pF
‘Te crystals Tekh
Ploture 3 (LCD pins) Ths powor ard ground on the kl of ho LCD inthis diagram cupaly owe othe Back igh. DBT. DBG, DBS, and DBA communicate withthe
rictocortolier display text Va she contsst in. You wil have o experiment uh deren! ressors 0 see which ges you" LCD the Desi cortias. Yau ca sso Use
210 potentiometer you mish, The LGD lve eornectes fo Arduino pine 7.9.10, 17. 8nd T2 which are shown here onthe amega pn 13 through 18
Pleture 4 (Powor Regulation) To power plug is supplying 9 volts to tho 7808 power rogulaor. 9 vols gooe "IN. The ground of tho 9 alt power plug goos to Bo mica
“GND pin ofthe regulator. "OUT" suppes §voks fo the merocontola. C1 and C2 both have ther regaive leds connected ground. The wet plug and
rictocerraler share he same ground. G1 haste os Wve lead connectesto Svat. Ge has le psitve ag connected 195 vols BOING and 2 ate UF
Dont frgeto comet tne power and ground an the other si ofthe ctip!
Potue § (Programming pin) Tho atrows above are mal headers used or reprogramming the Board. Bis ground. 7s vote. & TX. 2 is RX. ierasel RI i 10k
‘hms 3's oBn
Plture 6 (Relay pins) Connect pins 5,8, 11, and 12t0 thei own screw terminals as shown wih pin5. These couespand with arduro pins 3,45, and Band willbe
used for contoling he ays.
FFFFFFFFFFF.
FFF
Image Notes mage Notes
A" Canneet pins 23, 28, rd 25 i screw terminals as shown. These pins are he The cyslal and capacitors consect pins 9 an 10 as shown. These wil
‘analog pins used or he sensors (masse, temperature, anaigh 1s 10k hp the mistoenrtaler Keep proper tea C1 and? are 22pF The ey
‘hms: Borat connect alte eeneor othe sare screw ternal. Three eine,
fermals each uth two sockets ate needed to connect al vee sensor,
Image Notes
1 The power plug is supplying 8 vols othe 7605 power requltr. vats goes
o "WW" The ground othe 9 volt Bower pug goes tothe middle "GND" pin ofthe
‘gular. "OUT supplies 5 vis tothe microcontroller. C1 and C2 bath have
thelenagatwve leads connected to ground. The power pig and microcontler
owed share the same grourd. hae ts poste load connociodto 9 vol. C2 has he
pose ad connected to vots. SoihG! and C2 ae 10uF.
2° Dont torgetto connect the power ane ground onthe cer sie ofthe chip!
Image Notes
{The power ard gous on the leita the LCD inthis cigram supply poweto
the Bade Ih DB7. DB6, DBS, and DBA eanmunicate wih the mlrocontolor
‘edspay ext Vo ithe contrast in. You wil have io experiment wih diflrent
hp /ivwnw instructables.comid’20-Unbeliavable-Arduino-Projects‘editors to see which oles your LGD thebest contrast Youean algo use 910%
olentoreter you wih, The LCD wil be connected to adn pie 7. 8.2 70,
Tfand f2whieh are shown here onthe maga pins 19 trough 18
F
EEEELELELLELEL
FFFFFFFFFFFFT
Image Notos nage Notes
{te aus sbove ave male headers used fo veprograring he bons. i 1. Cee is 5,6, an 12 thei own screw termina a shown with pin
Graine'7isovois. ate Te 2lahRe Teese Fs tOwenms C1 8 Taine. §,TRERecoespond wth arcunoprs9, 4.8, ard andl be ned fr
conveling ne reeys
Step 17: Plantduino: Step 3 Assembly Tips and Tricks
Fora fll ual on making a ganerc arco ono, chock ut tho perdu . The plantduino isan eutonizod vertion of ho portino,
“Tip #1 :Broadboard bolo you solor! Mako euro yourparts ean work before you mek them 6 meta,
Tip 2: Gottrough he pictures and road the igs.
Tip #3: chose a large peroard fortis projet because ofall the external connections. Make sure you laave room in your layout fo the LCD.
Tip #8: Analg np ot onthe right. Dal auputs are onthe et. hs because the analog pin areal onthe right the atmega eh
“Tip #8 = Star wih to pow supply. This wll datonmine where you place olhor components
“Tip A Whle soldering the male headers tothe LCD risbon cable, keep them set inthe female headers This willpevent them uisting around in te hested plastic.
Tip A7 Woe every component is importa, be 000F capacitor and 10k esisor coming Wom the eset pn (pin 1} ste absoltely vial! Your plantduin wl not program
vot thm
‘Tip #8 : Connect the LOD wires onthe backside ofthe boar! lt illsave a bi of space and make it possible to examine your board for more than live seconds without
losing normal human cognitive ay
‘Tip #d Ths power ackulsave you spse | got the large one tor he sake of shipping costs.
Image Notes Image Notes
taimega ri}
2° LCD hookup pins
3. analog sensors
relay oupuls
5 programing cablesImage Notes Image Not
Power regulation TO resistor goes tom e32 pio to 5S vos
2 DO not fgets 100nF expnetor you need ft allow programming
Step 18: Birdhouse: Creation and Installation
Wobovoht abichous om tects rat Sore pul fhe eletnicein. You can use whatever erlosue you el works fo your heme a ehonmen. Hore
vinotwesd
Nate
"wooden house ed holder ualned: Michars Cat Stara
Ot pant
Pamrisnes
Dat
Screwier
ai an 320)
Serow (ay 824
Hagan
yoo Shot (16 inches by 14 inde) om Meal sera taro
Flnges: gt rom home cept
Magnetic door casos: Doug vom nome depot
‘isa Pst Poctate onclope
Stops:
1) Pain he Birdhouse: We used ol pains Because they are harde forthe rin Wo wah ot. Be warned hey take avery lang tne to dy.
2)Cutthe doors: Using a hacksaw oul doore ou of 2 pice of plywood:
5) Altach the hinges- | bought apa of ealy smal hrges at home depot. The screwed on side of the bichouse ard then on the sie o he doors
4) Glue.on he Kingnete Oao* Gina The magnet aap keep Fe doors shut Howeves the agree ate very song. YoU can natense nr decrease the force of he
!magnat by ming ine expacur ne magact ad tie dasp have. Wo jut hot elued thoes two ples on
5) Weathorproof fe birdhouse: We used tne plssticfrom alse lest porfolo envelope 10 coat he windows and oer exposed areas of the irdhouse,
6) Cutales We sed 9 its two Poles no he bio othe birsrouse an two nthe secon story Foor. The oles on ie bakom Foor o he Brdhouse are for he
‘ne rm th nae and tho thormita in ine groeniouse thal are cones to tho Garduino microcontroller. Tho wras comectng tro rlay box io the miro cotolor
{ough ther oo.
‘Nal the srdnese to a aut spot- We nale the trahouse othe Suppo beam on my deck. We nals the bottom ard the back to make sure wont BOW ay.
5) Put tho rlay box ints ho brdhouse. Wo putt io th batiom Toor. We sung tho power crdthrough ono o! he windows ofthe huss.
9} Puttne mezbeontellr ito the bax, We puttin te top fortS that he pig am the relay bow cous wench the
extension cordCreating the Birdhouse MotherboardImage Notes
TURD screen displaying temperature and wating status! the genhouse,
ineuding Cass and readings.
Image Notes
{Transparent pase protscting the soon rom watr damage
2 snake cores tough the windows
Image Notes
‘rk sure eoake the gation woing inthe gardon go that althe plante
sre watered equalyImage Notes
{otpaint nat running oven in tho ran
Image Notes
{plac the moisture sensors a place thats representative or he ene
ardanStep 20: Video
tps toutes UMgt59
Step 21: Final Thoughts/ Additional Reading
‘ing Light and Temperature regain
This ine shows how fo include photoresisors and 10K thermistars as analog inputs. Using these tao you can egulate theligit and emperative ofthe greenhouse
For mote Information:
On watorn syetome:
‘On lan bilogy botany
Wy plan Biology textbook
Onstecroics
Mae Magazine
On Aran
Aduino Blayg-ound ae forums
Related Instructables
‘Solar-powered BB
wins Greenhouse The Arlee Arlen
sutonomous — freaihg——Sirmate Cont Wester ston Astro Game
saabone System Prevew /Thermosietby by sancti” Sapne
Feceryoy 6067 hogy parceThe EyeWriter 2.0
oy on December 1, 2010
The EyeWriter 2.0
‘The EyeWrter la low-cost eye racking apparatus + custom sotware tht alow gat untersand aes wth parlyale suing om Rmyowophe Lara Slersis
raw Using ony thle oyes.
‘The origina design, a shown ere, ested spar of glasses as the basis or the eyewrter desi
‘Since tat video, we've been Racing on ana developing the project. and wehave anew design, which we've eae eyewtter 20° which mproves the accuracy of
tho dovco, and alow for poopie whos neads are moving eighty to also uso an aye ack. The orginal eyowtor, designed lor a paralyzed Grains: TEMPT'. &
Assigned be woman acomplslely motonless bead. The 20 design, which uses a camera ardLED system mouried away om Me head, can be used by people,
\whose heads are moving sigh, such as MS patients, and people wro wear gasses, ce
This eyourter system & cheap, and compleicy open source. Althe momen, t costs about 2008 in pars. Tradional conmmerdal eye tackers costs between $9000.
$20,000, 80 th ea magne af 3e cheaper, and is designed io hepanyene whe wants ot need an eyerackor
‘Thi at, weve been showing ett and demeing he2.0devee~ checkout he eyewrter2.01n action ~we even hooked itupto 8 faboe an, toate he anwork peApe
make wit ar even
(The 2.0 vies was designed wih heb snd inp om Takayukl to, Kyle McDonald, Golan Levin and tuden’s ofthe eyeuriter collab at Parsons MFADT. Thanks ao to
the Sudo fr Greate Inquy/ CMU or hasting a sesso tor development)Overview
The basic idea approach stat wel be doing a fewthngs. Fist, well be mating LED luminal forthe sides of he Scien and the center. Second, wetlbe hacking the
PS3 eye eamera'o get he vertea syne (when te Fame 0! vdeo s lng taken) arto mae enatve tof. The We' be programmng Ans Bung te Arun |
‘rut fo conto! tho blinng Final. wal satup the Bago for tha eystom and go though the basis of tho sofware
Fiom a technical perspective, th 20 syst works by strobng 3 IF luminators every fare. On even Hames, uss te cater luminal (loca around the camera
lens).ans on od ames uses th 2 sie lum nals. On even ames, Ne ul appears gh, ree the 1 igh is actualy Beundtng of Ihe Bsc of your eye. ke res
‘ye lael On odd ames, yout pup appedte dark. Tho difersnes Bewwean the two lowe us slate and tack the pun realtime. Adena, the gine relletione
ol he Flluminaors) ofthe da ame are racked, ard nese, ps the no oo the pupil, cal rated i screen poston using least squares fing process for an
‘eqn that provides a mapping ot gt bupl poston to soreen poston.
Parts list
‘o begh wih, we wil need ata umber pas o make this 20 dees. Please see this mage a get a sense co! what we wie working wth, as wel ais detalles
par tp!
download detailed parts ts
‘Software - openFrameworks & EyeWriter
“The By ewer 20 requtes a few places of sofware fr building and runing. In hi step we wil explain how lo dawnload andinstal an IDE, openFrameworks, andthe
ceyewtter sotaare
A. tegrated Development Environment IDE)
+ An integrated development environment (IDE) fe software application that provides comprehensive facitis fo compuer programmers for software
development
* Download and install an Integrated Development Environment IDE) to run openFramewors i necessary,8. openFrameworks
+ Opentramenora | tne create process by providing a sinple and tive tamer or experimentation.
a cee itary seigned oases
+ Download and install opentramenors # nscessary
+ Git ¢ awet-bases nosing serine ox projets that ue the Gt eatn contal sytem. a plan that alows people to exchange ane share code.
Visine EyeWiter source page on Citi,
CClek Dovmoad Source on the fp ight menu
{Ghoose 21 format.
‘Aa downibad i completo, unap th lo and place to “eyowitor-xcosau felon oponramemarks “aps” fold.
(Open the "apps eyenstersoecnondeyeWhie Tracker MlemoteeyeTrackerxeodeprof feto es that al mstaalions ate working corecly. The soute= code souls
load In your DE sonware
+ please be sure youte coming er your curent Cparating Systm [the ayewriter stare was originally compledor OSX 10.6 so you might need o change
Eompling fram basa SDK ta OSX 106
+ Buidand Fr the source code, The Tracing sereen shouldlond in vdeo demo mode
Step 4: Software - Camera & Arduino
‘We will aiso need to install two addtional pieces of hardware. Macam wil allow our PSS eye camera
Permit our physi! hardware to communicate with our software
and the Arduino software will
Instating PS Eye drivers
For Mac:
+ tugcam i aarver fr USB weboams on Mae OS X I lows hundreds 0! USB webcams Jobe Used by many Mae OS X video aware appleatons, Since we are
using a PSS camora tis coftware wil alow our computor: reognizo the hardware.
«+ ounload the acam diver ftom SouresPonge itp. surestorge, nolo ectshabear- osx evs 2000-09-25macam-s-bul- 2009-09-25 2pldowbo
5 ater cownload is completo, unep he tie and place me maa componente Ino your hare erties Libary Quekt me! ele.
For Pe:
* donmboad the GL-Eye Diivortp:codolaboratories.comdownloade
Arduino
* Arduino too forthe dosign and dovolopmonto! onboddsd computor eysioms,consting oa impo opon hardaare design fora single board microcartvler,
{ith embedded UO support and a standard prgiamming language’
+ Download and nal the Aduine sofware, hp ness cen MainSottaay
2 Follow the Geting Slanted te yee unfair wih the Arcune envronment.Nip/arduinoccle\ GuidlMomaPageStep 5: Load Arduino sketch
inthis step you will have to load the Arduino sketch forthe PS eye camerato work.
1A. rduino Sketeh (Only for PS Eye)
+ Load Aduino Eye¥iterekotch "apee!ayeuriterxsaxadeyeWrtorrackor'StobeEyalSieboye.pde"n the Aching IDE eolware Thi needs tobe dene in
corde tha the eyeitersokware car recognize the haraware,
+ Siinyour Araine Board conrested. upload te sketch 9 You" boar, Follow the Getting States tes i youre untamiar wit the Asuna envFormen
hnipv/arduinoecen Guide HomePage,
Step 6: Hardware: Power Adapter
Power Adapter
Inti sep yu wl ut the wre fa power adapter to power your treaboard
Cp of he connector ack your 7.5 Volt Power Adapter. see image hore
{Use a Volneter to deermne the postive and nagative ies inthe adapters exposad core,
Using shot erp of red and back wir, soir ord mio to th adaptors postive wra, and cldor ha black wo to the adaptors nogatve wits
Tape the exposed wis Separaiely io Keep postive and negaiveapar, her lape bo ogee fo ensure no wire is exposed.
Image Notes:
1 Using a shor strip of ocand black wi
olor tho red wire tothe adapter postive wire, and color bie Back wire othe adapa's negate wi.
Step 7: Hardware: Infrared LED's
IRLEDs
* Gather nord (18) LightEmiting Diodes (LED) and ama rund Printed Cie Board (PCR)
{To bud LED arrays on ne PCE youlneedto knoe ihe pastve and negave ends of each LED. Genetly speaking the ger eg ot the LED ere anode
(posite), and the shots legis he cathode negalve). coe F090 "et
(On most LEDs, thee wil also beat spot onthe cathodes se of the lens.
From overhead axe noe of when deco he wre bond pons ‘eave pale ma negative
+ Soup actoultcl¢ LEDs nso, nparall uh anor Soto! 4LEDE in eories. coors hos Clip theloge of be LEDS and solder tom together.
Seeimage here
+ Aer saerng he LED lg togenerotrm the cut, solder bout 2 et (50 centimeters) othe red & geen nercom wire tothe LED outs postive 8
nagatve ends 20 nage Fore
«+ Toves\ the LED PCB panel, bud the creut below. Look cael se i your IRLEDs are gluing asi red. sex image hete
{ter eontiming your If LEDs are worn, cove the back of he LED PCE panel wih ot gl 0 Keep alleannectors in place
* Ropoat sop 1-5 sknva to eesl ster LED PO pana,
= Using a arger round PCB, carey dr press aha it the cent of he boar see mage here
© Ontre ore im of ie PGB, bulla orc o para seis 4LEDs insets. The plement of te LEDs should alow the PS Eye camera oft through smu.
thou the cams locking the LEDs ee age hve
«Aer soiering te LED leg togener olor the eeu, slder wing o connect ll pee ends together and alld negative ends together, puting allé LED
2 pata see image here
+ Solder about? fe! (60 centimeters) of the rd & green inrcom wit to the LED cas postive 8 negative ends
5 Totes! thelamger LED PCB panel, buld the ck bebw Look caret to se if your I LEDs are glowing lait ted. see schematic here
+ ater ontiming your If LEDs are worn, cover the back ofthe LED PC panel min ot glut 9 Keep alleonnecons in placepony lens/case
Wire bond
Reflective cavity
Semiconductor ie
{nv
font Leetrone
Flat spot
Anode Cathode
Image Notes
1 From overhead, ake noo ol which dretlon the wirebond pote retatve 12
pasive md negate. Setup aciout ot LEDs in saves, in paral wth ancther
Seto! $ LEDs n sone
Image Notes
{To bulé LED arays on ho PCBS youl ned to krow tho postive an
agate ends of each LED. Generaly speaking the longer lg ofthe LED isthe
ae ipastve, ard he shorter eg & The cathode (negatve)
Image Notes Imago Notes
1p the egs ofthe LEDs and solder them iogether. {Aller sobering the LED legs together io form the cel, slder about 2 fet
(Oeentimetrs) ofthe rea & green intereom wire oe LED crete posve &
agate ondeImage Notes
{After contrming your FA LEDs are working, cover he back of he LED PCE
inal with not guo to kegpallcannoctone plac,
Image Notes.
1.7 foe Iho LED PCB panal, bul ho ciel below. Lack carotuly to
your FI LEDs are glowing a aint red
Image Notes. Image Notes
1 Using a largo ound PCB, crotuly dl ross ol nto ho conor ofthe 1. tha our rim othe PCB, build. ccut of # paral ots of 4 LEDS in
Soar Setos: The placement ofthe LEDs should all the PS Eye camera tof
rough snugly, who the camera leeking the LEDS.Image Notes
{Alter solering he LED legs together to fm the cet, solder wing to
anvil 4 postive ond agethor and 4 negative ande ogether, puting al
‘LED sete inparale
Image Notes
1°79 toe Nalargor LED PCB parol tld tho creat blow, Look caralully to
see your F LEDS se glowing faint e.
Step 8: Hacking the PS Eye camera - preparing
Ins step we wil a about how 1 ke apart PS Eye careta Tiss necessary for youl be able to replace the ns on the camer, inert tare eta wite
the veyne
+ Got a PlayStation (PS) Eye camara. Use at your own sk because the camera wll undergo modifications voiding its waranty
Pry the tur paste serew caps athe back hecasing see mane hove
* Unearow te ou serams undorncath whore Bo srw eae wars. Ksop thes saws because you wil ned some lator.
Wall four scr removed, pry ol! he back hat ol the casing A lathead screweiver and hammer, o a palo! pointed prs should work. R requires signfcant
force so be very care not o damage anything inside or hat yourseF.ae= nage hare
+ Pulte cord asdo and Unecrow tis two bolo screws bose ths plac hoi. Kea those eorewe ako. coo insgo oro
* Romave the sand pleco
* Unscrew te fe sarews sound the oats (two screws onthe sie, thee sews ontop). Keep these screws also. s2e mege here
Wha tie cerowe removes. tt the board ou of to font easing
* Thote ae four microphones 2cros the op ol te boar. Using wie cuts lp of the merochones because they war be used. sce mage hore
{+ owine PS Eye board prepared 0+ wing. The ext sap wil eonneat rng Yo the Vercl Synervoneaton (Syne) ard Ground Jonson the PS Eye board,Gd
Image Notes, Image Notes
Get a PlayStation (PS| Eye camera. Use at your own ek because the Try the Tou plastic screw caps of the back ofthe easna
——
Image Notes: Image Notes,
Mifare he ou scans nseneathuere he sew cos wee Keep 1 vi ah four screws removed, py of
Image Notes Image Notes
TTPUl the cor aside and unscrew the two bottom screws beside the paste. Pul ha cod ase and unserem ihe two bottom screws beside the plasticImage Notes
{There ae our merophones across he top of he bow. Using wite cuter,
‘ip aF the microphones Hecate hey wor be use,
Step 9: Hacking the PS Eye camera - VSync
brs sep we ul go trough geting the wsync of the camera. The wsyc i an electical signal that comes from te camera which communica the camels
reviesh rate, Geting te camera's ye sea for this Sppeation fo work Because Ie the ony way We car match the camer’ eres rte our hivared
tds.
+ Locate the Ground joint an your PS Eye board. Some PS Eye modelshave 5 jins neat the lens mount et image below), whie some haved jos (ight mage
bebu), your magel has 5 pints the Ground in @ atthe eng essest thers mount your model has Jon, the Gouna pineal ay We end ese fo
the ene moun and woe ae wde ae te oer ots, s22 age hee
+ Cit about? fet (0 centeneters) of your ol itreom wre, and spi he ced and green rom the black and white
© Spite rod and roo wiro about 2 Inches (5 cont mots) Farm one er, and sfp of a smal socio ol ngullion at the and ofthe green wi. The groan wire
wl be soldered othe PS Eyes Groundjoint.
+ Cip the PS Eye board and green wie lo stand, snd prepare lo solder the green wire ipo the Ground joint sea piece o hick paper or catdbostd in between
the eps toomn to prevent ectgpoe on tio board coo nage
+ Saiderthe green wie tothe PS Eyes Ground jo
* Locate the VSyne via on the boar ts he ia ciced inte image below_ sce image ee. Allenton: or more recent madel ofthe PSEye came (tenis by
tre godon fm around the boars) fe VSyne hotepot can be found en ho onto ho PCB, reoty aborathe R19 rosy soo mays hota, Vary REsonty 3
newer model was az inradsesdin the marke (v9 2)ecs on o Wenlly in hc mage and how fo fd the vSync gpl ths maa
+ Using a sharp kate, caretully po the sale tp one via nd serape enough insulation coating to exposete metal cana! below. soe nage here
1 ‘The red wire naade o eonnod ote exposed Synevia, Bu the wre ke (o0thek ob soldered neal Yo the emal wa, co 420 gauge mie wll be used in
between Sip the ends of 92 pecs of 90 gauge wre
+ Shorentne red wire, then sober ore end of te 30 gauge wre to the end of he red wre. see mage here
Bofors coldring ho 30 gauga we io V-Sjne. 2 ost shoud bo porormad io eneurs all cornoctions ars corel ull ho crc blow. Win ho 30 gauge wire
contacts fhe VSyne va the LED on the breadboard should fever rapid, seu schematic ate
+ Using tin 0.022 ncn (0 56 imate} solder, caretuly soir tre 90 gage wire fo Te exposed V-Synevia. To contin, ensure the LED on he breacboarais
fewerin.
Image Notes Image Notes
1 Lee the Ground on: on your PS Eye boald. Some PS Eye medels have 5 1 Gu Abou 2 fet (60 centimeter) 0! your cob iercom vite, and spt he
Joins near the ers mur (ut mage below, while some have 4 pris (iat Fedand green forthe back and while
‘mage below) your mode! has 5 pins the Ground int a the end closest to
tholone moun. your model has 4 pints, the Ground jai algo at ho and
closest lo the lane moun, andwice 35 wide a8 the other osImage Notes
T' Local the -Syoe via on teboard ts the va ciledin the imagebelow
Image Notes
1: and serape at
Image Notes:Ss. Before soldering the 90 gauge wite to V-Syne, ats! should be perlrmad to
neue al eornectons aro oro Bul the Greul low, Whon tho 20 gauge
Image Notes ttre contact the V-Symc vig, the LED onthe breadboard shoul leks api
1the reir needs to connect to the exposed V-Sye via, but the wires too
tick to be Solaeted neat to the small va, s0 8 30 gaugewire willbe used in
Between Stipe onds ofa 2 piece of 30 gauge wie. Shorten he red we, then
sober one wd ofthe 89 gauge wire 10 he endo! he ed wre,
Step 10: Hacking the PS Eye camera - finishing
merabeckini one pee.
2s okng the ens i place. Be careful roto break bie facile V-Sync connection. Detach te les ad hagp bath screws. soe nage here
4 Hensute me square ppenng at te new iene mount Cut a sure om the iter sheet thay i mitely smal, andpiace in The lens mDuN opening. see
image hore
+ Wintne erin lace, sezew in the new lens mount. This wil require some totes, and one seven willgoin at an angle because the new ks mauris aie 0
tig for the board. see mage nore
Setow tho ln nto to nev len mount onthe boar.
Use hot gis tosover and secure the VSyne conection se ge he
Image Notes Image Notes
{Unscrew te 2 scraws holding he lan in place. careful otto beak he f Maue the equate opening ol the new lis mount. Cut a equate from the
fragile V-Syne conection. Detach the lens and kes both serews. liter sheet ha is murufly smaller, and pace into the lens mount openingImage Notes
Trt te ter in place, serewin he new lens mount. This wilreaure some
totes, and one sere mil go h at an angle because the new Irs mounts ile
‘000 he boar
Image Notes Image Notes
1 Sere the new lens info the new las mount on the boars 1 Use nat glue to cover and secure he V'Sye connecton
Full Circuit
bts sep we wl show howto put together the cieut on the breadboard Thisis the ina stap to geting your Arduino fo work wth ihe ayer sofware
+ Buldihe creatine setemate below 22 hora he
ator sscomblng tha ful eu he EyeWor code ready for va camara input. To awit frm video domo made to lke ¢amra made, open tho
‘aopsleyeunter secorcleyeWite TackerynidtarSetingenputsetengs xm, and et the mode tg ort 10
+ Open the "apps eyonnter ononaneye Wier rackeremolecyeTracke” xeadepr te, ard Bid ard Au the sourse code, The Tracking seen shoud ond
whi ngut rom tha PS Eye camaraStep 12: Building a wood base
In his step we talk about bulging @ portable wood bate. Ris inferestingt bu this eo that your system can havea slab inkastuctue fo rest on. The makes easier
ores,
allorae. ana wore wer the eyeWeter
lit of matarilsparts needed forthe base:
2" 5/6 wood ods - approx. 20 nches long (A)
2° 116 wood rods approx. 1 12ineh ng (D)
420% 4x 2nd wood piace @)
23:01 Sux 1 4a neh wood pces 0)
Sl wth approx. lameter of te wood ods
sep 1
igh the 2 pieces (C} wih he thtd pice (Cas shown inthe picture, lamp them together and cil trough them a approx. S/dinch close othe edge. see nave
here
Sop 2
Using the wo pisces (C) that have the same hols aligned, pace each of them on the edges ofthe pce (2) clamp the aligned (ae pete fr example) and ll
‘pole trough tem about 1 1/2inen ceep onthe) pees
Use the short wood rods and pu ther rough the icles in the piece) edges and trough each ofthe pieces|C) see mane iste
sep 3
Yellow for Napey
2 Pinktor Love
White for Fear
> Green for Envy
Bluotor Sachse
Example search terms fo find tages that may express surprise
© “unbelievable
iran unexpected high umber of ees of a particular ection are faund then the LED wil ash o alr! anyone nearby to the possiiliy of abig worl event that has
‘caused ns unvsaly strong emationalrescton
+ Auerld disaster ant may Hash ue or Red inceating t best o check a news ste to see why everyone's so sac anctor angry
inesttong tavourte toes 9b football game, tmay ish Orange 1 express Ihe suprise at hie unikely event.
there's host wave inLondon it might urn Yellow frelect iow uch happier people now are
1 tashes Whi. ine callecve human consciousness fs esing extreme fear and something temiyngly bad i pbaly about to happen. Tine ta he andor
pani.
Uses
* You cout putt on your desk to oot aneary warning of something big happening somewhere inthe world
{ Aliteal mood igh ata party ora gam wtereby you quess wat colour ull change nes arc for wha reason
Awad mood baromair parhane nox o you bod fo deca Ite boat o snooze unis ase angry outdo
+ ‘Agauge of puble sentiment io heb you decide when to sel all your socks and share, andhead 1 the hls
Sot tt connect to any witless notwork and cary Lafound inthe srSts, topping sangre to explain to thor at you have managed o capture tho works
mood snd have t locked nthe hee Bok:orl;D
MO.o:D
Step 2: All you need is...
ordered most of the ee
hol tee of charge
Maeris
+ Arduino Duemianove
tly Sheia wer sparkun comcommercerodt In
2 Broakaway headers sparksun om com mera ph
2 subatiry
94to Batol Jack Adaptor
2 Simm AGB LED
crestor (2100 fm, 1x180 ohm)
2 Wire
2 Sina pred cieutbosra
© USB Gable ao Bo cornet Acino to computer
> Rosincore solder
2 Source code
The Acrylic Box.
#140645" 10257 -thoiop
3 a5 [a75% 475x028") the 4walls
© 1x (est ea 5x 0.259 -thebase
$14(65-44.571 0.1287 - tho izor mia 6mm hole dtd in mio
#416253 10.28) ined inside walls,
here solvent coment
+ Sad paper to hole tua ho ght)
Tools
+ Saiceringiron
© computer
* ‘rduino development cnvitonent
© ‘Rurkoloss network (202.1819)
Plots
* Wiro sxopor
set nk
‘Tho Arduino dovslopmen pos can bo download trom hore:
vmunvard olen Man Sofware
nd Arduino tons stat here
Pp:ardsino eter ue: HomePage
Arduino JW
ip: aruino ese TutonaYSPIEEPROM
ip er Lammer ies neammino'saral ust.
hip:iomw sparktun conscommerceutrda io pip7utoia.
ones tom Sparkiun, and gcked up the rest rom the local Radioshack The
le got rom a local plastic shop) -they cut it and ied apiv spanklun com dalashosteSComponentsSMDIsc16is750 pd
hparmna spatun comdalashestsAVveless WiFIWIFHGSKum pat
ptr searkion comaelasheeteWiteles Win 1:31G dep
hpAemu secelyotebots.comicrocortlier vat sm.
Related
ip stanordectveoursesex224n'200822 pa)
muncbcorvs.com corp doce woetool seni. nm
news stermorgmooatuiter-mooct eae
‘communi openamly comvcantenvdoes aspx
vwuninetrctabes com d/Tho Twltrng Ofice Chal
Image Notes
Wity Seite
Arduino Dueri'anove
aa LeD
Broakavay neadore
Sa tesstors (2100 hw 1<180 ohm)
94 airy and Baral Jack Adaptor
Phere
Wire cuters
10.USE Cabo Aw
11. smallprinied crcl boars
Image Notes
Msouer
2 sote‘ng ron
laptop
Image Notes
frise(S'x 5" x 025) - the op
Bat ayer 785 O25) thes wales
2. canspaper
4 Acre solvent coment
5 ax (425% 1"x 025] the inside walls
61x (45 <45"x028) ho aco
TA x(45 24.5°x 0125) -the miror wih am hole dill he idleConnect the Arduino and WiFly toa computer
Spaktunhave dcer ‘alonhon odo
Fat, the Wily breakout board need fobs stacked an fap ofthe archi and the RX, TX, Vin, Gnd, gin 10, pin 11,pin 12 and pn 18.needed tobe connected. used
byoakaway hare and colored the requred pine.
‘Connect to scomputer using sn Ato B USB cable,
‘Shock that you ean compile and uptad a samo program by folowing tho instructions har:
Iremerrbe toast he board and COM ports covecty)
duno.celar Guia HomePage
Image Notes
Heotsred RX, TX
2 Sobdered 10.11,12.13,
3 Soldorod Vin, GnaStep 4: Connecting the LED
Only Some prs provide bt PHAM [Pukey madaton)
"Ts ves 286 slop conl om ut of (0) fllon (283) reach fhe ed, Green ane Ble channes ofthe LED
PWM pins onto Arduino ae 35:89, 10.11 (600 ww 2rduno.coeniMainvAinoBoardDue)
nove)
used, § and
|sed the pliers fo bend the lags of the LED, ancl mourteit onthe eet boar Each resistor is hen mounted next to each ofthe AGE lags, and the wies ave wsted
logathor. Ton | addad tha 4 connactng wirceand twitod nam. Final, colored al ho comodins.
Noto: Tho pictues tutto using ho 6am rosea or each colour channel, but should have usad ho rsisanea loves in ha data shost:
180 Oh for Res
100 Ohm fr Green
100 Ot fr Blue
‘Also note, covered the back with insulating taps to stop any shots when puting ill int the box.
‘Also, om the datasheet, "the Sensor inputs SENSO are extemelyserafve fo Over valage. Under no condtonsshouldthese pins be chiven above 12VDC. Placing
‘ny via above
Ins wl pomanenty damage the radio module and render it useless."
vicing 019 colesmningbasiceh bled. im
ORIGABEC G10 panan to
x
>
Ht anion outst) | >-2)Y\ p12). uo
on 58 Oy |
1180 0bm)
+2400 08m)
+3 (400 ohm)
Image Notes
HP WiAtpins 25,6
Choosing good search terms
“will allows you fo searchfor recent tweets that contain pa our wards o phrases.
You can seareh for tees hat contain any oa Isto phrases by using the “SOR conjunction
For example, nee sa search request hat mgt tna weets that express Fear:
GET coach eon?a-micosecare
VOR im roalysceares"+OR "Im sertifod"sCR "Troll rata +OR¥ "eo ccared+erpp=s08roel_yoo=
| spent along tine fring good search phrases.
‘The search phrases needed to produce tees that
1. vary oon expr686 the decid omation2, very rarely express tho opposte eration o no emtio.
Many search pases that | hought would wotk, tuned ott tno! worktha well when | searched ith hem.
Smileys have been used wih some sucess io exact whether te sentences postive ornegatve. ut Sst hem uss for extracting anything ore.
‘Tho route wih cmloys Is that acmilo can ean so many things 0
Iie ton used, i eeeme, as akind of quale forthe whole sertonc: since poople have to compres el iheughs nts 140 characters, the meanirg can become
amoguous
The smiley ten then ets as a quali that
tis a Fendly comment
5 “Gonttake nis ne wrong way
* ‘iam sayhg eloigoodoye wita smile
hse amos joe
‘Hieow tm Dang cheeky
© dont realy moan ti
Phrases ushg adverbs seemed to produce beter resuts
“so seared” or Toa scared” ie bolo than si eo3r0d" which rtums bad acu: or oxampl, “nt scare
Phrases nthe frst person soem io produce beter resus
Some seach phases give weets tha gest the aio fet the emotion: or example, “teal hate.” en sounes tke they realy ate fullot hate or angry, whereas
‘oer saee contahing the word “hat” ge weet that do at seer fo exprace much maton, kaw do you hat
Hyperbole is your bes tend, ever:
Using pvases with hyperbole produced good resus. Tweets wit “Tm ientied"or“m ptred” in them were generally more lest sounding than “tm searect
Fegardess the aproach Ist nave, but satstzaly, fom my tests, t does seem to work wel
‘Wo teting the code, tid a one point get the harily ominous “Flashing Wha" that ens the wold ie fooling intone far , bul singe Iwas atl ting tal Lan
ide under the able straight sway, bu instead re cauton tothe winds, and went onto Twit fo see what people ware suddenly earful about
The recat tweets eonaning the Fear search sing see op of page) were ltgely retin to alge thunderstorm that ha just sated someuhere near Flv
ityoure merestes, hte are some of hose meets:
‘+ "Ann Thunder fi so sates of Thunder I Help some 1°
1 tm a0 saved fanning now Like 1st tan heme praying
1 -On our way to Naroosces at @Dienay wore Grand Forsian halal and Wee's a voplcaletorm ght now. mere!
{stim nimy bathroom bth rain stops. teed of ighhing ard thunder.
1 tm tontied af thundor sto “hide in comer
semi ot Thunder
{ sireniy was we my becky ring the thunderstorm cause fm realy seated cause of sad experience”
So.-it works! Wal needs the numbers weaking to ignote the worl “tents the shorted fs of emotional ours, and be more concerned wth larger
changes at sign bigger news.
Image Notes:
1 Seay/thpstma. tee comphotostinu_tho_righi9807828324Step 6: Download the code
‘The Alachod WotlMond i cova 4 subrectores oie andthe Arhino skeen WorkMoodpe
“The fou lai need toe copied ino the ruin leary lrectary snd then they canbe mpored as shown
WealdioodiWtlaMood pe (see below) shoul be pened inthe Arcuno development erwonment
You tien need to caret ine "yournetwerk” and your newark password tess. eg,
‘Yoo notwork(mystwork”)
fidetine password Cmypassuard)
“Then the sketch (andlitraries) shouldbe compiled and uploaded! tothe Arduino boar.
{00 ord ro selon HactngiocaryTuona
‘Tho nox 5 programming stops jus ve an overviow of oach o! he components and include the mast notoworhy parts othe courco code.
Update
ityouhave a newer board then you may need to change his
strict SPL_UART_e'g SPL
atc» (050,000,009 0x40),
won:
{iiuct SPL_UART cfg SI. Lat contig = (0160,0x00,0103 0x1)
See hare for more inf:
ipsrum spaniuncomvieutope php?I=198t-218sbasid-2428224244256cR0c7HTEBLA7eAO952AsIana!5
ip: sparktun comicommerceiprocuct Ino php?products. 68357
se nd Update“
{VED setup- ony some pins provide 8 PHIM (Pulse-nicth modulation)
{output wah the anaiogWte) tueon
(shige stduro.eden hee ArdineBoardOuemilanove
pa35.69,1051
“define tedP¥0 (2)
‘fotno groanPin (5)
fdefine BlusPin [6)
Idelay nme between fade updates
imax ade ino = 255 °15 2.8258
‘dof faseDelay ($5)
iva eo
define: netork (your meiner
{deine passuord lou" network password)
‘fori fomotoSorver Chto cor)
const cha” moodNamesINUM MOOD TYPES] = (
=
‘surpise
a
comy
seachese'
“ear,
i
Const char moodintnsiyNamesINUM_MOCD INTENSITY] = (
Sr
“Conair 2b,
i
{th long torn raise botweon nwoats with ematinal content
ivas dlscovered by using the below search irs Over a perio of me,
‘oat tempramentaves/NUM_ MOOD TYPES}
ona
ast
201
baat
ones
721
uot
i
{these numbers can be weaker io get the system to be more or less reactive
‘tobe more or ass suscapltle fo noe or short tem ematona bios, ke sportresulls
ivor bugger events tke wore casters
‘4dotno ometions noaihngFactor (1)
{define mocdSmoatingFacta (05!)
{Adee tmoderata Mood heshole (20)
‘fdorno oxtromaMoodTirashad 4.07
{save batter, pul the wil to sleep fr tis long between searches (ns)
lidetne SLEEP" TIME BETWEEN. SEARCHES (10005)
4 Star coach stngsin lah ogra) memary instead of SRAM
{i nto:twweatduinaco/enReerence!P ROGMEM\/odit TWEETS PER_PAGE i changing the rp value
10g char sting Of] PROGKEM= "GET
[gente s0nq-ielovesjou' Fe rovesher4ORs\Tsveh mOR allem love's ORI mahnebver “ORV aealy loves
109. har sting. 1 PROGMEM = "GET
[euch json?q~hapoiest"1OR 'sorhapp/"-OR'"rosexcited"ORe\Tmshappy\"sOR¢\"woo!"OR WOOK" Erpp-208resul type-racent:
‘109 char ng 2|| PROGMER "GET fpaten pon?q.woW4OFN 0. o'sORVearsbebeve+OR uf'r4OFe\ Une evade a pp-I08reRutype=ecent |
109 shar eving_ st] PROGMEM = "GET
[rene json?’ isha" «OR» realy angry“+OR\1+ ammath"sOR.\ealy hate" «OR "sovangr &op-B08resut_ ype-recen'
‘109. char sting. al| PROGHEM "GET zaten pong. nalBhei'vORe"T macros’ OF.
‘Sinspalousr+OFsiswant "+ ORs wyicants t+ rpp=308recul_ypoarecont
10g char sting sf] PROGKEEM = "GET.
[search onq- timo send ORs Tm hearovoker'ORe! sso supseh"sOR s\T mdepressedsORs\Tseanteslops crying "8/pp=N08re8_ypo=recent™:
‘109. har sting. 6] PROGMEM = "GET
[Seaich song, Ymesnsscared'sOR = imarelly scared sORAVinsteibed"-OR=\timarelly ahah" ORs\s0e seared
‘be sue a change the I you ea the rp valve above
{tdotno TWEETS PER. PAGE (20)
PROGMEM const char searehstings{]=
l
string 0.
sting}
ang?
sting 3,
Sing &
ings
sting 8.
i
‘oid setup)
t
rpp-a08teaut Wpe-recen
pesOteslttypentecen
‘Seri! beg (9600);
olay10):
1
yo le
{create and intsliee the subsystems
|WE'ywil(netnore passmore, SLEP_TIME_BETWEEN_SEARCHES, Ser)
‘WorlMood worldvood( Sara omoserSmoodingFacor, imaodSmooth ngFacor, medoralsMoosThvasholi, oxreme oodTIvoshold tompraroniRaie}
LED le) Serial, fedPin, graonP in, buoP n faceDday),
‘wilearser tater SearshParsenSeral, TWEETS. PER_PAGE)
ily Foeat)
‘har eearcSvng(t60);
vie tue)
tC
Jor (ii = 0:1 NUM MOOD TYPES: ins)
C
‘witerSearchPareor Reset)
‘Tread in new seaten sting to SRAM trom fash memory
‘ttepy_P(Goarensiing (Gar Jpgm road wordl(eaarerStingsti):
bool ok = fale
intromes =O
{sme recovery code F tho wob roquos ate
vie (ok)
t
6k = wily HipobRequostt omoteSorvr,coarchSting, Atte ScarchPareor:
Go
i
Sora pritin¢HpwWebRequost atbe)
ieetres > 3)
l
‘iy eset)
‘ome
1
}
fat wessP etre» hiteSearcParse:GetTwotsPorkrute);
aco cate
‘Seni prin)
Seal prone)
Seal pr tees pr in
Senn prningweetsenan}
rotated NoreerFaeet toesPein.s)
i
i000. 1YPE nonfood = wotsood Comsuscurorttod
MOOD_NTENSITY neuioodntnety -woeoce Como eCurenMacchnst
Seal pri-The Nea fe Won
Sea eriinosdsnsy Ramet nsdn)
Seal
Seal prinooares{tood
Jed Stes nntiood. now ositnsy)
‘eave bay
iy Seat
Tres tio to nox uadta
chleySLEEP TE BETWEEN SEARCHES)Soria grisin)
1
1
File Downloads
Rss
INOTE: When saving, you see tmp as the fle ex, rename it to Wrkdtdoodp}
Step 7: Programming step 1: SPI UART
‘The WFly Shield equips your Ard with te ably to connect 8021104 wireless natn
‘The feaures components 0 he shied at
+ a Roving Network's ANLA910 wireless module
+ Scieis70 Pte UART chip,
transmission. A sei bu
Seta Peripheral nterace Bus (or SPI) is aYour wre" sera bus expable a high tates of da
lous cats to be sent seialy (synchronously)
Lo: one tata tne, rthor han in paral (asynetvoraus)
‘The Universal asynevorous receventranemter (or UART | 8 ype a sy nehronaue recoiveraneriter, a laos of comoulor hardware tha! vanslates dala between
paral and sel fms
1, The PC communicates over UART withthe Arduino though pins RX and TX
21 The Arduino communcates over SPI inthe SPFUART chip on the WFly shel (SC161S?50 SPI+»-UART clip) hough pis 10-13 (CS, HOS, MISO, SCLC
respectively)
a, THE FINI3IG wieless module axcesses network and sendeceive seal data over UART.
‘The SPHto-UAAT bridge use tallow for aster rargisatn speed and to ee up te Arduino’s UART
‘Tho code below isbasedon a number of soucos, but primary trom his tutorial over at eparun:
rau sparkuncomionmerceus’al Wo 319
WE viele Talxng Speskiel Server
(Test tthe SPle->UART brdge nas been se up comecty By wring 9 test
‘areca via SPI and reading back
‘elums tue success
bool WiFy:TestSPLUART Broa)
{
|rPertorm rare tet check SPI >UART bridge working
liwrte a cratacterto the sratohpad reget.
WresjieToRegister SPR, 0:5)
chat dats ~ Road arFroW Fy SPA);
‘idata— 0335)
{
fourntwwe,
1
‘ce
tpeterpan ado SPlsUART en);
feornase
|
FA seesotragst ribs w inte ne S115) UART ge op
set bine oes taORE See WS
vols WFW!:SPL_UART_Int¥ola)
t
Wite8eToReg ser |LCR 0x80); / 0x80 program bausiate
|WrteayieToRegiser DLL SPL Uar_cont Dv.) 0x50 = 2600 wth Xt = 12.286MHe
‘Wr jeTomed sis[DLMSPL Uart conf Divi)
Wires} eToReger|LCR,Ox3F) | access EFA regiier
‘WriogeToRogisrEFR, SPi_Uart congFiow,/cnablo enhanced rgistore
Wri ieToReGiser[LCR, SP1 Ua coniaDataFora)/@ data bt siop it no parly
Wires eToFeg er FOR, 0x06) eset THFIFO, tess! RXFIFO. non FIFO mode
WrilosyeTOROg Ssr[FCR. Ox}, // cable FO mode
Image Notes
{the SC16I5750 SPHHo-UART chp!
Step 8: Programming step 2: Connecting to a Wireless Network
Again ts Is argely based onthe eperkiun uel but Fue removed te deays with wats for response”. This speeds hngs up and sense to eror check
vw spatluncomomercetutal_inf.sip
Send the comect commands to connaet fa wireless network using the parameters used on constuction
oid WFY::ALtoConrett)
t
{elay(DEFAULT_TIME_TO_READY)
FusiX)
V Enter commancimode
Entercommanatios)
7 Reboot o et device into known state
WeteToWFIVCR¢ reboot,
‘Wat UntiRodeivedt Reboot"):
‘WatUnulReceived(*RERDY™)
Fas
V Enter commansmade
EnlerCommandModet)
U tum ff ao ing
‘WitoTEWFICACEet wlan jon 0°):
Wat nilReceived(AOK ERA,
Set authertcatonteve! 10
WrioTOWFI( sot 2°)
WrieTOWEIVCRauh love,
‘Wat ntiReceived(AOK. EFF),
/ Set authentication pista fo
WrieTOWFI( sot")
Wile TOWFIVCRIn passuors
‘Wat ntiRodsivedtAOK ERA
J Seticcapor to
‘wre TOW set":WrileTOWFIYCRIpor_fster:
WatUntiReceved(AOK EFF),
1 Deaewwate remote connecien sutomatie message
‘WrleTeWEIYCRCse comm emote 0)
Wat ntiReceived(AOK ERA,
{Jon wireess network
inteTaWFI a1"
Wate TAWEIVCRKM networ:
olay(DEFAULT TIVE TO JOIN)
bool ok = WaliUrtiRecsived( P="
elay(DEFAULT TME.TO_WAIT):
Push
fox == se)
{
™m prntor>prinFall to associate with:
imprne-spritin- neta)
mmptnter penne ince,
FusteX
‘AuloComect
1
‘lee
t
‘mn ptnterpentneAasociate
EsiCormanchaaced:
}
{/ TODO save his eanturation
1
p
Enter command mode by sendng: $38
‘Gharactte aro paseod uni hie Gxa2t sequence is 6asn any byes are oon boforo thoeo chars, or
“ier tnese cars in 1 Secor window, command rode wil tol be entered ad tnese byes wl be passed
ontoatner se
°
oid WF EnterCommanaMode()
busi
hiey000; Swat ts a hse ve
me pimteanenin Entrng comand mos":
Wierswe yee,
Watunaecsned CMO)
1
h
‘ex command mode
Sendthe"ex? command and await the conftmaton result"=XIT™
oid WIFY"ExtCormarattoce)
t
Weta TOWFICRCEt)
‘WatUntiPoceivedC EXIT)
1
hp yivwnw Instructables. comia’20-Unbeliavable-Arduino-ProjectsStep 9: Programming step 3: Searching Twitter with TCPAP port 80
AIDE ht TCPAP on pot 80
tor examnpe
“Open google.com 80"
‘open a Hip connection o wr. google.com,
‘wilor actualy requites more ef the Htppttocol han google.
For example, the "Hos! elds oan requredin case bete'smore than one
oman name mapped ote servers IP adaess 0 1 eantell hich
‘abate you acwaly wart
“Twill also requtes a fra linseed and carriage ret (40
SGET fot
“Host sewveetn
vee
use sesh son rather than seareh atom to gve resus hy non-himformat, and more easly parse, (628 piviwiter com Titer APL Documentation
Parametor: Th cower to tsna ino the got command tat noods o be sont, acusiom HiniParcor that
'scaled every tine a charac is receive. The parser is responsible for processing the HTML
thats rere,
bool WiFy:#taWebRequeticonstchar* sever, const char getCommand, HinParser parser)
C
>m printer>peintngotCommans
Fusr®X)
FusreX)
{Ener command mode
EnlerCommandModet)
Fuse)
4 o0n a TGP connseton. port 80 for HTTP
WeleTSWEIyC open")
WrteTOWFIyiserven:
WrigTOWFIVCRC 80":
ool opanOK= WaitunolRecsived(COMRA_OPEN)
iT @penOK == fale)
U
> pints-spritn'open por tated":
olayti000):
WetetoWFIyCRCase
‘Wat UntiReceived(COMM CLOSE):
ExCormancliagog:
‘ehuntale,
1
409. GET (soarc,jeonig-teo HTTP.
Wile TBWFIVCRLH getCommanc)
(109. Host searchtattercomre”
WrtoTOWEIVC Host“
Wile BWFIVCALFIserve;
ewe
WilaTOWFIVCRLE(™)
Iinow wai fr the response
intemeour
eal ok = fale
‘eeneOut 5000)! tmsout ater § seconds
C
"W(RcadCharFromiWFi(LSA)& O:01))
{
‘hharincoming_data = RoadGharFromWiFY/RHR),
mm pineesprintineaming daiaB¥TE},
‘oal done» parser »Parseincoming_ dala);
‘one)
{
fk = tats
brea
i
two.
: :
i
fata
Sees
}
usp
Y duconeet TOP eomecton.
‘WinoToEVCRC "|
WarUnanecsned SON CLOSE}
Batcammancnos:
eset the tmeoutreturns:
1
twitter (imemw omen)
‘sree one eaty atin OR wo nexee aeeNe
S244 tha ama ean if | at garg |
stm wo scred ace ed seen whe en pre
a omtermes cr noire ant ypa a ose ea
LANE ME ALONE YOUR! OM exe
ce rm tered pe an
tonsa man au nna ana yan
‘at ino oman en sppatn meme net emanate
Image Notes
Tipertee
Image Notes
too mary tues,
Step 10: Programming step 4: RGB LED
[simple loa fot sting the colour of an RGB LED. The brary il fade between the colours asthe wold mood changes, and il lash its a signticent change in
rood,
Suse
Ityou nd the colours lok wrong, try removing the "255" fom the analog cal
‘Thasfoshibley for lng ths
More in at paw tephenobey com b1o972010051 free wars moae:-ightisng twier anche
end update +
The led ily et be currentGolorD ans over tne wit ace
'o dealer wit atimo dlay fadeDolay. moacured in ms. botwoon‘each step. No eft is made o scale he step size foreach «gb
channe 0 each may not emplete atte same time
void LED: FadeTovint desitedColotD]
i
1 check for valid olor
4 (@esredCobrD + KUM_COLORS |
estedoiotb <0)
{
ogger log iva Cle i)
‘eur
1
li get a tcal copy ofthe colors
‘SBlorcuroniGaie:
cureniColors = Colors _curertColorD
nertColorg = Colorin.curentCalotD.g,
‘arentColorb = Colors. eurentColorD).b:
ColordesiredCalor
SestedGolorr» Coot{cesitedCaeDr
Sestedcolorg - Covresectedo a1D1.9:
estedColerb - Colr(desiedCoioiD1D;
bool done = fase
vie ene}
{
|/move each ag astep cloger'o the desirecColor value
‘eutontGolenr« dostodcoiotr)
{
fumentGolor rs
1
‘seit [curenolor > desteCobe
(
‘aurentColor
}
4 eutentGoior9 < desredColer 9}
i
funentColor ges
1
‘let (aurantCobe.g> dasreeCobr 9)
{
‘uentGolorg
1
4 mentGolorb « destedColeb)
i
funentColor bess
1
‘lot (aurantCobob > dasreeGob.0)
{
‘uentGolor
lhwrte te new rb values tothe const pas
‘2nalegrteim_redPin, 255 -curentCoir):
{halegWrietm reesPin, 255-ctrenlo 2),
waigWrtelm_shiePin, 355 -curentColor®)
‘hoidat this coer forthe many ms
elev adeDetay)-
iidone when we have reach desitedColor
Sone = (eutontColorr = desedColonr at
faureniColorg = desiedColorg BB
funertCelorp a= desredCalor}
Ji wie ono)
Im curentColorD = desredColorD;
}“The 00 ight shouldbe responsive enough to reflec thas just happened in the wor, but tus! not be so ovely sensive 2s lobe susceptible to nose, and also
rot 3e to auggih Yo be lai ning you ofa bg Word ever,
‘Tho important thing ist caofuly normazo and smooth tis dats, ano aust tho thresholds to gvo ha right love aepone wanes and alarm. (o. tchould fash
vivena heading news story
happens and at uhiena TV show stats, GIT
Emotion, mood, and temperament
Fett “Worlds emotion” i caloulatod by gearching wie or woete with each ol the 7 mood types dave jay eure, anger, ea, ery, ea)
‘A measure of wees per minus used to cause the eurent emotion. higher number of twees per minute suggests more people are curenty fling that emetion.
mations ae volatle, so these shaxtved emotional states are smoothed over time by using a Yas exponential moving average
[ooo enwicpedia orgwikiMioing. averagerExponeral maving average)
This gues us rats lor the diferent moods.
ch mood rato then compare a base ine, asiow exgonentia moving average”, that cl the “wo temperament
‘The mode tha has ceviates hithest fom ts Baseline lemperament vale Is considered oe Ihe curtent word mcod
‘The sewatlon & measuredas a petcentage, so, for example ear changes Yom accounting or 8% of Wwoets fo TOYeInen I mote s”neant han joy changing tom
AO sto d8% (Thay ae bob =v SHein addtve Lorns, bulfeat Reveased by 100% in multiplicative terms)
Final the word temperament values are tweaked sigh in ight ofthis new esut. This gives the system ase adjusting propetty so thatthe word temperament ean
very sow'y change over tine
“Those values In Worl Mood. pd are used to aust how sonsve tho sysiom ito nlomation.
# Do you want ito pick up when people are happy aout sport vesut or scared about the weather?
* or ous you preter to any wack bg events ike natural denser or erors®artacks?
{#etne emotonsmoothingFacto 0.1)
‘foto moodSmootingFactor (0.051)
{fdehne modetataMoodheshold 2.0)
{ssorne extomeldoodT eld (4.00)
MOOD _TYPE Worldood: ComputaCurronMtoat)
1
Hind re eurent ros
feat eum = 0;
{or (int 0:1 < NUM MOOD_ TYPES: ies)
C
‘um = m wetkdMeodCourte:
}
‘eum < te
i
liset DEBUG
Im_pinter->prnt(unexpected total m_worchlooaCounts);
ffonct iio! DEBUG.
felienm_werioed,
1for Gott = 0:1 < NUM MOOD TYPES: e+)
{
‘m_woroklocaRatis| = m_wortaMood oun / sum;
1
‘finethe ato hat has increased by the most as 2 proportion ois moving averzoe.
{Sonat fer exampe an ietense rom Sv lo 10% more sgn eant an an Metease fm S0% t S5%,
oat maxinctoage = 10h
‘or ini = 0:1 NUM MOOD TYPES; ies)
t
oa torenco =:m_wortiMoodRatoct]-m._woridTomporamantRat ct
ifr worldTemperamertatost] < tet)
(
‘nivel DEBUG.
impinter-prnt(unexpected m wouldTempetamertRatos"
enot #601 DEBUG.
y
lterence i m_worlTemperamentFatio(;
i atforanca > mantneoazo)
{
rraxineease = aterence:
Imwordkloed= (MOOD. TYPE)i this is now the most dominant mood ofthe wer
}
"update the wore temperament, as an exponential mong average ol he ocd.
{thallus the baseine aos, Le. word temperament, change sbrly aver be
ith means, ale, tat the 2resderwawe of he werd mod wt He spat te curent mood elevation,
{Vand'so, até" major anger-nducing event, we can see when poopie stat io becom less 2
sum =
for Gat = 0:1 < NUM MOOD TYPES: e+)
1
1 woTempeamenttos <0)
fit DEBUG
'm_pinker-spran_wouldTemperamentRatos shouldbe italise at constructor)
‘fonct #idot DEBUG.
mn worcTemperarienFatis[ =m woridMoocFatos!
1
flee
t
‘onat oat 9 = m_nacessmoathinF at
1m worsTemporaonFatie(] = (m. worTomporaronFatoe( *(.01-a) + (m_ woreMoodatst 2):
1
‘um += m_wotkdTomporamantatio
1
‘ium < te
fit DEBUG
Impinter »prnunexpected tote m_woraTemperamentFatos ot"
fonct 1 #igot DEBUG.
‘enm woridMood;
1
{and fray, noma, to kogp the gum o tho moving average aioe 261.01
for itis Oe NUM_MGOD. TYPES. =)
i
'm worlsTemperamentatic( “= 1.01 um;
{ier DEBUG.
im_pinter>pent'remperament ta"):
‘pir >aenim wor Ter paaren aoc
1
‘nigel DEBUG
Idsbug code = check sum is 1
‘uum =
‘or(iil = 0:i< NUM MOOD TYPES; i+)
{
‘uum “= mwotldTemperamentiatet
1
4 um> 1.0F tet sum 104- te
i
> printer unexpected rnomalse suit)
}
‘nat 1 fidot DEBUG
‘eunm woridMood;
HImage Notes
oo many meets
Image Notes
1 Wet, why so saa?
[the Mood of the World is id
Image Notes
Trnandsa fhe LED tums green
Step 12: Building the Box
Bull an aye boxala hie nett:
tu inatuctables comImago Notes
‘sanded help dues the LED
Step 13: Enjoy!
Some possible exensions include:
+ toking # mutiingual ard no jut English speaking places
Parag ustassocating with a keyed for sxample every treet must contain he word “Obama, then you could gauge pub opinion on just that subject
Location specite Pernaps you just care our your fawn or county. Twiter allows you louse the geocoding too Hs
ake twee! what the world mood s 0 as to compete the ere
*Abity to conned fo hom = compuiero see what keywords people sre so emotive abou.
siedto hear any comments, comedtions ot questions. Please do eonact me, you so wih
Related Instructables
> | 4
|S) ~
Wob-controted
tary Twitermemen Ardunomood webeSMeOHd prauing Leg ow to ake an
rmotphonety Twit Mestion ovina py spo osmbey — Moodeube LED Ambient
ee Mood Lignt by "OM" Roombay (Smal) Video TRLCOLOR —uspMooD — Mood Light’ A
Scat ania ngluded) by mt DETECTOR Beginner
; UGHT=by BOT. (Photos) by Tutorial byFlamethrowing Jack-O'-Lantern
by randoto on October 18,2011
Flamethrowing Jack-O'-Lantern
‘Aflamathvowing jack oars woop tno Wik rales a sao distance trom your house and & 2 fine ation to any areonal Atthe fist gn ef any
Sugar-obsessed mp, simply press the bigger button and witessy scat sone-second bust of lames out of he acieaanters mouth This plume o elite wil make
fen te mos bla of people think ice about approaghing your door Very Yew people are ulin or ean hb Forte chanos 2 thy Bos of mk dss
\WARNING:: This pumpkin s extremely dangerous and you definitely should not make one ofthese. The instructions were posted here are for entertainment
purposes only. Ie nat condone he manufacture or use of flameth‘ouing jack-"Tanterns. Srleusiy, mong good will come of making one of these. Don
aorGo get stuff
For carving tho jack "anim, you wll ood:
A large purpkin (mine was probably about 18"n diameter)
‘Anassorment ol culing knives. Sevated seemed 1 ware the bes
‘A marvor
Paper and pencil
Salers
‘Aspoon
‘Other scraping implements. found a chisel worked very well
For the remote conbola amethvower:
SSquldB00 vant and ocover | had these lying around from a previous profs. Ary Avduina?Xboe combination should do.
Arena ATMEGA‘OS or ATIAEGAZS (ony fusing the Squidbee Setup above as he receiver has no chi)
Salen of WO-40
2x 12m 1 eet of back ace
SPST SV relay
Perse
5x 2.5'22" projec box
SPST momentary pushbutton switch
10K reseior
(2) SV batter snap
(62) Maype plug adapters
Nie long 2 Nes
(x 2 "aluminum exrsion
(66) 1 nate
ea ight
Matches
Cuta cap
(ut around he stom of pumpkin a an angle (with he fo started in towards tho stom of tho pumpkin)
Alter you are done cuthg al he way around, remove the stm, This wil serve as your li ster on.Gutit
Remove te gus from the purpkn, To sat shouldbe eng simple oll hem out By hand, bu his going quleMy became too cet
Using a metal spoon or othor raping tal (found a chal works best) serapo the sos ofthe pumpkin and ramovo al af the simy innards. The nso chou be
reasonably smooth and clean when tis doveDesign a face
Draw a ax0 00 apices of paper and then cut ou an tape it to tho pumpkin
(One hing to kespin minds thatthe moh needs fo be large and about alway up the pumpkin or the Hames arent gong fo be abate shoot ouBend
Maco a mark about 6" fom ono of ho edgos of th aluminum oxusion
Lin up is mark wih te edge ofthe workbench and lamp between the workbench ad something stand fat ike 2 2 or metal bar.
Cab the potusing edge ly ard push down unt itis bento 90 dagrees. In dong so, you may want to shit ighty past 90 dagres at
spingbacka itt wen doneStep 8: Brackets
owioad tho folowing Has for tho motor mount and eande hotdo
Use tse tes as cuting guides to cut he
1 out 1° acre.
Arties the hese, having a laser flor using a laser ctr service comes handy
File Downloads
om,
>
Ul rrecandieeps (106 x3)
Step 9: Drill holes
Use eto oun that you just ut out as ding guides onthe alumnum exison
“Tho motor mount sould ino up with the long odgo of he exrusion and you should uso a markoro mark al 4 comer holes
The candle mount shouldbe sighly back o m theshortedga, lake two matks for those les as wel
When you ate done, cil 14" hoes through the aluminum using adn press,Step 12: Battery adapter
‘Solder the 9V battery sap to he Mype plug ach tate re we I connected othe tp ans the Hack wke feeonneced othe bare
Dont forgot 0 sp tho pugs cover ono the wie before you slr.
Step 13: Program the Receiver
‘Opente SqucBee wansmiter node and remove the Arun tom the XBee shies
‘Change the power jumper onthe Aduin to select USB power 1 necessary)
Program the Aruino wih the fllowg code:
When done, disconnect the USB power, change the power selection jumper, and plug the XBee shi! back in
hp iw instructables com nbellevable-Arduino- Projects!File Downloads
| (2920s)
INOTE:Wrensaving yous tp asthe ho ot rename to FTPumpkin go]
Step 14; Program the transmitter
‘Tho wansmiter #2 ilo Dt tckortyou are using a SquidBeo setip bocauesi is iacKgan ATMEGA chi.
Fret unplug tho Boo shi
Itnscessary, ade and bootbad and the cp,
‘Then Ie te aver boa‘, change the pone sleeton jumper to USE, and ten upload the folowing code:When you 2 done, unplug the USB, and reconnect he XB
shield. You ull also need to swamp back the power jumpers onthe Adina
Lasiy, change both of ie THARK jumpers onthe XBee shies rom USE to XBee.
Fil
LI... Trigger pe (113)
INOTE: When saving. ou see trp asthe te ex rename tt Pupkin_1
Step 15: Switch
Dita 27 hole (or whatever is appropriate for your Swen inthe side o! yout project enclaure
Downloads
Inca ho pushouton safc
Step 16: Antenna
Insial he antenna ini the side ofthe enclosure oxposte the swch. Ble careful nt to break he wire com
ngtheantennaio the XBeeStep 18: Power
Plug in a SV battery to powor up the anemiter
ta
-
Step 19: Case closed
Fasten shutthe tansmiter
Stop 20: Wire the reciever
Connect one of 1 ety’ ok to ground onthe Adino board ard tre ote pn 3
of ho 9¥ tatsry snap and
Toget easy accoss to ho OV pow
ming rom tre 9Vbalery snap).
=>
fac 9V
soldered a wie rectly the +9¥ tall
0 telay load pine anda long res
ror fab