LED光立方制作全过程(三十七)
Step58Software:Effect2,planeboingiInstructJS.load(['instruct','imagespot'],function(){varspotspot740584=newImageSpot('spot740584',{loadID:'F6L3GT0GI0TMGUD',editimagedata:'false',imageDataEditorPlace:'',showInfo:true,size
发表于 5/13/2011 6:41:53 PM
阅读(2687)
LED光立方制作全过程(三十六)
Step57Software:Effect1,rainiInstructJS.load(['instruct','imagespot'],function(){varspotspot740426=newImageSpot('spot740426',{loadID:'FOY1PD8GICYB274',editimagedata:'false',imageDataEditorPlace:'',showInfo:true,size:'MEDIUM'});newIma
发表于 5/13/2011 6:37:23 PM
阅读(2027)
LED光立方制作全过程(三十五)
Step55Software:CubevirtualspaceNowthatwehaveacubebufferandanicelittlecollectionoflowleveldrawfunctionstopopulateit,weneedtoagreeonwhichwaysiswhat,andwhatisupandwhatisdown;)Fromnowon,thenativepositionoftheLEDcubewillbewiththecablesco
发表于 5/12/2011 11:10:09 PM
阅读(2470)
LED光立方制作全过程(三十四)
Step54Software:LowlevelfunctionsWehavemadeasmalllibraryoflowlevelgraphicfunctions.Therearethreemainreasonsfordoingthis.MemoryfootprintTheeasiestwaytoaddresseachvoxelwouldbethroughathreedimensionalbufferarray.Likethis:unsignedcharcube[x][y][z];(charme
发表于 5/11/2011 4:07:33 PM
阅读(1801)
LED光立方制作全过程(三十三)
Step53Software:InterruptroutineimagenotfoundTheinterruptroutinepullsOutputEnablehighwhilerunningtodisabletheoutputofthelatcharray.chriimagenotfoundLayer0isonchrLayer1isonchrMyoscilloscopedoesnthave8channels,soIcanonlyshowthefi
发表于 5/11/2011 4:01:06 PM
阅读(2125)
LED光立方制作全过程(三十二)
Step52Software:ModeselectionandrandomseedimagenotfoundblinkblinkblinkchriWhenwefirststartedwritingeffectsanddebuggingthem,wenoticedthatthefunctionsusingrandomnumbersdisplayedtheexactsameanimationseverytime.Itwasrandomalright,butthesameran
发表于 5/11/2011 2:28:27 PM
阅读(2006)
LED光立方制作全过程(三十一)
Step51Software:IOinitializationThefirstthingtheATmegadoesafterboot,istocalltheioinit()function.ThisfunctionsetsupIOports,timers,interruptsandserialcommunications.AllIOportsontheATmegaarebi-directional.Theycanbeusedeitherasaninputoranoutput.Weconfigur
发表于 5/11/2011 10:27:55 AM
阅读(1965)
LED光立方制作全过程(三十)
Step49Software:IntroductionThesoftwareiswritteninCandcompiledwiththeopensourcecompileravr-gcc.ThisisthemainreasonweuseAtmelAVRmicrocontrollers.ThePICseriesfromMicrochipisalsoanicechoice,butmostoftheCcompilerscostmoney,andthefreeversionshavelimitation
发表于 5/11/2011 12:30:27 AM
阅读(2140)
LED光立方制作全过程(二十九)
Step47TestthecubeThetestcodeyouprogrammedinthepreviousstepwillletyouconfirmthateverythingiswiredupcorrectly.Itwillstartbydrawingaplanealongoneaxis,thenmovingitalongall8positionsofthataxis.(byplanewemeanaflatsurface,notanairplane:p)Thetestcodewilltrav
发表于 5/9/2011 11:20:21 PM
阅读(2504)
LED光立方制作全过程(二十八)
Step45ProgramtheAVR:SetthefusebitsTheATmega32hastwofusebytes.ThesecontainsettingsthathavetobeloadedbeforetheCPUcanstart,likeclocksourceandotherstuff.YouhavetoprogramyourATmegatouseanexternalhighspeedcrystaloscillatoranddisableJTAG.Wesetthelowerfuseby
发表于 5/9/2011 12:56:18 AM
阅读(1780)
LED光立方制作全过程(二十七)
Step43Buildthecontroller:ConnecttheboardsThetwoboardsareconnectedbytwocables:AribboncablefortheDATAandAddressBUS.A2wirecableforGNDandVCC.Afterconnectingthesetwocables,yourboardiscomplete.Step44Buildthecontroller:ConnectthecubeConnecttheribboncablesac
发表于 5/8/2011 11:20:10 AM
阅读(2085)
LED光立方制作全过程(二十六)
Step42Buildthecontroller:MakeanRS-232cable(这篇的图有些多了~)ToconnecttheLEDcubetoaserialportonyourcomputer,youneedtomakeaserialcablewithafemaleD-Sub9pinconnector.Ouremployerdeployed70Ethernetswitcheswithmanagementlastyear.WitheachswitchcomesanRS23
发表于 5/8/2011 12:15:11 AM
阅读(1936)
LED光立方制作全过程(二十五)
Step41Buildthecontroller:RS-232Togetthetrulyamazinganimations,weneedtoconnecttheLEDcubetoaPC.ThePCcandofloatingpointcalculationsthatwouldhavetheAVRworkinginslowmotion.TheATmegahasabuiltinserialinterfacecalledUSART(UniversalSynchronousandAsynchronouss
发表于 5/7/2011 11:00:17 AM
阅读(2570)
LED光立方制作全过程(二十四)
Step40Buildthecontroller:ButtonsandstatusLEDsimagenotfoundStartthecubeinautonomousmodechriYoucanmakeaLEDcubewithoutanybuttonsatall,butitsnicetohaveatleastonebuttonandsomestatusLEDsfordebugging.WeaddedoneawesomelookingbuttonwithtwobuiltinL
发表于 5/6/2011 12:48:58 PM
阅读(31480)
LED光立方制作全过程(二十三)
Step39Buildthecontroller:TransistorarrayimagenotfoundPullupresistors.Thistypeofresistoriscalledaresistornetwork.Itjusthasabunchofresistorsconnectedtoacommonpin.chrTwoandtworesistorsworktogether.chriimagenotfoundiimagenotfound&
发表于 5/6/2011 12:47:10 PM
阅读(2652)
