Você está na página 1de 10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

HowtoInstallFTDIDrivers
CONTRIBUTORS:
FAVORITE

PAULSMITH
4

Introduction
Inthistutorial,wellshowyouhowtoinstallFTDIdriversonmultipleoperatingsystems.Althoughthistutorial
waswrittenusingWindows7,MacOSX10.6,andUbuntu13.04,theprocessshouldbeverysimilar,ifnot
exactlythesame,forotherversions/variationsoftheseoperatingsystems.

SuggestedReading
Beforeyoubeginthistutorial,youshouldhavetheArduinoIDEinstalledonyourcomputer.Checkoutour
InstallingArduinotutorialforastepbystepguide.
Herearesomeothertutorialsandconceptsyoumaywanttofamiliarizeyourselfwithbeforereadingthis
tutorial:
WhatisanArduino?
SerialCommunication
RS232vsTTLSerialCommunication
LogicLevels
ConnectorBasics
Alright,letsgettowork!YoucanvisitthenextsectiontolearnmoreabouttheFTDIBasicandwhyyouneed
theFTDIdrivers,oryoucanskipstraighttotheoperatingsystemofyourchoice!

MeettheFT232RL
TheFT232RLisoneofthemorecommonlyusedICsusedtoconvertUSBsignalstoUARTsignals.This
processisveryhandyinthatitallowsyoucommunicatewithanduploadcodetoanArduinoorother
microcontrollerwithouttheneedforanexternalprogrammer.SparkFuncarriesaboardcalledtheFTDI
BasicthatconvenientlybreaksoutthenecessarypinsontheFT232RLtoperformtheseactions.

SparkFuns5VFTDIBasic.NoticetheICFT232RL.
ThereareafewdifferentflavorsoftheFTDIBasic:
5VFTDI
3.3VFTDI
https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

1/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

LilyPadFTDI
Ifyouareusinga5voltdevice,youwillneedthe5voltFTDI.Ifyouhavea3.3voltdevice,youguessedit,
usea3.3voltFTDI.LilyPadboardsalloperateon3.3V.
WealsocarryacompletebreakoutboardfortheFT232RLshouldyouneedaccesstomorepinsthanthe
FTDIBasicprovides.
HereisalistofsomeSparkFunproductsthatrequiretheuseofanFTDIBasic,comewithanFTDIBasic,or
haveanFT232RLchiponboard:
RedBoard
ArduinoPro5Vand3.3V
ArduinoProMini5Vand3.3V
MegaPro5Vand3.3V
MegaProMini
LilyPadMainBoard
LilyPadSimpleBoard
ArduinoFIO
ProtosnapProMini
ProtosnapLilyPadDevelopmentBoard
ProtosnapLilyPadDevelopmentBoardSimple
TherearealsosomelegacyArduinoboardsthatusetheFT232RL.TheArduinoDiecimilaandDuemilanove
mainboardsalongwiththeoriginalArduinoMegaallusetheFT232RLIC.Ifyouhaveoneoftheseolder
versions,youllwanttousetheFDTIdriversaswell.ForacompletelistofallArduinoboards,checkoutthis
page.NewerversionsofArduinoboards,suchastheUno,useadifferentcommunicationIC,andtheywill
notbecoveredinthistutorial.
NowthatyouknowwhytheFTDIBaisicisimportantandwhatproductsitisusedfor,letslearnhowtoinstall
thedrivers.

WindowsQuickandEasy
Note:ThescreenshotsinthistutorialarefromWindows7.Theprocessshouldbeverysimilarfor
otherversionsofWindows.TheexceptiontothisisWindows8.Forinstructionsonhowtodisable
devicedriversignatures,pleasevisitthistutorial.

NoteforEducators:Youwillmostlikelyneedtoobtainadministrativeprivilegesfromyournetworkor
ITadministratorinordertoinstallthesedrivers.

1.Bydefault,windowsdoesnothaveFTDIdriversinstalled.IfyoupluginyourFTDI,opentheArduino
IDE,gotoTools>SerialPorts,andseenothing,youneedthedrivers!Letsgogetthem!

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

2/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

2.DownloadtheFTDIDriverhere.
3.ChooseRun,onceitishasfinisheddownloading,orfindthefileyoujustdownloaded
CMD_v2.12.00_WHQL_Certified.exeanddoubleclickittorunit.

4.ChooseExtract,andcontinuethroughtheinstallationuntilitfinishes.

5.Ifeverythingwassuccessful,youshouldseesomenicegreencheckmarks,indicatingsuccess!Note:
Youmayneedadministratorprivilegesonyourmachineinorderforthistorunproperly.Ifthingsdidnt
workout,trythenextsectionofthistutorial:WindowsInDepth.

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

