Você está na página 1de 8

(/) let's make Explore(/tag/typeid/) Login(/account/login/) | SignUp(/account/gopro)

Contests(/contest/) Classes(/classes/)

Publish(/about/create.jsp)
Featured: 3DPrintingClass(https://www.instructables.com/class/3DPrintingClass/) Arduino(/tag/typeid/categorytechnology/channelarduino/)

Sewing(https://www.instructables.com/tag/typeid/categorycraft/channelsewing/)

HighQuality
Resistors
TrustedbyOEM'SWorldwide.
ISO/TS16949:2009Certified
EnquireNow
Company

AVRHighVoltageProgramming(FusesRescue) by
mnedix(/member/mnedix/)inmicrocontrollers(/tag/typeid/categorytechnology/channelmicrocontrollers/)

Download h(/id/AVRHighvoltageprogrammingFusesrescue/) 2Steps .

Collection IMadeit! Favorite Share

AboutThisInstructable

License:
8 19,003 views
36 favorites

(/file/FZM9W2IHWLD2NFE/)
mnedix
(/member/mnedix/)
Follow 1
HalfayearagoIrestartedoneofmyoldpassionselectronics.I'vestudied
(/member/mnedix/)
electronicsincollegebutthathappenedduringtheMiddleAge(20yrsago).
WhileIwasexpectingthishugeleapinschematicsandwhatahobbyistcando Morebymnedix:
nowadays,Istillhadsomedifficultiesincatchingup.

OnewhichfrustratedmegreatlywasthefusesforAVR/PICmicrocontrollers
(MCUs).IfoundalotofinterestingschematicswithMCUsandfusesisavery (/id/NixiePC

importantaspectwhenprogrammingthem.However,becauseIwasanewbiein
thisdepartment,Ididn'twanttospendtoomuchonthissoIboughtquitecheap
programmersfromeBay.ThePICprogrammerworkedfinebuttheUSBAsp
clonethatIboughtforAVRswasnotaverygoodchoice.Animportant
percentageofmyburninggotscrewedupbecausethefuseswerewrongly MeterMonitor/)
programmedmostofthetimestheAVRbecameunrecognizable,ithada
wrongID,inotherwordsitbecamealmostdead/unusable.
(/id/AVRHighvoltageprogramming
Fusesrescue/)

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Ad
Arduino&RaspberryPi
Freedrag&dropprojectbuilderstreamlines
creation&offerscontrolfromyourphone.
Cayenne

Step1:ConceptandSchematic
IstartedlookingonthewebforasolutionandIfoundaverygoodwaytoreset
thefusesusinghighvoltageprogramming(linkhere:
http://denki.world3.net/avr_rescue.html).Isuggestreadingthelinkforabetter
understandingofhowitworks:)

Itwasfunbuildingitonabreadboardforthefirsttimebutitbecameboringand
timeconsumingstartingwiththesecond,thirdandsoon.

IdecidedtojustputitonaPCBandhaveithandywheneverIneedtoquickly
resetthefusesforanAVR.Theschematicisverysimple,Iusedminimum
components,thelinesbetweenthe"source"MCUand"destination"arenot
protectedby1KresistorsandIalsodidn'tuseanexternalcrystalforthe
"source".Poweringtheschematicandthe"source"MCUisdoneviaasimple
LDOLM78L05Ibelieveany5VLDOgiventhatithasthesamepinout.Ididn't
botherwithfiltering,it'snotquiteimportantsincethevoltagenoiseisnot(very)
relevantforthiscircuit.

TheAVRresetprocessisstraightforward,aftermountingthe"destination"MCU
intheIC2socket,onehastopoweronthecircuit.TheLEDwillstayonuntilthe
ResetbuttonispresseduponpressingtheResetbutton,theLEDwillgooffand
thedefaultfuseswillbeburnedonthe"destination"MCU.Whenburningis
complete,theLEDwillcomeonagain.Itwilltakefewsecondstoburnthe
defaultfuses,around10seconds,sodon'tpanic.

TheEAGLEfilesandHEXforthe"source"MCUcanbefoundhere:
EAGLECADfilesbothschematicandboard
EAGLECADprintsbothtopandbottomlayers

HEXfileforthe"source"yes,onehastoprogramitfirstandthenusethis
MCUas"source"
PS:Ididn'tliketheTO92defaultpinoutoftheLDOsoI'vebuildanewlibrary
withthepinsinlineforeaseofPCBdesign.OnejusthastocopyitintheEagle
Lbrfolderandloaditinthesoftware.

AVR_Fuses.brd
Download(https://cdn.instructables.com/ORIG/FDL/WI7U/HWLD2EUA/FDLWI7UHWLD2EUA.brd)
(https://cdn.instructables.com/ORIG/FDL/WI7U/HWLD2EUA/FDLWI7UHWLD2EUA.brd)

AVR_Fuses.sch
Download(https://cdn.instructables.com/ORIG/FKO/S36Q/HWLD2EUB/FKOS36QHWLD2EUB.sch)
(https://cdn.instructables.com/ORIG/FKO/S36Q/HWLD2EUB/FKOS36QHWLD2EUB.sch)

AVR_Fuses_Top.pdf
Download(https://cdn.instructables.com/ORIG/FNV/3Q2O/HWLD2EUD/FNV3Q2OHWLD2EUD.pdf)
(https://cdn.instructables.com/ORIG/FNV/3Q2O/HWLD2EUD/FNV3Q2OHWLD2EUD.pdf)

AVR_Fuses_Bottom.pdf
Download(https://cdn.instructables.com/ORIG/F86/YKDE/HWLD2EUC/F86YKDEHWLD2EUC.pdf)
(https://cdn.instructables.com/ORIG/F86/YKDE/HWLD2EUC/F86YKDEHWLD2EUC.pdf)

AVRRescue0.2.zip
Download(https://cdn.instructables.com/ORIG/FTX/TXO1/HWLD2EUL/FTXTXO1HWLD2EUL.zip)


(https://cdn.instructables.com/ORIG/FTX/TXO1/HWLD2EUL/FTXTXO1HWLD2EUL.zip)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
LM78Lxx.lbr
Download(https://cdn.instructables.com/ORIG/FZZ/ZJ5E/HWLD2NFD/FZZZJ5EHWLD2NFD.lbr)

(https://cdn.instructables.com/ORIG/FZZ/ZJ5E/HWLD2NFD/FZZZJ5EHWLD2NFD.lbr)

Step2:Overview

(/file/FQVYZO0HWLD2EUG/)

(/file/FHRUB43HWLD2EUH/) (/file/F7QFP6THWLD2EUK/)

Theschematicworkswellforme,itisdoingwhatit'ssupposedtodo.TheLED
colorisnotimportant,it'sjustsomethingtoletyouknowthecircuitworks.Itried
todesignthePCBwithaslessviasaspossibleand5viasseemsreasonable.
Theendresultmaynotlookatitsbest,thesurfacesolderingoftheICsockets
couldbealittledifficultbutitwasn'tabigdealanddefinitelynotashowstopper.
I'msureitcanbeimprovedusingSMDcomponentsbutIdidn'thaveanyhandy
soIoptedforthroughhole.AnyonecancustomizetheEAGLEfilesfortheirown
use.
Cheersandhavefun,

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Ad
Arduino&RaspberryPi
Freedrag&dropprojectbuilderstreamlines
creation&offerscontrolfromyourphone.
Cayenne

Wehaveabenicecommentpolicy.
Pleasebepositiveandconstructive. wIMadeit! AddImages PostComment

rodrigonh(/member/rodrigonh) ayearago Reply

Hello.Ijustetchedtheboard.iuseDipTraceandcantopentheschematics.
Wastryingtosolderpartsanywaybut:Atfirstglancethefirsttransistorlooks
likeaPNPBJTIt'sreallyaBJTPNP?Ifso...it'sbaseisdirectlyconnectedto
powerground(soalwayssaturatedanyway?),andifit'saBJT:Noresistor
betweenbaseandground,thatsreallyverybad.Sowellmaybeit'snotaBJT,
whatpartisthat?Icanseejusta2N3904inthereferencelink
http://denki.world3.net/avr_rescue.html.Thanks!

rodrigonh(/member/rodrigonh) . rodrigonh(/member/rodrigonh) Reply

ayearago
Alright.Fromreferencelink
http://denki.world3.net/avr_rescue.htmlandboardlayoutIconclude:The
firsttransistorisaPNP,it'scollectorgoestoatmegapin7(VCC).It's
uselessadit'sbaseisalwaysgrounded.Itwillbeprobablyhot(anddie
occasionally),becausetherearen'tanytransistordrivingitsbase.Iwill
justchangethisPNPtoawirejumperpin7>VCClikeinthereference
link.Anyway,thanksforthelayout!Goingtotryresurrectingsome
atmegasinsomeminutes.

rodrigonh(/member/rodrigonh) . rodrigonh(/member/rodrigonh) Reply

ayearago
Ughnono.It'snotatransistor.Itmustbea7805:/Thatswhat
happens...withaboardinhands...withouttheschematics...plusnot
featureinthereferencelink.Anyway...solved!

rodrigonh(/member/rodrigonh) . rodrigonh(/member/rodrigonh) Reply

ayearago
Therewego

(https://cdn.instructables.com/FMD/2VFK/ILCN5ZKJ/FMD2VFKILCN5ZKJ.LARGE.jpg)

8 mnedix(/member/mnedix)(author) . rodrigonh(/member/rodrigonh) Reply

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
3monthsago
Hey,gladyoucouldmakeitwork,IreallyapologizeforthedelaybutI
completelyforgotaboutthisprojectandhaven'tcheckedoutthe
websiteforawhile:)

realnomis(/member/realnomis)madeit! ayearago Reply

Hithere.Ididabuildofthisandamusingtheatmega328.Ifilookatyour
pictureitlooksliketheBC338isupsidedowncomparedtotheschematic??
ShouldthecollectorbeconnectedtoVinorshouldtheEmitter?

(https://cdn.instructables.com/FH9/6HE2/IKZS9B37/FH96HE2IKZS9B37.LARGE.jpg)

(https://cdn.instructables.com/FAY/5DYW/IKZS9B4J/FAY5DYWIKZS9B4J.LARGE.jpg)

realnomis(/member/realnomis) . realnomis(/member/realnomis) Reply

ayearago
Okigotitworking,andit'sreallygreat.Iamresurrectingboth
Atmega328and328Pprocessors,ittakeslike2seconds:)Great!
Ofcoursetheemitterhastobetiedtoground,itstilllookslikewrong
orientationinyourpicturebutmaybethepictureisfoolingme?BTWiam
usingaBC337transistorwhichisalmostthesameasa338.Iguessit's
justactingasaswitchontheIC2resetsoaboutanybjttransistorshould
work.

IdidthePCBonamillingmachineandhadtodomyownmodificationto
theboardlayout,it'squiteimpossibletosoldericsocketonthetopwitha
groundplanejust8milsfromthepad:D

IchangedthefusesettingstomatchthedefaultinAtmega328P,thenew
valuesis:
HFUSE0xD9
LFUSE0x62
Ifoundthevaluesfromthelinkinthecode:
http://www.engbedded.com/cgibin/fc.cgi

Goodsimpleproject!Thankyou.

8 mnedix(/member/mnedix)(author) . realnomis(/member/realnomis) Reply

3monthsago
Hey,gladyoucouldmakeitwork,Ireallyapologizeforthe
delaybutIcompletelyforgotaboutthisprojectandhaven'tcheckedout
thewebsiteforawhile:)

8 mnedix(/member/mnedix)(author) . realnomis(/member/realnomis) Reply

ayearago
Hi,sorryforthelateresponse.ThebuildlooksveryniceandI'm
gladyougotitworking.Idon'trememberwhatBCIused,itprobablyhad
adifferentpinorientation.Asforthecodepart,Ididnotchangeitabit,I'm
notthatskilledinprogramming:)Myunderstandingisthatthefusesare
resettoafactorydefaultafterwhichyoucansetthemupasyouwant.

WhatIforgottomention,andIthinkIgotthiswayafterIbuiltthis,isthatit
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
ishighlydependentonthecrystal.Inotherwords,sincethisschematic
doesnotuseacrystal,whenyouresetanMCUthenyouresetalsothe
crystalsettingsifyouplaceitimmediatelyinaprogrammer(witha
crystal)anddon'ttakethisintoconsiderationthenyoumayendupwith
someerrors.

IwillprobablydesignandbuildanotherversionSMDbased(1206most
probably).

PS:thanksforbuildingit:)

8 mnedix(/member/mnedix)(author) . realnomis(/member/realnomis) Reply

ayearago
Hi,sorryforthelateresponse.ThebuildlooksveryniceandI'm
gladyougotitworking.Idon'trememberwhatBCIused,itprobablyhad
adifferentpinorientation.Asforthecodepart,Ididnotchangeitabit,I'm
notthatskilledinprogramming:)Myunderstandingisthatthefusesare
resettoafactorydefaultafterwhichyoucansetthemupasyouwant.

WhatIforgottomention,andIthinkIgotthiswayafterIbuiltthis,isthatit
ishighlydependentonthecrystal.Inotherwords,sincethisschematic
doesnotuseacrystal,whenyouresetanMCUthenyouresetalsothe
crystalsettingsifyouplaceitimmediatelyinaprogrammer(witha
crystal)anddon'ttakethisintoconsiderationthenyoumayendupwith
someerrors.
IwillprobablydesignandbuildanotherversionSMDbased(1206most
probably).

PS:thanksforbuildingit:)

realnomis(/member/realnomis) . realnomis(/member/realnomis) Reply

ayearago
onemorething,iamusingaAtmega328asIC1(the
programmer)
Icompiledthecfileinatmelstudiotoaccomodatethe328anduploaded
thenewhexfilewithanatmeliceprogrammer:)

sidbyron(/member/sidbyron) ayearago Reply

itworkswithatmega8?Thankyou

8 mnedix(/member/mnedix)(author) . sidbyron(/member/sidbyron) Reply

ayearago
Itshouldwork,youhavetopayattentiontopinmapping.

AviralV(/member/AviralV) ayearago Reply

willthisworkwith16MHzcrystal?

8 mnedix(/member/mnedix)(author) . AviralV(/member/AviralV) Reply

ayearago
Theschematicdoesnotburnspecificfuses,itresetstheMCUto
thedefault/factorysettings.Theentirethingisintendedtodothatsoifyou
wanttousea16Mhzcrystallateronthenyouhavetoprogramthefuses
separatelyandaccordingly.

itsme_kathi(/member/itsme_kathi) 2yearsago Reply

hi,

CanthisbeusedforATMGE32A.

Pleasementionthepinmappingsaswell

8
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
mnedix(/member/mnedix)(author) . itsme_kathi(/member/itsme_kathi)
ItcouldworkonATmega32sinceitisworkingon 2yearsago Reply

ATmega328youwillhavetodothemappingby
yourself:

http://www.atmel.com/Images/2503S.pdf
(http://www.atmel.com/Images/2503S.pdf)

http://www.atmel.com/Images/Atmel82718bitAVRM...
(http://www.atmel.com/Images/Atmel82718bitAVRMicrocontroller
ATmega48A48PA88A88PA168A168PA328
328P_datasheet_Summary.pdf)

DopayattentiontotheRESETpinits"position"dependsontheMCU
case.

DavidM417(/member/DavidM417) . mnedix(/member/mnedix) Reply

ayearago
Whatfusesshouldusetoburnthehexfilefortheatmega328.?

8 mnedix(/member/mnedix)(author) . DavidM417(/member/DavidM417) Reply

ayearago
Theschematicdoesn'tburnspecificfuses,itactuallyerases
everythingontheMCUandburns/resetsdefaultfuses

itsme_kathi(/member/itsme_kathi) . mnedix(/member/mnedix) Reply

2yearsago
Thanksalot.

justwentthroughthedatasheetofATMEGA32,foundthepinmappings.

itsme_kathi(/member/itsme_kathi) 2yearsago Reply

Thanksalot.

justwentthroughthedatasheetofATMEGA32,foundthepinmappings.

FEATURED CHANNELS

Woodworking Paper KitchenHacks Puzzles LaserCutting Space Homesteading 3DPrinting Sewing


(/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type
id/category id/category id/keyword id/category id/category id/keyword id/category id/category id/category
workshop/channelcraft/channel kitchen%20hacks/?play/channel workshop/channel astronomy/? home/channel technology/channel
craft/channel
woodworking/) paper/) sort=FAVORITES) puzzles/) lasercutting/) sort=FAVORITES)homesteading/) 3DPrinting/) sewing/)
Newsletter AboutUs
Join2million+toreceiveinstant WhoWeAre(/about/)
DIYinspirationinyourinbox. Advertise(/advertise/)
Contact(/about/contact.jsp)
enteremail I'min!
Jobs(/community/PositionsavailableatInstructables/)
Help(/id/howtowriteagreatinstructable/)
FindUs Resources
Facebook(http://www.facebook.com/instructables) ForTeachers(/teachers/)
Youtube(http://www.youtube.com/user/instructablestv) ArtistsinResidence(/air)

Twitter(http://www.twitter.com/instructables) GiftPremiumAccount(/account/give?sourcea=footer)
Forums(/community/)
Pinterest(http://www.pinterest.com/instructables)
Answers(/tag/typequestion/?sort=RECENT)
Google+(https://plus.google.com/+instructables)
Sitemap(/sitemap/)

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
TermsofService(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
PrivacyStatement(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
LegalNotices&Trademarks(http://usa.autodesk.com/legalnoticestrademarks/) | MobileSite(https://www.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
2016Autodesk,Inc.

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

Você também pode gostar