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