Silly Electronics for Fun and Absolutely no Proft - - PowerPoint PPT Presentation

silly electronics for fun and absolutely no proft
SMART_READER_LITE
LIVE PREVIEW

Silly Electronics for Fun and Absolutely no Proft - - PowerPoint PPT Presentation

Silly Electronics for Fun and Absolutely no Proft FlfffFirstfEditionff03/11/2017 FloerefT.fPillowcase,fDevourerfoffAutomobilesf(foere@robocow.be) Disclaimer Thisfpresentationfisfintendedfforf educationalfpurposesfonlyfandfdoesf


slide-1
SLIDE 1

Silly Electronics for Fun and Absolutely no Proft

FlüüfffFirstfEditionf–f03/11/2017

FloerefT.fPillowcase,fDevourerfoffAutomobilesf(foere@robocow.be)

slide-2
SLIDE 2

2

Disclaimer

Thisfpresentationfisfintendedfforf educationalfpurposesfonlyfandfdoesf notfreplacefindependentfprofessionalf judgement.f Thefpresenter,fnorfthefconvention,f assumefanyfresponsibilityfforfthef content,faccuracyforfcompletenessfoff thefinformationfpresented.f

slide-3
SLIDE 3

3

Audience

  • Basicfelectronics,ftargetedfatfcostuming.
  • Thefideafisftofgetfsomethingfgoingfquicklyfandf

easily.

  • Wefwillfnotfcoverf(m)anyfadvancedftopicsftoday.

– ButffeelffreeftofcomeffndfmefandfIfwillfhappilyf

discussfyourfcoolfcostumingfideas.

  • Ifwillfassumefyoufhavefsomeffamiliarityfwithf

Arduinofandfsimilarfplatforms.f

– Iffnot,fdofnotfworry.fThisftalkfshouldfstillfmakef

sense.

slide-4
SLIDE 4

4

WhyfthisfT alk?

  • Thefinternetfisffullfoffinformationfonfhowftof

buildffunfdevices,fandfaddfcoolfefectsftof costumes.

– Muchfoffitfisfquestionableforfdangerous. – Muchfoffitfrequiresfelectronicsfknowledge.

  • Basicfcostumingfgadgetryfshouldfnotf

requirefyearsfoffstudy,fnorfbefafdeathftrap.

  • Iflikefmyffuzziesfcute,fcuddlyfandfalive!
slide-5
SLIDE 5

5

Content

  • SightsfandfSounds

Howftofaddffunfgadgetsftofyourfcostume

  • Reliability

Howftofkeepftheffunfgoing

  • Safety

Howftofstayfaliveftoftellfthefstory

slide-6
SLIDE 6

6

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-7
SLIDE 7

7

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-8
SLIDE 8

8

Control:fArduinofandfthefLikes

  • Forfdynamicfefectsfyouf

needfafprogrammablef controller.

  • Therefarefmanyfeasy-to-usef
  • ptionsftoday.

– Arduinof/fT

eensy

– RaspberryfPi

  • Justfgofout,fbuyfafgoodf

starterfkit,fandfgo!

  • Caveatfemptor:f5Vfvsf3.3Vf

logicflevels!f(Stickfwithf5Vf whenfstarting-out.)

https://www.arduino.cc/

slide-9
SLIDE 9

9

LevelfShiftingfDigitalfSignals

  • Itfhappensfthatftheflogicflevelsfoffyourf

microcontrollerfdofnotfmatchfthefdevicef youfarefconnectingfto.f

  • 3.3Vfwasfchosenftofworkfwithf5Vfinputs.

– 3.3Vf→f5VffffOK – 5Vffff→f3.3VfNOK

Unlessfthef3.3Vfinputfisf5Vftolerant.

  • Dofnotfusefresistivefdividersftofshiftfthef

levels.fThesefmess-upfsignalftiming.f (ButfOKfforfslowfthingsflikefpushf buttons.)

  • Easiestftofusefarefbi-directionalfshiftersf

basedfonfMOSFET sf(e.g.fBSS138).f

– Thesefarefgoodfforf<f2fMHzfsignals. – Ifftoofslow,fusefafdedicatedflevelf

shifterfIC,fe.g.:f74LVx245fseries.

  • Thesefneedfafspecifcfsignalf

directionfsetfandfrespected!

slide-10
SLIDE 10

10

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-11
SLIDE 11

11

Sights!

slide-12
SLIDE 12

12

DrivingfafFewfSmallfLEDs

  • LEDsfneedfafconstantfcurrentfsource.

– Currentfrelatesftofbrightness. – T

  • ofmuchfcurrentf=fboom!

– Voltageftofcurrent?fJustfafresistor.

  • T
  • fcalculatefthefresistorfyoufneed:

– Appliedfvoltagef(U) – LEDfforwardfvoltagefdropf(Uf) – LEDfcurrentf(I)

  • Equation:fRf=f(Uf-fUf)f/fI

– Thefcurvefisfforfaf20fmAfredfLED. – (5fVf–f1.8fV)f/f20e-3fAf=f160fΩ – NearestflargerfE12fvalue:f180fΩf – Keepfthefunitsfconsistent!

  • Iffyoufcan’tffndfthefdatasheetfforfyourf

LEDs,fthefvoltagefdropfisf~thefsamefforf allfsmallfLEDs.fItfdependsfonfthefcolour.

– Normalfdrivefcurrentfisf~20fmA – High-efciencyftypesfwillfrequirefless! http://www.electronics-tutorials.ws/diode/diode_8.html

slide-13
SLIDE 13

13

WasfthefExamplefSmart?

  • No!f

– Wefdropf~3.2fVfoverfthefresistorf=f64%fpowerfloss.

  • Better:fiffwefusef2fLEDsfinfseries,fUffisfdoubledf(3.6fV)f

– Rf=ff68fΩf – Wefdropf~1.4fVfoverfthefresistorf=f28f%fpowerfloss.

  • WithftwofLEDs,ftheftotalfloadfisfstillfthefsame!
  • Lessfpowerfisfwastedfasfheat.f