3/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

6.OpenuptheArduinoIDE,andgotoTools>SerialPort.IfyounowhaveaCOMport,
congratulations!Again,ifsomethingwentwrong,eitherretrythistutorialorgiveWindowsInDeptha
try!

WindowsInDepth
Note:ThescreenshotsinthistutorialarefromWindows7.Theprocessshouldbeverysimilarfor
otherversionsofWindows.TheexceptiontothisisWindows8.Forinstructionsonhowtodisable
devicedriversignatures,pleasevisitthistutorial.

NoteforEducators:Youwillmostlikelyneedtoobtainadministrativeprivilegesfromyournetworkor
ITadministratorinordertoinstallthesedrivers.

1.PluginyourFTDIusingaUSBcable.Windowsdoesnthavethecorrectdrivers,soletsfindthem!

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

4/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

2.NavigatetotheFTDIwebsite,andchoosetheVCP(VirtualComPort)optionnearthebottom.

3.Nowchooseeitherthe32bitversionorthe64bitversion.Notsurewhichyouhave?Thenextsteps
willgooverhowtofindthatinformation.Ifyoualreadyknowwhichversionyouarerunning,youmay
skipthenexttwosteps.

4.Openthestartmenu,rightclickonComputer,andleftclickonProperties.

5.LookunderSystemtype,toseewhichversionyouhave.

6.NowgobacktotheFTDIsite,rightclickonthecorrectversion,andsaveittoyourcomputer.
Rememberwherethefilesaresaved.Wellneedtheminthenextstep.

7.Navigatetothefoldercontainingthefiles.Theywillbeinsideofa.zipfile,soyoullneedtoextract
them.RightClickonthe.zipfile,andchooseExtractAllWhenthenextwindowappears,asshown
above,payattentiontowhereitisextractingthefiles.MakesurethatShowextractedfileswhen
completeischecked,andclickExtract.

8.Whentheextractioniscomplete,thefolderisopened.Again,takenoteofthisfolderlocation.Thisis
theonecontainingthedrivers.

9.Werealmostthere!Openthestartmenu,rightclickonComputer,andleftclickonManage.Youwill
needadministratorrightstodothis.Ifyouarentanadministratoronyourcomputer,talktotheperson
whoisandhavethementertheircredentials.
https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

5/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

10.LeftclickonDeviceManagerintheleftmostcolumn.Hereiswhereweseetheoffendinghardware.It
hasanexclamationmarknexttoit.

11.RightclickonFT232RUSBUART,andleftclickUpdateDriverSoftware

12.NowchooseBrowsemycomputerfordriversoftware.

13.LeftclickBrowse,andnavigatetothelocationoftheextractedfiles.Choosetheextractedfolder.
Thereisnoneedtosearchanyfurtherinthefolder.ThenleftclickOK.

14.MakesureIncludesubfoldersischecked(veryimportant!),andleftclickNext.

15.Afteramoment,youwillseeasuccessmessage!LeftclickClose.

16.TheDeviceManagerpagewillrefreshandyouwillseeanewitemwithanexclamationmarknamed
USBSerialPort.Youwillneedtoinstallaseconddriverforthesamedevice.Followthesteps115,
asbefore,andusethesamedriverfoldertoo!

17.Oncethosestepsarecomplete,youwillseeanothersuccessmessage!LeftclickClose.

18.TheDeviceManagerPagewillrefreshagainandshowUSBSerialPort(COMxx),wherexx=some
number.Congratulations,younowhavetheproperFTDIdriversandcanbegintouseyourdevice!

Note:Youshouldonlyneedtogothroughthisprocessonce.EverysubsequentFTDIdeviceyouplugin
shouldnowhavethesedriversassociatedwithit.However,ifthisisnotthecase,youcanfollowthese
instructionsagainforotherdevices.
Note:IfyouhavemorethanoneFTDIdevicepluggedintoyourcomputeratthesametime,allofthe
deviceswillshowupunderthismenu.Tofigureoutwhichdeviceiswhich,lookundertheSerialPortmenu.
Takenoteofthenamesofeachdevice.Thenunplugthedeviceyouwanttouse.GobacktotheSerialPort

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

6/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

menu.Thedeviceyouunpluggedshouldnolongerbelisted.Thatisthedeviceyouwant.Plugitbackin,and
selectthedevicethathasnowreappeared.YoucanalsochecktheComportnumberintheDeviceManger
toseewhichdeviceisassociatedwitheachComport.

Linux
Note:ThescreenshotinthistutorialisfromUbuntu13.04.Theprocessshouldbeverysimilar,ifnot
exactlythesame,forotherversions/variationsofthisoperatingsystem.

Note:YouwillmostlikelyneedtoobtainadministrativeprivilegesfromyournetworkorITadministrator
inordertoinstallthesedrivers.

