Está en la página 1de 5

2/3/2015

MondayExperiment:BootloadinganATmega32u4withArduino|ArduinoProjects

ArduinoProjects

SubscribeviaRSS

byJeffMurchison

HOME

ABOUT

OPENSOURCE/CODE

PRODUCTDOCUMENTATION

TUTORIALS

STORE

CONTACT

MondayExperiment:Bootloadingan
ATmega32u4withArduino
PostedbyJeffMurchisononJune3,2013

Search

13comments
Categories

SelectCategory
RecentPosts
IntroducingtheTinyLoadrAVR
Programmer
Docs:HowtousetheTinyLoadrAVR
Programmer
ArduinoPoweredFoosballScoreboard
(Part2)
ArduinoPoweredFoosballScoreboard
(Part1)
nRF24l01+2.4GHzWirelessArduino
TransceiverCode
PopularPosts
Tutorial:SendSMSfromyourArduino
usinganoldMotorolacellphone

AmonthortwoagoIorderedsomeofAtmelsATmega32u4microcontrollerstoplayaroundwith.
Iwasexcitedtogetthem,butatthetimeIwasreallybusyatwork,soIquicklyforgotabout
them.LastFridayIreceivedsomeTQFP44breakoutboardsanddecidedtospendsometimethis
pastweekendgettingtheArduinobootloaderandsomeexamplesketchesupandrunningonthe

Docs:HowtousetheTinyLoadrShield
MondayExperiment:Bootloadingan
ATmega32u4withArduino

ATmega32u4.Turnsout,itwasprettyeasy.

TinyLoadrShieldUpdated!
ArduinoISPDeluxeShield

OneofthebigfeaturesoftheATmega32u4isthatishasabuiltinUSBinterface.Thismeansthat
itssupersimpletoprogram(justconnectaUSBcableandyouregoodtogo).Nowinorderto
uploadArduinosketchestoit,IfirsthadtoburntheArduinobootloadertoit.SinceIdonthave
aprogrammer,IusedanArduinoUno.

Archives
October2014
August2013

ThebreakoutboardsfortheATmega32u4IgotfromoneofmyfavouriteonlineshopsDipmicro.
Isolderedthemicrocontrollerusingmyhotairstation.Icouldhaveusedmysolderingiron,but
thatslessfun.

July2013
June2013

Oncethatwasdone,IuploadedtheArduinoISPsketchtomyUno.ThenIputthe10uFcapacitor
betweenRESETandGND.Iaddedthe32u4tomybreadboardandputa1uFdecoupling
capacitorbetweenpin6andGND.ThenIaddedthe16MHzcrystaland22pFceramiccaps,wired
theappropriateSPIpins,andwiredalloftheGNDandVCCpins.Heresadiagramofthewiring:

December2012
November2012
October2012
September2012
July2012

http://murchlabs.com/mondayexperimentbootloadinganatmega32u4witharduino/

1/5

2/3/2015

MondayExperiment:BootloadinganATmega32u4withArduino|ArduinoProjects

IbelievethatsomeoftheVCCandGNDconnectionsarealsomadeinternallyonthe32u4butit
doesnthurt.
Onceitwasallwiredup,IpluggedmyUnobackintomylaptop,openedtheArduinoIDE,chose
ArduinoLeonardofromthelistofboards,andhitBurnBootloader.Afterabout20seconds,it
wasfinished.
Now,inordertotestit,IremovedmyArduinoUno.WhatIhadnowwasaverybasicArduino
Leonardoclone.IaddedanLEDonpin25(digitalpin4),andaswitchfromtheRESETpin(13)
toGND.IfyouhaventusedanArduinoLeonardobefore,theyarealittletrickyforloading
sketchesyouhavetoholdtheresetbutton,hitUploadintheArduinoIDE,andthenreleasethe
button.Ifyougetanerror,justtryagain.
Lastly,IaddedtheUSBconnections.IusedastrippedUSBcable,whichhadfourwires:
BlackGND
Red5V
GreenD+
WhiteD
TheGNDand5V,Iconnectedtothepowerrails,andthedatalinesIconnectedtopins3and4
througha22ohmresistor.Pin3isD(white)andpin4isD+(green):

http://murchlabs.com/mondayexperimentbootloadinganatmega32u4witharduino/