– ThreefoffthesefLEDsfwillfjustfaboutfworkfwithf5fV.f

(Withoutfafresistor,faflittlefdimmer.)

slide-14
SLIDE 14

14

DoesfthisfMethodfScale?

  • No!fSeriousflimitationsfwhenfdrivenfdirectlyffromfafmicrocontroller:

– GPIOflimits

  • GPIOfpinftypicalfmaximumfcurrent:f10f–f30fmAf(sourcefnotfalwaysf=fsink).
  • GPIOfbankftotalfcurrentfmayfimposeffurtherflimits.
  • CanfonlyfdriveftwoforfthreefLEDsfperf5fVfGPIOfpin.

–WithfblueforfwhitefLEDs,fthisfwillfgofdownftofone.f(Uffisfmuchfgreater.) –Af3.3fVfGPIOfwillfnotfbefableftofdrivefblueforfwhitefLEDsfdirectly. – MCUflimits

  • T
  • talfcurrentfgoesfupfquickly.f
  • T

ypicalfmaximumfvaluesfaref100f–f200fmA.

– BrighterfLEDsfrequirefmuchfmorefcurrentfthanf20fmA.

  • ForfmorefLEDs,fusefMOSFETfdrivers.

– Canfbefscaledftofanyftotalfdrivefcurrent. – Thesefalsofallowfafhigherfsupplyfvoltage,fseparateffromfthefMCU. – Youfcanfalsofbuyfvariousf(multi-channel)fLEDfdriversffromfvariousfvendors. – BUT,ftherefisfafsimplerfway...

slide-15
SLIDE 15

15

DrivingfManyfLEDsfthefSimplefWayf DigitalfLEDfStripsf

  • Fullfsoftwarefcontrolfoverfeachf“pixel”f

(RGBfLED)fcolourfandfbrightness.

  • DigitalfinterfacefandfdedicatedfPWMf

driverfICfforfeachfLEDfindividually.

  • Nofneedftofbuildfafcontrolfcircuitforfwiref

allfthefLEDsfyourself.

  • T
  • fmakefitfwork:

– Connectfaf5fVfsupply.f(Checkfthis!)

  • Carefulfthatfitfhasfenoughfpower!

– Connectfyourffavouritefmicrocontrollerf

tofthefdigitalflines.

– Downloadfafsuitablefsupportflibrary.

(Buyfafstripfthatfhasfone!)

– Modifyfandfprogramfanfexample.

  • Arrangedfinfafmatrix,fthesefcanfalsof

displayfsimplefanimations.f(E.g.:f winkingfsmileyfface.)

https://www.adafruit.com/

slide-16
SLIDE 16

16

WhatfisfPWM?

  • Pulse-WidthfModulation.
  • Thefratiofbetweenfonfandfoffisf

changedf(modulated).

– Expressedfinf%fdutyfcycle.

  • Thefaveragefoffthesefpulsesfinftimef

resultsfinfanfin-betweenfvalue.

  • IffthefPWMfratefisffastfenoughf(orf

fltered),fthefeyefdoesfnotfperceivef thefblinking.

  • Theftechniquefisfusedfaflot:

– ClassfDfaudiofamplifers. – Motorfvariablefspeedfdrives. – LEDfdrivers. – Servofpositionfencoding.

slide-17
SLIDE 17

17

Demo

slide-18
SLIDE 18

18

Electro-LuminescentfLights

  • Unique,fcool,falmostfbiologicalfglowfefect.
  • Manyfdisadvantages:

– Highfdrivingfvoltagef(butflowfcurrent)fneedsf

specialfinverterf(90f–f150fVftypical)

– Needfanfinverterfwithfcontrolfinputfiffyouf

wantftofchangefbrightnessfinfsomefway.

– Onlyfonefspecifcfcolour. – Ratherfdim.fWillfonlyfworkfwellfinfthefdark.f

(Eg:fduringfdances)

  • Wouldfsuggestflookingfinto:

– ELfsheetf→fLEDfstripsfunderftheffur,forfunderf

afdifuserfsheet.f

– ELfwiref→fSide-Emittingfplasticfopticalffbre

  • Drivefitffromfafpowerfulf(fewfWatt)fRGBfLED
  • Variousfthicknessfofffbrefexist.
  • Cheap!f(SeefAlibaba,faboutf€1fperfmeter.)

–Lightfsourcef(calledfaf“lightfengine”)fisf

extra.f3fWfversionsfarefinexpensive.

slide-19
SLIDE 19

19

SomefOpticalfTricks

  • ForfmorefevenfLEDflighting

– RunfmultiplefLEDfstripsfinf

parallel,fwithfafhalffLEDf spacingfofset,fforflargerf areas.

– Usefanfopticalfdifuser

  • Privacyfwindowfflm.
  • Thin,ftranslucentffoam.
  • Frostedfplexiglass.
  • Realfdifuserfflm.
  • Forftinyfpointsfofflight

– 1fmmfplasticfopticalffbref

(POF)fisfinexpensive.f

– Joinfseveralfstrandsftofaf

brightfLED,forfusefafrealflightf enginefdriverfmodule.

– Feedfthefotherfendsftofwheref

youfwantflights.

– Jacketedfandfnon-jacketedf

POFfexists.

– Idea:fglowingfwhiskers!

slide-20
SLIDE 20

20

SomefOpticalfTricks

  • Illuminatingflargerfareas

– Useflensesfiffyoufcanfsparef

thefdepth.

– Usefafdifuserftofgetfanf

evenly-litfarea.

– Stencilsfcanfbefincorporatedf

intofthefopticalfpath.

– Usefafrayftracer.fThisfletsfyouf

testflensesfbeforefbuying.

https://arachnoid.com/OpticalRayTracer/

  • Complex,fstaticfshapesfusingfdecal

– Printfonfoverheadfprojectorf

transparencyfflm.fOrfcutfoutfaf shapeffromfsomefopaquef material.

– Afdifuseflightfsourcefwillfmakefaf

bigfdiference.

– Projectingfontofafdifuserfwillfalsof

