Professional Documents
Culture Documents
Herearesomeofthemostmethodsusedforpoweringaproject:
ACtoDCpowersupplies(likeacomputerorlaptopwoulduse)
VariableDCbenchpowersupply
Batteries
ViaaUSBcable
Fourcommonwaystosupplypowertoyourproject
Voltage/Current Considerations
How much voltage do I need for project X?
Thisdependslargelyonthecircuit,sothereisnoeasyanswertothisquestion.However,most
microprocessordevelopmentboardsliketheArduinoUnohaveavoltageregulatoronboard.Thisallows
ustosupplyavoltageinaspecifiedrangeabovetheregulatedvoltage.AlotofmicroprocessorsandICs
ondevelopmentboardsrunat3.3or5Voltsbuthavevoltageregulatorsthatcanhandleanywherefrom6V
to12V.
Thepowercomesfromapowersupplyandisthenregulatedcloselybyavoltageregulatorsothateach
chipispoweredataconsistentvoltageevenwhenthecurrentdrawmayfluctuateatdifferenttimes.Hereat
SparkFun,weuse9Vpowersuppliesformanyofourproductsthatoperateinthe3.3Vto5Vrange.
However,toverifywhatvoltagesaresafe,itisrecommendedthatyoucheckthedatasheetforthevoltage
regulatoronthedevelopmentboardtoseewhatvoltagerangeisrecommendedbythemanufacturer.
DigitalMultimeter
WehighlyrecommendhavingaDMMinyourelectronicstoolbox.Itsgreatformeasuringcurrentor
voltage.
Connections
How do I connect my battery or power supply to my
circuit?
Therearemanywaystoactuallyconnectapowersupplytoyourproject.
Commonwaystoconnectapowertoyourcircuit
Variablebenchtoppowersuppliescommonlyconnecttocircuitsusingbananajacksorwiresdirectly.
Thesearealsosimilartotheconnectorsfoundonthemultimeterprobecables.
Manyprojectsarebuiltonabreadboardfirst,asaprototype,beforetheybecomeafinalproduct.There
arenumerouswaystopoweryourbreadboardcircuit,manyoftheminvolvingathesameconnectors
mentionedhere.
Onceaprojectispasttheprototypingphase,itwillusuallyenduponaPCB.Oneofthemostcommon
powerconnectorsusedonafinishedPCB,inbothconsumerelectronicsandhobbyelectronicsalike,is
thebarrelconnector,alsoknowasabarreljack.Thesecanvaryinsize,buttheyallfunctionthesameand
provideasimply,reliablewaytopoweryourproject.
Batteriesaregenerallyheldinacasethatholdsthebatteriesandconnectsthethecircuitviawiresora
barreljack.SomebatterieslikeLithiumPolymerIonbatteriesoftenuseaJSTconnector.
Tolearnmoreaboutdifferentpowerconnectors,pleaseseeourconnectorstutorial.
Remote/Mobile Power
Which battery should I choose?
Whenyourepoweringaremotecircuit,thesameissuesoffindingabatterythatdeliversthepropervoltage
andcurrentstillapply.Batterylife,orcapacity,isameasureoftotalchargethebatterycontains.The
capacityofabatteryisusuallyratedinamperehours(Ah)ormilliamperehours(mAh),andittellsyou
howmanyampsafullychargedbatterycansupplyoveraperiodofonehour.Forexample,a2000mAh
batterycansupplyupto2A(2000mA)foronehour.
Batterysize,shape,andweightisalsosomethingtoconsiderwhenmakingyourprojectmobile,especially
ifitsgoingtobeonsomethingthatflieslikeasmallquadcopter.Youcangetaroughideaofthevariety
byvisitingthiswikipedialist.Learnmoreaboutbatterytypesinourbatterytechnologytutorial.
Whenyouconnecttwoormorebatteriesinparallel,thecapacitiesadd.Forexample,fourAAbatteries
connectedinparallelwillstillproduce1.5V,howeverthecapacityofthebatterieswillbequadrupled.
eachLEDaddedmakesthecircuitdrawabout10mAmorecurrent.NowletsconnecttwoMicroMetal
motorstothemicrocontrolleraswell.Eachoneoftheseusesapproximately25mAwhenturnedon.Our
totalpossiblecurrentdrawisnow:
LetschooseastandardalkalineAAbatteryforthisbecauseithasmorethanenoughcurrentcapability(up
to1A),hasadecentbatterycapacity(usuallyintherangeof1.5Ahto2.5Ah),andisverycommon.Well
assumetheaverageis2Ahforthisexample.ThedownsidetousingaAAisitonlyhasa1.5Voutput,and,
sincetherestofourcomponentswillrunon5V,weneedtostepupthevoltage.Wecanusethis5Vstepup
breakouttogetthevoltageweneed,orwecanusethreeAAbatteriesinseriestogetusclosetothevoltage
weneed.ThreeAAsinseriesgivesusavoltageof4.5V(3times1.5V).Youcouldalsoaddanother
batteryforatotalof6Vandregulatethevoltagedowntowhatyourcircuitrequires.
Tocalculatehowlongacircuitwilllastonbatterypower,weusethefollowingequation:
Foracircuitpoweredby3AAsinparallelthatsconnectedtoacircuitwithaconstant100mAcurrent
draw,thistranslatesto:
Wewouldideallyget60hoursofbatterylifeoutofthesethreealkalineAAsinthisparallelconfiguration.
However,itsgoodpracticetoderatebatteries,whichmeanstoassumeyouregoingtogetlessthanideal
batterylife.Letsconservativelysaythatwellget75%oftheidealbatterylife,andthereforeabout45
hoursofbatterylifeforourproject.
Batterylifecanalsovarybasedontheactualcurrentdrawamount.HeresagraphfromanEnergizerAA
batteryshowingitsexpectedbatterylifebasedonconstantcurrentdraw.
EnergizerAA,CurrentvsBatteryLife
Thisisjustoneofthenumerousconfigurationsyoucouldusetopoweryourprojectremotley.