1.PlugintheFTDIdevicetoaUSBcable.
2.WhenyoudownloadtheArduinoIDEinLinux,thedownloadcomeswiththeFTDIdriversbundledwith
theIDE.However,ifyoujustopenArduinofromthedesktop,youllnoticethat,ifyouclickonTools,
theSerialPortoptionisgrayedout.

3.LinuxincludesthedriversnecessarytouseArduino,andnoadditionalinstallisneeded.However,
permissionsmightneedtobeconfigured.Forcurrentinstructionsonhowtosetupthesepermissions,
visitthispage.
AnalternativemethodistorunArduinoasrootintheterminalwiththefollowingcommand:
sudoarduino

However,thismethodisencouragedonlyifyouknowwhatyouaredoingandshouldonlybeusedas
alastresort.Youwillalsoneedtoenteryouradministrativepasswordtorunasroot.
4.Arduinoshouldopen,andthistimetheSerialPortmenuisavailable.

5.TheFTDIdevicewillshowupunderthismenu.Itshouldbenamed/dev/ttyUSB0.Thenumbermay
varydependingonhowmanyUSBdevicesyouhavepluggedintoyourcomputer.Thatsall.
Note:IfyouhavemorethanoneFTDIdevicepluggedintoyourcomputeratthesametime,allofthe
deviceswillshowupunderthismenu.Tofigureoutwhichdeviceiswhich,lookundertheSerialPortmenu.
Takenoteofthenamesofeachdevice.Thenunplugthedeviceyouwanttouse.GobacktotheSerialPort
menu.Thedeviceyouunpluggedshouldnolongerbelisted.Thatisthedeviceyouwant.Plugitbackin,and
selectthedevicethathasnowreappeared.

Mac
Notice:ThescreenshotsinthistutorialarefromOSX10.6.Theprocessshouldbeverysimilar,ifnot
exactlythesame,forotherversionsofMacOSX.IfyouareonOSX10.10Yosemite,followalongto
installthedrivers.IfyouneedtoinstalldriversonYosemite,pleasevisitthebottomofthissection.Most
peoplewillbeusingtheVCPdriversandnottheD2XXdrivers.

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

7/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

NoteforEducators:Youwillmostlikelyneedtoobtainadministrativeprivilegesfromyournetworkor
ITadministratorinordertoinstallthesedrivers.

1.Mostofthetime,whenyouinstallArduinoonMacOSX,thedriversareinstalledautomatically.
However,iftherewasaproblemwiththeinstallationandyoudontseeanyoptionsthatinclude
usbserialundertheTools>SerialPortmenu,thenyouwillneedtoinstallthedrivers.Youmayalso
needtoinstallthefullFTDIdriversifyouarerunningOSX10.10orlater.Thefactorydriversarenot
complete.

2.OSX10.9(Mavericks)orabove:Downloadthisdriver.Locatethefile
FTDIUSBSerialDriver_v2_3.dmgfilethatwasdownloadedtoyourcomputer,anddoubleclickonitto
open\runit.
OSX10.8(MountainLion)orlower:Downloadthisdriver.Locatethefile
FTDIUSBSerialDriver_v2_2_18.dmgfilethatwasdownloadedtoyourcomputer,anddoubleclickon
ittoopen\runit.
IfyouarenotsurewhichversionofOSXyouhave,clickontheappleiconintheupperleftcornerof
yourscreenandchooseAboutThisMac.YouwillthenseeVersion10.X.Yusethe10.Xtodetermine
yoursystemversion.
IfyouareusingthedriverforOSX10.8(MountainLion)orolder,youwillseetwofiles.Openupthe
driverfilethatcorrespondswithyouroperatingsystem.Formostusers,itwillbethesecondfile:

3.Continuethroughtheinstallation,andwaitforittofinish.ThenclickClose.

4.NowopentheArduinoIDE.UnderTools>SerialPortyouwillnowseeausbserialoption.
Congratulations,youreallset!

Note:Youshouldonlyneedtogothroughthisprocessonce.EverysubsequentFTDIdeviceyouplugin
shouldnowhavethesedriversassociatedwithit.However,ifthisisnotthecase,youcanfollowthese
instructionsagainforotherdevices.
Note:IfyouhavemorethanoneFTDIdevicepluggedintoyourcomputeratthesametime,allofthe
deviceswillshowupunderthismenu.Tofigureoutwhichdeviceiswhich,lookundertheSerialPortmenu.
Takenoteofthenamesofeachdevice.Thenunplugthedeviceyouwanttouse.GobacktotheSerialPort
menu.Thedeviceyouunpluggedshouldnolongerbelisted.Thatisthedeviceyouwant.Plugitbackin,and
selectthedevicethathasnowreappeared.