work.

– Idea:fglowingftattoofunderffur!

slide-21
SLIDE 21

21

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-22
SLIDE 22

22

BeepsfandfBoops

  • Simplefsquare-waveftones.

– Vintagef8-bitfsound. – Yourfmicrocontrollerfcanfdofthis! – But:flimitedfrangefoffexpression. – Plentyfoffexamplesfon-line,fmodifyf

asfneeded.

  • Dofnotfjustfattachfafpiezofelementf

asfshownfinfmostfon-linefexamples.f

– Needsfaffewfextrafpartsftofprotectf

yourfMCUfI/Ofpinfandfthefpiezo.

– Notfloudfenoughfforfperformance.

  • Usefanfexternalfamplifer!

– Afveryfbasicfinterfacefcircuitftof

lineflevelfisfsuggestedfhere.

330R ~ok

slide-23
SLIDE 23

23

Demo

Image creator unknown

slide-24
SLIDE 24

24

Audio

  • Whatfkindfoffaudio?

– Musicforfsoundfefects?f – Characterfvoicefwithfsqueaksforfwords?

  • Overcomefmufedfcostumefvoices!
  • Soundfsource

– Phoneforfsimplefportablefmusicfplayer. – Therefmanyfaudiofadd-onfboards. – AnfadvancedfMCUfcanfdofanything. – Considerfhowftofcontrolfthefaudio!

  • Amplifer

– Buyfanfampliferfkitforftake-apartfsomef

battery-poweredfloudspeakers.

– Class-Dfinfbridgeftopologyfpreferred! – Makefsurefit’sfbothfthermallyfandf

short-circuitfprotected.

  • Loudspeaker

– Criticalftofsystemfperformance!

https://www.adafruit.com/

slide-25
SLIDE 25

25

LoudspeakerfSelection

  • Withflowfbatteryfvoltages,fusefaf4f

Ohmfspeakerf(iffthefampliferfallowsf this).fItfwillfbeflouder.

  • Checkftheffrequencyfresponse:ffull-

rangefisfpreferredfinfmostfcases.

  • Checkfthefefciency!

– MeanfSPLfinfdBfatf1W/m. – Youfwantfitfhigh,fbutfwithoutfbigf

peaksfinfthefresponse.

  • Checkfthefpowerfrating.

– Sameforfhigherfthanfyourfamplifer.f – BewarefthefdiferencefbetweenfRMSf

(music)fpowerfandfratedf(peak)f power.

  • Iffthefmanufacturerfisn’tftellingfyouf

thesefthingsfaboutftheirfproduct,fit’sf probablyfgoingftofbefbad…

slide-26
SLIDE 26

26

LoudspeakerfDesign

  • Allfloudspeakersfsoundfawfulfduef

toffront/backfcancellationfefects.

  • Usefafsoundfboardforfproperlyf

sealedfboxfenclosure.

– Bothfmustfhavefsufcientfsizeftof

work.fAreaf/fvolumefmatters.

– Stuffboxesfwithfdampingf

materialsfforfbetterfbass.

– Boxesfmustfbefwellfsealed,fbutf

notfentirely.f(Ambientfpressuref equalisationfisfneeded.)f

  • I’vefwrittenfmorefaboutfthisfinfthef

FlüüffBoardfOnefuserfmanual.f

– Youfarefwelcomeftofafpdffcopy!

www.robocow.be

slide-27
SLIDE 27

27

Demo

This is what we’re building in the electronics workshop after this talk.

slide-28
SLIDE 28

28

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-29
SLIDE 29

29

Motion!

Gmork - Acrylic painting by Bruce White

slide-30
SLIDE 30

30

Fans

  • Helpfkeepfyoufcoolfandfbreathfoutsidefair.
  • MostfPCffansfrunfoff12fV.f5fVftypesfexist.
  • Theflargerftheffan,fthefslowerfitfcanfspinf

forfthefsamefairffow.

– Tinyffansfsoundflikefhornetsfonfspeed.f

Thisfcanfbefaudibleftofyourfaudience.

– Therefarefveryfquietftypesfonfthef

market.fCheckfthefdBfratings!

  • Speed-controlledffansfcanfbefuseful:

– Lessfbatteryfdrainfwhenfslower. – Lessfnoisefwhenfslower. – Canfstillfaccessffull-blastfwhenfneeded.

  • Don’tfforgetfaboutfprotectivefgrills!
  • Mostffansfarefaxialffans.fHigherfpressuresf

canfbefhadfwithfcentrifugalftypes.

http://www.ebmpapst.com/

slide-31
SLIDE 31

31

ServofMotors

  • Motorfwithfafreductionfgearftrain,fdriver,fandf

angularfpositionfsensor.

– Lotsfofftorque,fbutfnotfthatffast. – Don’tfover-stressfthemforfyou’llfbreakf

gears.

  • Addfspringsfandfreleasefsystemsftofyourf

mechanismftoftakefoverloads.

  • Metalfgearsfarefstronger.

– Quitefnoisy.

  • Mostfaref5fVfcompatible.

– Verify,fasftherefarefvariations. – Therefarefaffewfvariationsfonfthef

connectionfplugsfasfwell.

  • Localffeed-backfallowsfforfaccuratefangularf

position,fvelocityfandfaccelerationfcontrol.

– ControlfisfviafafPWMfpulseftrain. – However,fnofreporting-backftofMCUfoffthef

actually-achievedfangle.

  • Costumingfidea:fmakefyourffacialfexpressionf

changeable! Images: www.robotpark.com

slide-32
SLIDE 32

32

LinearfMotors

  • AfordablefunitsfarefDCfmotorsfwithfaf

transmission.

– Veryfstrong,fbutfalsofveryfslow.

  • Usefulfforfactuatingflarge,fheavyfcostumef

features,fsuchfasfwings.

  • MostfhaveflargerfDCfmotorsfinside.f

– Drivefthemfusingfanf“H-bridge”fdriver,forf

afmanualfreversingfswitch.

– Useflimitfswitchesfiffyoufdon’tfneedfthef