2/5

2/3/2015

MondayExperiment:BootloadinganATmega32u4withArduino|ArduinoProjects

Withthewiringdone,IpluggedtheUSBcableintomylaptopandswitchedbackovertothe
ArduinoIDE.IopenedtheBlinkexample,changedtheLEDpintopin4,helddownthereset
button,hitUpload,andletgooftheresetbutton.
Afewsecondslater,myLEDstartedblinking.Success.

Categories:Arduino,Tutorials.Tags:arduinoleonardo,ArduinoISP,atmega32u4.

13ResponsestoMondayExperiment:BootloadinganATmega32u4withArduino
vinod

January14,2014at3:52am

hello,
hereinuhaveshownprogrammingviaUSB.Say,iwldliketodoviaaserialport.
CaniconnectaFT232anddothejob.
Vinod.
Reply
JeffMurchison

January20,2014at3:44pm

Itshouldwork,yeah.
Reply

Harsh

May10,2014at11:27pm

noudonotneedtodothatcuz.theATMega32u4
isnotamegaAVRbutaAtmel8bitAVRRISCbasedmicrocontroller.
itcanprogramitselfoverausbasithasNativeUSBCapabilities(afterburningthe
bootloader.
youwillsurelyseearduinoleonardoonyourcomportafteryouconnectitusingasimple
usbcable.
thereisnowayyoucanprogramitusingthetxandrxpinsoftheftdichip..ifyouneedto
programitexternallyyouneedanISP(ORAVRISP)ORUSBASPPROGRAMMER.
YOUAREACTULLYUSINGTHEUNOASISPasthenamesuggestsArduinoasISP.
Reply

vinod

January16,2014at9:30am

uhaveconnectedpin2toGND.ItsUVCC.
Reply
JeffMurchison

January20,2014at3:45pm

ThanksIllfixthat.
Reply

http://murchlabs.com/mondayexperimentbootloadinganatmega32u4witharduino/

3/5

2/3/2015

MondayExperiment:BootloadinganATmega32u4withArduino|ArduinoProjects

Luccki

January31,2014at6:07pm

thankyou!
Reply
GaryN

March2,2014at10:16pm

idontknowthelittletrickfromLeonardo.Bigthanks!
Reply
vinod

March27,2014at1:53pm

Hello,
Iamgettingthemessageyikesinvaliddevicesignature+arduino
Anytipspls.
Vinod.
Reply
Harsh

May10,2014at11:30pm

thiserrormaybeduetonoproperselectionofbootloaderornotproperburningof
bootloader.
alsomakesurethatyouhaveconnecteda16MHzcrystal
Reply

vinod

April1,2014at1:45pm

Hello,
Iamabletouploadthebootloader.
But,IwantedtoprogramtheAtmega32u4viaUART(Tx/Rx)pins.Canwedothat.
Vinod.
Reply
seb

July22,2014at1:08pm

Thanks!Icouldntgetitrunning,turnedoutIforgotthecapacitoratpin6
Reply
Liudr

September16,2014at1:24am

Thanksforthetutorial.Iwastedmytimetryingotherthingsthatdidntwork.
Reply
Anonymous

September24,2014at7:36pm

Anawfullotofpeoplearehavingproblemswithtryingtoprogramthese32u8chipviaUSB.
TheLeonardobootloaderONLYallowsprogrammingviaUSB.Theyneedtochangethe
bootloadertoallowtheFTDIoption.
Reply

LeaveaReply
Youremailaddresswillnotbepublished.Requiredfieldsaremarked*

Name
*
Email
*
Website

Comment

http://murchlabs.com/mondayexperimentbootloadinganatmega32u4witharduino/

4/5

2/3/2015

MondayExperiment:BootloadinganATmega32u4withArduino|ArduinoProjects

YoumayusetheseHTMLtagsandattributes:<ahref=""title=""><abbrtitle=""><acronym
title=""><b><blockquotecite=""><cite><code><deldatetime=""><em><i><q
cite=""><strike><strong>

Typethetext
Privacy&Terms

PostComment

PreviousPost

PoweredbyWordPressandCuttlefish.

http://murchlabs.com/mondayexperimentbootloadinganatmega32u4witharduino/

NextPost

Top

5/5

También podría gustarte