UnidentifiedDeveloperError
OnnewerversionsofOSX,whenyoudoubleclicktheinstallpackagesinsidetheFTDIdiskimage,youmay
bepresentedwithaveryWindowsesquetypeerroraboutnotbeingabletoopenthefilesbecausetheyare
notfromanidentifieddevelopers.ThisisverysimilartotheunsigneddriverissueinWindows8.

QuickFix
https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

8/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

Togetaroundthis,simplyrightclickthepackageyouwanttoinstall,orpressCTRL+click,ifyoudonthave
arightclick.Thenselectopenfromthemenu.

Youwillthenbegivenanotherwindowaskingifyouarecertain.ClickOpen,andproceedwiththeinstallation
asstatedabove.

InDepthFix
Foramorepermanentfix,youcanfollowtheseinstructions.However,thismethodisnotsuggestedasit
leavesyourcomputervulnerable.
OpenyourSystemPreferences.

Onceopen,clicktheSecurity&Privacyicon.

UndertheGeneraltab,youshouldseeasectionaboutallowingtherunningofdownloadedapplicationsfrom
specificsources.InpreveiousversionofOSX,thedefualtwassettoAnywhere.However,thedefualtsetting
isnowMacAppStoreandidentifieddevelopers.

TousetheFTDIdrivers,youllneedtosetthisbacktoAnywhere.First,youmayneedtoclickonthelittle
lockiconandenteryouradminpasswordtomakethesechanges.
Noteforeducators:Youmayneedtogetyounetworkadministratortocomeandunlockthecomputerin
ordertoinstallthesedrivers.
Onceunlocked,clicktheAnywhereoption.Anotherobnoxiouswindowmayappearaskingyouifyouresure
youwanttoallowthis.ClickAllowfromAnywhere.Or,youcanfollowthedirectionsinthiswindow,ifyou
dontwanttomakeyourMaclesssecure.

YoushouldnowbeabletoinstalltheFTDIdrivers.

FTDIDriversandOSXYosemite
WithMacOS10.9(Mavericks)andlater,ApplehasbuilttheirownversionoftheFTDIVCPdriverintothe
operatingsystem(AN134).However,thereseemstobesomeconflictbetweendriversfromFTDIchip.com
andtheonesinherenttoApple.Luckily,thereisasolutiontothisproblem,anditcomesfromFTDIdirectly.

QuickFix
IfyouaretryingtousetheFTDIVCPDriverinyourapplications,itwillnotworkduetoaconflictbetweenthe
VCPandD2XXdrivers.Inordertogetaroundthis,theApplesuppliedDrivermustbeuninstalled.Plugin
theFTDIdeviceinquestion,andtypethefollowingcommandinaTerminalwindow:
sudokextunloadbcom.apple.driver.AppleUSBFTDI<ret>

InDepthFix
Iftheabovedoesntwork,youmayhavebetterluckusingthisscriptfromFTDI.
https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

9/10

7/5/2016

HowtoInstallFTDIDriverslearn.sparkfun.com

DOWNLOADSCRIPTHERE
ClickingonthisfilewillbringuptheScriptEditoronallMacs.Thescriptcanberunbyclickingontherunicon
(blacktriangle).Again,makesureyourFTDIdeviceisconnected.
Youcanmakethisscriptintoaclickableiconbyexportingthescriptasanapplication.IntheScriptEditor,
selectExportfromtheFilepulldownmenu:

IntheExportdialog,selectApplicationastheFileFormat.Youcanchooseanynamefortheapplication.

YoushouldnowhaveanautomatedAppleScripticontouseonyourMac.WiththeApplesuppliedDrivers
uninstalled,youmayreturntothetopofthissectionandinstalltheFTDIVCPDriverasneeded.Repeatthis
processforanyotherFTDIdevicesyouareusing.Youmayneedtorepeatthiseverytimeyourestartyour
computer.

Ifyoureceivethiserror,itmeansthatthedriverhasbeenuninstalledalready,andyouwillneedtoinstallthe
FTDIVCPDriver,asstatedabove.

ResourcesandGoingFurther
Checkoutthesetutorialstodiveevendeeperintotheworldofmicrocontrollers!
InstallinganArduinoLibraryHowdoIinstallacustomArduinolibrary?Itseasy!
LearnhowtouseabreadboardtointerfaceyourArduinowithcircuitsbuiltbyyou.
Learnthebasicsofetextileswiththisgreattutorial
LookingforsomethingwithalittlemorepowerthantheArduino?CheckoutthepcDuinogetting
startedguide.

https://learn.sparkfun.com/tutorials/howtoinstallftdidrivers/all

10/10

Você também pode gostar