fullfactuatorftravel.fTherefisfaflotfoffforce!

  • Therefarefsmall,fRCfservo-typefunitsfoutf

therefthatfwillftakefafPWMfpositionfandf havefthefdriverfbuilt-in.f(E.g.fActuonix)

– Usefulfforfsmallffeatures,fsuchfasfearsf

andftailfwags.f(Iffyoufcan’tfusefregularf servos.)

  • Makefsurefnofbodyfpartsfgetftrapped!
slide-33
SLIDE 33

33

PositioningfAccuracy

  • Mostfmotorsfprovidefnofpositionforfanglefinformation.
  • Stepperfandfservofmotorsfareffeed-forwardfsystemsftofthefMCU.

– Steppersfarefblindffeed-forwardfsystemsfandfmissedfstepsfarefnotfrecoveredffrom.f – RCfservosfwill,fiffpossible,fachieveftheirfintendedfpositionfdueftoflocalffeed-back. – Bothfmayfneverfactuallyfachievefthefcommand.f(Notfenoughftorqueftofmove,f

transmissionflinkagefslip,fetc…)

– Wrongfassumedfpositionfmayfcausefthefmechanismftofbefover-drivenfandfbroken! – Orfyoufjustfend-upfwithfyourfanimatronicsfinfafsillyfstate...

  • Iffyoufwantftofknowfthefactualfposition,fyoufhaveftofaddfsensorsftofyourfMCUfandf

linkfthemftofthefmechanism.

– End-of-runfswitches.f(Basicfprotectionfandfpositionfcalibration.) – Digitalfencoder.f(Bothfabsolutefandfrelativefoutputfexists.) – Analogfpotentiometer.f(Bestfusefafspecialftypefforfthis.) – Capacitive/magnetic/opticalfdistancefsensors.

slide-34
SLIDE 34

34

Motorsf–fGeneralfIssues

  • Motorsfneedfmuchfpowerfandfhaveftofbefdrivenffromfafdedicatedfpowerf

stage.f

– Somefmotorsfhavefthisfbuilt-in.f(e.g.:fcomputerffans,fRCfservos)

  • Voltagefstabilityfonfthefpowerfbusfcanfsuferfdueftoflargefpeakfcurrents.

– Thisfcanfcrashfthefmicrocontrollerfandfmessfwithfotherfdevices. – Knowfthefdiferencefbetweenfrunningfcurrentfandfstart/stallfcurrent.

  • Motorfcoilsfcanfgenerateflargefback-EMFfpulses.fCommercialfdriversfaref

protectedfagainstfthesefwithfdiodes.f(Don’tfforgetfthisfiffyoufrollfyourfown.)

  • MotorsfwithfbushesfcanfgeneratefaflotfoffEMIf(interference).f

– Thisfcanfgetfintofyourfaudiofsystem.f – Filterfcapacitorsfmayfbefneededfonfthefmotor.

  • Therefarefmanyfkindsfoffmotors,feachfwithfdiferentfdrivingfrequirements.

– Buyfthefappropriatefdriverfmodulefforfyourfmotor. – Makefsurefitfhasfshort-circuit/over-current,fandfthermalfprotection!

slide-35
SLIDE 35

35

Demo

slide-36
SLIDE 36

36

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-37
SLIDE 37

37

Interaction

?

Not a whole lot has been done with interactive costumes yet...

slide-38
SLIDE 38

38

Switches

  • Simplestftypefoffsensor:

– Onforfof. – But:ftheyfbounce...fAflot!

  • Usefsoftwarefdebounce.
  • OrfafspecialfIC.f

(E.g.:fMC14490,fMAX6816)

  • SimplefRCfsolutionsfdon’tfworkf

well,fevenfiffrecommendedf everywhere.

  • InterfacefwithfanfMCUfisfeasy:fpull-

upfresistorfandfswitchftofgroundf (plusfaflittlefextra).

– Thisfinverts,fjustfswap-backfinf

software.

– Makesfwiringfmorefnoisefimmune!f

(Usefshieldedfwire.)

slide-39
SLIDE 39

39

ResistivefSensors

  • Inexpensivefforce,flight,ftemperature,f

anglefandfpositionfsensorsfavailable.

  • Needftofconvertfresistanceftofvoltagef

forfthefanalogfADCfinput.

– Resistivefdividerfisfeasiest.

  • Potentiometersfareftheirfownfdividers.f
  • Placefsensorfinfground-sidefoffdivider:

– Canfeasilyfusefshieldedfcablefforf

betterfnoisefimmunity.

– Mayfneedftoffipfdirectionfinf

software.

  • Thesefsensorsfarefoftenfnotflinear.f

– Look-upftablefwithfinterpolation. – Correctingfequation. – Ignore.fQuitefoften,flinearityfnotf

important.

slide-40
SLIDE 40

40

CostumingfIdeas

  • Nosefthatfactuallyfboops.
  • Colouredfspotsfthatfchangeflightingfcolourfwhenfaudiencefpokesfthem.
  • ControlfLEDfbrightnessfbasedfonfambientflightflevelf(sofphotographsfdof

notfoverexpose).

  • Managefcostumefefectsfwhilefperforming.

– Controlfsoundsfandfaudiofplay-back. – Controlfofffacialfexpression.

  • Hiddenfsensorsftofsetffeaturesfoffyourfownfcostumefwithoutfbreakingfthef

magic.f(E.g.:fmagneticfswitchesfinfstrategicflocationsf&fmagnetfinfglove.)

– Controlfventilationflevel. – Controlfaudiofloudness. – Controlffacialfexpression. – T

urn-off(orfatfleastfreduce)flightsf&fsoundsfwhenfsittingfinfanfaudience.

slide-41
SLIDE 41

41

SightsfandfSounds

  • Control

Arduinofandftheflikes

  • Sights

LEDsfandfelectro-luminescentffoils

  • Sounds

Beepsfandfaudio

  • Motion

Fans,fmotors,fandfservos

  • Interaction

Buttonsfandfsensors

  • Power

Sourcesfandfconversion

slide-42
SLIDE 42

42

PowerfSources

  • Batteries

– Batteriesfarefdangerousfthings! – LiPofbatteriesfarefespeciallyfdangerousfthings!

  • NEVERfUSEfNAKEDfLiPofCELLS!fTheyfneedfspecialf

precautions.f(DiscussedfinfSafety.)

  • Proposal:fusefgood-qualityfUSBfpowerfbanks.fThesef

arefencased,fprotectedfLiPofcellsfandfmuchfsafer.

– Issue:fonlyf5V,f1forf2fAf(thus,f5forf10fW). – Iff5forf10fWfisn’tfenoughftofrunfyourfsuit,fandfyouf

can’tfsplitfthefload:

  • ProtectedfLiPofpackfinfsuitablefLiPofbatteryfbagf

andffre-wallf+fotherfsafetyfmeasures.

  • NiMH,fLiFePO4,falcaline,fPbfgellfcells.
  • Alwaysffusefanyfnon-protectedfbattery!
  • DC/DCfconverters.

– ThesefwillfefcientlyfconvertfandfregulatefDCf

voltagesftofotherfDCfvoltagesf(neff>0.8).

– “Buck”fconvertsfdown,f“boost”fconvertsfup. – Thinkfpowerfin,fpowerfout.

  • 5Vfff1Af=f5Wfffinf→f12Vf0.4Af=f5Wfffout.
  • 12Vf1Af=f12Wfinf→f5Vfff2.4Af=f12Wfout.
  • Pf=fUf*fIf(ignoringflosses)
slide-43
SLIDE 43

43

CostumefPower

  • Thinkfoffhowfmuchfpower,fhowflong.fThinkfinfWattsffrst,fthenfconvertftofAhf

tofselectfthefbattery.

  • Plan-outfyourfpowerfsystemfandfsuitfcomponents.

– Tryftofreducefthefnumberfoffdiferentfsupplyfvoltages. – Thinkfoffhowfthefwiringfwillfrunfinfthefsuit,fandfwhereftofplacefconnectorsf

(E.g.:ftoftakefthefheadfoffforfbreaks.)f

  • Avoidfhavingfseparatefbatteryfpacksfforfeveryfsinglefthing.

– Whilefaftotalffailurefwillfbeflessflikelyfwithfdistributedfpower,... – Managingfthisfisfaflogisticsfnightmarefandfgettingfitfwrongfwillfresultfinf

partialffailuresfwhilefperforming.f(Arefallfthefcellsffresh?fDofIfhavefallfthef variousfAA,fAAA,f9Vfcellsfwithfme?fHowflongfdoesfeachfgizmoflast?)

– Youfneedftoftakefbreaks,fusefthisftofswapfbatteries.fIffitfisfjustfthefonef

powerfbank,fthisfisfafno-brainer!fHavefanotherfonfafcharger.

  • Makefsurefthefbatteryfisfeasilyfswappablefandfejectable.f
  • SeefthefsectionfonfSafety!
slide-44
SLIDE 44

44

Content

  • SightsfandfSounds

Howftofaddffunfgadgetsftofyourfcostume

  • Reliability

Howftofkeepftheffunfgoing

  • Safety

Howftofstayfaliveftoftellfthefstory

slide-45
SLIDE 45

45

ThefCostumefEnvironment...

  • Isfafharshfmistressfindeed!

– Constantfmotion. – Regularfhigh-velocityfimpacts. – Lotsfoffwireffexing. – Highfhumidity. – Chargefbuild-upfonfsyntheticfeverything.f

(Untilfthefhumidityfkicks-in...)

  • Consumerfgoodsfarefnotfdesignedfforfsuchfabuse…
  • Herefarefsomeftipsftofimprovefreliability!
slide-46
SLIDE 46

46

EnclosuresfandfPCBs

  • Putfyourfelectronicsfinfafprojectfboxf

andfsecurefeverythingfproperly.

– Firstflinefoffdefence. – Willfkeepfthingsffromfshortingfout,f

beingfcrushed,forfgettingfloose.

– Givesfyoufafbaseftofattachf

connectorsfandfstrainfrelieffto.

– Helpsfkeepfsweat,fbeer,fcoinsfandf

keysfoutfoffthefcircuits.

  • Don’tfusefbreadboards!fSolderf

everythingfonfafsolderboard!

  • Seriously,fthisfisfafbasicfminimum!
  • Makefthefboxfbigfenough.
  • Hot-gluefnon-lockingfconnectors.
slide-47
SLIDE 47

47

ConformalfCoatings

  • Condensationfcanfcausefproblems:

– Partialfshortsfresultingfinfrandomfbuttonf

presses,fsensorfreadings,fMCUfissues...

– Long-termfelectrolysisfdamage. – Fungalfgrowth.

  • Cleanfthefboardfafterfsoldering.

– Thisfwillfhelpfreducefconductivityfandf

  • xidationfissues,fasfsolderffuxfisfaggressivef

andfcanfbefre-activatedfbyfmoisture.

– Preferablyfusef“safewash”fasffuxfremover. – Followfthefmanufacturer’sfinstructions!

  • Whenfboardfisfcleanfandfdry,fapplyfthef

coating.f

– Afpossiblefalternativefisfclearfpolyurethanef

varnish.f(Butfnofguarantees!)

– Carefulfnotftofcoatfswitches,fconnectors,forf

anythingfelsefthatfhasftofmakefcontactforf move.

– T

ape-offsuchfareasfwhenfspray-painting,forf justfusefafbrushftofapplyfthefproduct.

– CoatfbothfsidesfoffthefPCB!

slide-48
SLIDE 48

48

ProperfConnectors

  • ArduinofpinfheadersfarefmeantfforfSQUAREfpins,f

notfROUNDfwires.

– Sofwhyfdoesfeveryonefkeepfdoingfthis?fItfisfnotf

reliable.f(Andfprooffthatftheyffailedfkindergarten!)

  • Afconnectorfmakesfafgas-tightfunionfbetweenftwof

metalfsurfaces.

– Thisfisfwhatfkeepsfthefconnectionffromfoxidizingf

andfbecomingfunreliable.

– Matingfthefconnectorfalsofscrapes-off

contaminantsffromfthefsurfaces.

– Iffthefsurfacesfdofnotfmatefwell,fwithfthefrightf

shapefandfcontactfpressure,fthefcontactfwillffailf soonerfratherfthenflater.

– Metallurgyfmatters:fDofnotfbuyfAufoverfCu,fbutf

Au-Ni-Cu.fThefnickelfbarrierflayerfisfimportant!

  • Connectorsfcostfmoney.fButftheyfhelp:

– Managefthefunitsfinfthefsuit. – Insurefreliablefconnections. – Makefmaintenancefsimpler.

  • Wirefthemftidilyf(usefheat shrink!)
  • Usefdiferentf#fpinsfandfgenderftofpreventfwrongf

connections.fChoosefgenderfsofpowerfplugsfcanf notfshortf(femalefpinsfonfthefbatteryfside).

slide-49
SLIDE 49

49

JoinsfWiresfProperly

  • Wirefjointsfarefoftenfpoorlyfmade,f

andfcausefintermittentffaults.

  • Alsofanfimportantffrefhazardfwithf

high-currentfcircuits!

  • Usefafsolderedflinemanfsplice.

– Willfalsofworkfwithfstrandedf

conductors.

– NASAfapproves!f(P

.f71) NASA-STD-8739.4Af–f2016-06-30

– Thisfdocumentfshowsfeveryfotherf

methodfasfwell,fandfhowftofdof them.fAfveryfusefulfmanual.

  • Useftwoflayersfoffheatfshrink!
slide-50
SLIDE 50

50

StrainfRelief

  • Wirefconnectionsfwillfbreakfwhenf

repeatedlyffexedfoffpulled.

  • Tinnedfwiresfbreakfveryfeasily.

– Don’tftinfwiresfforfusefinfscrewf

connectors,fusefwirefendfferrulesf instead!

  • Strainfrelieffisfveryfimportantfforf

reliability.

  • Usefcablefglands,forfthefstrainf

relieffintegratedfinfthefconnectorf housing.

  • Simplyfsecuringfafwirefaflittlef

distanceffromfafsolderfjointfwithfaf nylonfcableftieftofafsupportfwillf alsofhelpfaflot. Solder Screw

slide-51
SLIDE 51

51

WirefHarnesses

  • Nofmysteryfconnectionsfandfrandomfwiresf

thatfgetfpulled-loosefduringfperformance.

  • Thinkfoffthefdevicesfandfwiresfinfyourf

costumefasforgansfandfthefmammalianf nervousfsystem.

– Layfitfoutfasfsuch,fasfanfintegralfpartfoffthef

costume.

– Thinkfoffhowfyoufwillfmovefandfbend. – Thefbrainfmayfnotfbefinfthefhead!

  • Also,fthinkfoffhowftoftakefitfallfoutftofwashf

yourfcostume!

– Afwiringfharnessfwillfmakefthisfeasy:fallfthef

wiringfbecomesfonef“thing”,fwithfthef variousfdevicesfconnectedftofitfviaf separablefconnectors.

  • Spiralfwrap,fcorrugatedfwiringfharnessftubes,f

nylonfwovenftubes,felectricalftape,fetc…f Therefarefmanyfproductsfonfthefmarketftof makefafnicefharness.

  • Keepfitffexiblefandfexperimentfbeforef

committingftofaftechnique.

slide-52
SLIDE 52

52

ESDfProtection

  • Youfcanfeasilyfgeneratef20fkVfandfmore,f

justfbyfshufingfoverfafcarpet.

– Whilefdry,faffursuitfisfanfambulant,ffufyf

electrostaticfgenerator.

  • Manyfcomponentsfhavefsomefprotectionf

againstfElectro-StaticfDischarge,fbutfnotf enough.

  • UsefextrafESDfprotectionfonfanyfMCUfpinf

thatfconnectsftofoutboardfwires,fforfbothf analogfandfdigitalfpins.

  • Thisfisfafcomplexftopic!fOnlyfafbasicf

protectionfisfshownfhere,fusablefforfMCUf digitalfandfanalogfpinsf(0ftof5fVfrange).

– Thisfisfnotfcomprehensive,fbutfwillfhelp. – SimplefprotectionfusingfafTVSfdiodefandf

thefESDfdiodesfbuiltfintofthefchip.

– Seriesfresistorfalsofhelpsfagainstfoutput-

to-outputferrorsfandfaccidentalfshorts.

– Rxfdependsfonfthefapplication.f1Kfwillf

  • ftenfworkffne.
slide-53
SLIDE 53

53

PowerfBusfDecoupling

  • Sourcesfhavefaffnitefimpedancefand/orf

arefcurrentflimited.

– Loadfchangesfhavefanfefect. – Heavyfloadf(peaks)fcanfde-stabilizef

yourfpowerfbus.

– Motorsfandfaudiofamplifersfarefthef

usualfcause.

  • Voltagefdipsfandfgroundfpotentialfswingsf

canfcrashfyourfMCUforfdisturbfotherf digitalfdevices.

  • Decouplefthefsupplyftofsensitivefdevicesf

(MCU)ffromfthefpowerfbusfwithfaf Schottkyfdiodefandfaflocalfbuferf capacitor.fThisfisfoftenfveryfefective.

  • Starfgroundingfisfalsofusefulftofkeepf

groundfpotentialfswingsfinfcheck.

  • Addingfafbigfcapacitorf(e.g.:f1000fµF)fatf

thefpointfoffafheavyfloadfcanfalsofhelp.f (Butflargefin-rushfcurrentfatfstart-up!)

slide-54
SLIDE 54

54

Content

  • SightsfandfSounds

Howftofaddffunfgadgetsftofyourfcostume

  • Reliability

Howftofkeepftheffunfgoing

  • Safety

Howftofstayfaliveftoftellfthefstory

slide-55
SLIDE 55

55

SafetyfRisksfoffAddingfGadgets

  • Thefrisksf(non-exhaustive)f

discussedfinfthisfsection:f

– Electrocution – Fire – Mechanical

slide-56
SLIDE 56

56

SafetyfRisksfoffAddingfGadgets

  • Thefrisksf(non-exhaustive)f

discussedfinfthisfsection:f

– Electrocution – Fire – Mechanical

slide-57
SLIDE 57

57

Electrocution

  • Thefriskfisfaflethalfvoltagefappearingfonfthefcostumefelectronicsfdueftofaffaultyf

powerfsupplyforflightningfstrike.fAsfyoufarefwearingfthem,fyoufcannotfdisengage.

  • Thefriskfoffhighfvoltagesfisfalsofpresentfthroughfotherfelectricalfconnections.

(Suchfasfphoneflines,fnetworkfcables,faudio/videofsystems,fetc…)f

  • Simplefmitigation:fBatteries Only!

– Nofmains-poweredfenergyfsourcefisfallowedfwhilefwearingfthefcostume.f

Thus,fnofadapters,fchargers,fbenchftopfpowerfsupplies,fetc...fmayfbefin-use!

– Nothingfmayfbefconnectedftofanythingfthatfisfnotfexclusivelyfbatteryfpoweredf

itselffandfisolatedffromfoutsidefsystems.

– Nofelectricalfconnectionsftofoutsidefsystemsf(suchfasfphoneflines,fnetworkf

cables,faudio/videofsystems,fetc…)farefallowed.f

– IffyoufneedftofsendfaudioftofthefDJ/PAfsystem,fusefafwirelessfapproachf(e.g.f

Bluetooth),forfhold/stickfafmicrophonefinffrontfoffyourfcostumefloudspeakers.

  • CarefulfwithfCCFL/ELflightingfandftheirfinverters.fCurrentsfshouldfbeflowfenoughf

tofbefsafe,fbutfemployfgoodfelectricalfsafetyfpracticesfasfnothingfisfguaranteed.f Also:fRFfburnsflastflongfandfhurt.

slide-58
SLIDE 58

58

SafetyfRisksfoffAddingfGadgets

  • Thefrisksf(non-exhaustive)f

discussedfinfthisfsection:f

– Electrocution – Fire – Mechanical

slide-59
SLIDE 59

59

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-60
SLIDE 60

60

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-61
SLIDE 61

61

ElectricalfFire

  • Over-heatingfdueftofshorts,foverloads,fpoorfcooling,fcomponentffailures,fetc...

– Componentsfcanfoverheatfandfburn,fevenfatflowfcurrents. – Wiresfcanfoverheatfandfcauseftheirfinsulationftofcatchffre. – Sparkingfisfalsofpossible.

  • Thesefheatfsourcesfcanfignitefcombustiblefmaterialsf(suchfasfwirefinsulation,fcostumef

materials,fyourfhair,fetc…)

  • Fusesfarefyourffrstflinefoffdefence,fbutfnotfsufcient!f(Fusingfisfanfadvancedftopic!)

– Batteryffusesfgofrightfatfthefbattery,ftofprotectfthefwiringffromfcatchingffre.

  • Keepfdevicesfawayffromfcombustiblefmaterials.

– Usefconnectorsfwithfshells. – Enclosefyourfelectronicsfinfprojectfboxes. – Usefstructuralfsupportsftofkeepfcostumefmaterialsfawayffromfelectricalfparts. – Installfnon-combustiblefandfthermally-isolatingflayersfiffnecessary.

  • Workfcleanly!

– Usefheatfshrinkftofisolatefthings. – Makefproperfwirefjoints.f(Solderedf“linemanfsplice”,fdoubleflayerfheatfshrink.) – Usefmaterialsfratedfforfthefintendedfuse.f(Observefcurrentfratings,fvoltagefratings,fetc...)

slide-62
SLIDE 62

62

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-63
SLIDE 63

63

BatteryfFire

  • Considerfallfbatteriesfasfdangerous.

– Highfshort-circuitfcurrentsfcauseffre,fbatteryfover-heating. – Hotfchemicalsfcanfventfout,forfresultfinfafchemicalffre. – H2fisfafcommonfby-productfoffoverheatingfcells... – Batteryffusesfarefonlyfaffrst-linefoffdefence.

  • WithfLiPo,fonlyfusefprotectedfcells,fandfshieldfthemffromfmechanicalfharm.f
  • MuchfpreferredfarefgoodfqualityfUSBfpowerfbanks.
  • LiPofchemistryfcanfexperiencefthermalfrunawayfatfanyftime…
  • ALWAYSfkeepfanyftypefoffLiPofcellfinfafLiPofexplosionfandffre-prooffbag!f
  • KeepfthefbagfEXTERNALftofyourfcostume!
  • Makefsurefyoufcanfeasilyfdetachfthefbagf(pull-freefconnectorfonfthefwire)!
  • Useffrewallfstructuresf(e.g.fNomexflayers,fmetal,fetc...)
slide-64
SLIDE 64

64

BatteryfFire

slide-65
SLIDE 65

65

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-66
SLIDE 66

66

MaterialsfFlammability

  • Mostfcostumefmaterialsfarefpolymersforfpolymerfblends.

– Nylon,fspandex,fpolyester,fpolycotton,ffoams,fresins,fglues,f... – Manyfhaveflargefsurfacefareasf(imitationffur,ffeece). – Stufngfisfoftenfpolyurethaneffoam.

  • Allfthesefmaterialsfignitefeasilyfandfburnfexceptionallyfwell.f

– Somefemitftoxicffumes. – Manyfalsofmelt.f→fThisfisfveryfbadfnewsfforfburnfwounds!

  • Flamefretardantsfarefoffvitalfimportance!

– Theyfmakeftheffrefself-extinguishfandfkeepfitffromfspreading.

  • Howfdofyoufknowfiffyourfcostumefisfproperlyftreated?

– Onlyftwofpracticalfways:

  • Havefthefmaterialfinformationfforfeveryfpartf(tofwhichfstandards).
  • T

estfeachfmaterialfwithfafgasf(butane/propane)ftorch.f(Outside,fandfhavefmeansftof extinguishfaffrefatfhand.)fTheffrefshouldfstopfwhenftheffamefisfremoved.

– Bestftoftestfsamplesfoffallfthefmaterialsfused.

  • But,fnofguaranteefthatftherefwon’tfbefmaterialfandfstructurefinteractions.
  • Bewarefoffthefweakestflink!fOffonefmaterialfburnsfwild,fthefwholefcostumefisfunsafe.
slide-67
SLIDE 67

67

MaterialsfFlammability

slide-68
SLIDE 68

68

MaterialsfFlammability

  • Initialfmaterialfconclusions:

– Goodfqualityffurfappearsfproperlyffamefretardant. – Cheapffurfdefnitelyfisfnot! – Foamsfarefafproblem.fYoufmustfdefnitelyftestftheffoamfinf

yourfcostume!

  • Don’tfwearfnormalfunderclothes!

– Theyfburnfandfmeltfintofyourfskin. – BuyfNomexf(andfsimilarfmaterials)! – Gofshopfatfmotorsportsfplaces,fthey

havefthisfstuffforfdriverffrefsafety.

  • Firesfseemftofbuildfslowlyfwithfgood-qualityfmaterials.f

Therefisfsomeftimeftofextinguishforfescape.

slide-69
SLIDE 69

69

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-70
SLIDE 70

70

Escapability

  • You’refonffrefandfcan’tfputfitfout.fTherefareftoxicffumesfbuilding-

upfinsidefthefcostume.fNowfwhat?

  • Designfthefcostumefsofitfcanfbefescaped!f

– Accessftoffreshfair!f(removablefheadfpiece?) – Quickfegressffromfthefcostume!

  • Noffddlyfthings.fYoufhaveftofgetfoutfinfseconds,fevenfwhenf

panicking.

  • Yourfunderclothesfmayfnotfcatchffreforfmeltfasfyoufdofthis!
  • ConsiderfVelcrofescapefseams,fanfescapefknifefthatfyourf

handlerfcarries,fripablefseams,fetc…

  • Canfyoufquicklyfdisposefofflargefcostumeffeaturesfduringfanf

evacuation?f(E.g.:fwings.)

  • Havefafplanfandftestfit!
slide-71
SLIDE 71

71

Fire

  • Electricalffre
  • Batteryffre
  • Materialsffammability
  • Escapability
  • Fireffghting
slide-72
SLIDE 72

72

FirefFighting

  • Thefgoodfnews:fmostfofftheffrefhazardsfmentionedfarefeasilyfextinguished.

– Small,frechargablefLiPofbatteryffresfcanfbefextinguishedfwithfwater. – Mostfoffthefotherfmaterialsfarefalsofreadilyfextinguishfwithfwater.

  • Whenfonffre:

– STOPf–fDROPf–fROLL – Dofnotfrun!fYoufmayfhaveftofbringfafpersonftofthefgroundfifftheyfarefpanickingf

andfrunningf(legfsweep).

– Havefthefusualffreffghtingfdevicesfonfhand:

  • Water
  • Firefblanketsf(yourfhandlerfcanfcarryfthese!)
  • Firefextinguishersfarefafmixedfbag.fYoufarefaimingfatfafperson...
  • Water-basedfisfbest!
  • CO2,finfafpinch,fbutfnotfonfthefskinforffacefdueftofcooling!fSufocationfhazard!
  • Powder:fDofnotfuse!fVeryfirritatingftofmucousfmembranesf(lungs!)
  • Dofnotftakefclothesfthatfhavefalreadyfburnedfoffunderfanyfcircumstances.fCoverf

burnedfareasfwithfsterilefcotton.

slide-73
SLIDE 73

73

SafetyfRisksfoffAddingfGadgets

  • Thefrisksf(non-exhaustive)f

discussedfinfthisfsection:f

– Electrocution – Fire – Mechanical

slide-74
SLIDE 74

74

Mechanical

  • Actuatedfmechanismsfcanfgetfbodyfpartsftrappedfinfthem.f

Yours,fandfyourfaudience!fMindftiny,fcuriousffngers!

– Forcesfcanfbefhigh,fedgesfsharp…

  • Bewarefofflongfhair,fscarves,fetc…fgettingfcaughtfonf

spinningfaxlesf/ffans.

  • Makefsurefthatfeachfdangerfareafisfappropriatelyfshielded.
  • Sharpfstructures:fbothftofyourfaudiencefandfyourself:fwhatf

iffyouffall-downfinfyourfsuit.fIsftherefanythingfthatfcanf impalefanyone?f(E.g.:fscrews,fhorns,fclaws,fspikes,fetc...)

  • Areftherefthingsfthatfcanfgetfyoufentangledforfstrangled?f

(E.g.:fwires,fropes,fetc…)

slide-75
SLIDE 75

75

Safety:fWrap-Up

  • Thefimportantfrisksfarefquitefeasilyfmitigated.
  • But,fyoufhaveftofconsiderfyourfcostume,fitsf

materials,fandfusagefcarefully.

  • Therefwillfbefsomeflimitations.

– Beingfcreativefmeansfworkingfbothfwithfandf

aroundfthoseflimitations!

– Usually,ftherefisfafknownfsolution.

  • Don’tfpinchfpennies!

– Dofitfwell. – Scale-downfthefambitionfuntilfyoufcanfdofitfwell.

slide-76
SLIDE 76

76

ThefEnd!

  • Manyfcoolfcostumefideasfarefleftf

unexplored.fThisfisfthefwildffrontier!

  • Dofthemfwellfandfit’llfbefsafefandf

fun!fIt’sfnotfhard,fandfhelpfisfaround!

  • But,foffcourse,ftherefarefSofManyf

DumbfWaysftofDiefnotfdiscussedfinf thisftalk…fOverftofyou,fMetrofTrains!

slide-77
SLIDE 77

77

DumbfWaysftofDie!

“Dumb Ways to Die” PSA by Metro Trains, Melbourne, Australia