;

hlxldb

简单DIY制作——分光计(五)

Step5DetectingthelightAmplificationcircuitTodetectthelightthatpassesthroughthesample,weregoingtouseanLDR,orLight-DependentResistor.Thoughitwouldbepossibletoobtainreadingsbyconnectinganohm-meterstraighttotheLDR,itprobablyisabetterideatocon

简单DIY制作——分光计(三)

Step3DiffractionSplittingthelightTobeabletoselectacertainwavelength(thecoloroflightdependsonitswavelength)wefirstneedtosplitthelightintoaspectrum.Thiscanbeaccomplishedbyadiffractiongrating.Sincemostpeopledonthavediffractiongratingslyingaroundth

简单的DIY制作——分光计(一)

AsimpleDIYspectrophotometerWhatsallthis?Thisinstructablewillexplainhowtobuildafairlybasicbutworkingspectrophotometeroutofeasilysourceableparts.Ofcourse,thisdeviceisnothingcomparedtoacommercialspectrophotometer,butitwillallowthebuildertoun

单片机控制诺基亚2600彩屏(九)

Step11TheCode-ForAVRStudio4(AVR),KeiluVision4(8051)IhavepostedexamplecodeforbothAVRand8051microcontrollersasIhaveusedtheLCDwithboth.ThecodewasoriginallywrittenforATMega168basedontheSparkFunexamplesforboththeLCDandArduinoLCDSh

单片机控制诺基亚2600彩屏(八)

Step9DrawingOptimizationsWhendrawingmovingobjectsontheLCD,youcangreatlyspeeduptheframerateandeliminatescreenglitchesbyonlyredrawingthemovingpartsofanobjectratherthanredrawingtheentirescreenorentireobject.Forinstance,ifaballismovingacrosst

单片机控制诺基亚2600彩屏(六)

Step6DrawingRectanglesRectanglesareincrediblyuseful.Youcandrawonebigrectangletoclearthescreen,usethemformenuelements,indicators,checkboxes,frames,textbackgrounds,andmuchmore.ThankfullytheyareeasytodrawontheNokiaLCDs.Allyouneed

单片机控制诺基亚2600彩屏(五)

Step5AVR-Outputting9-bitSPIwithInlineAssemblyToimplementthe9-bitprotocolusinganAVR,IfoundaniceASMfunctionintheSparkFunexamplecode.ImodifiedthecodesometocleanitupandadaptitforthePhillipscontroller.ThisASMcodeismoreefficientthanusingr

单片机控制诺基亚2600彩屏(四)

Step3LCDProtocol-Initialization(PhillipsPCF8833Only!)TheLCDhasmanyfunctionsthatareavailablebysendingcommandsovertheSPIinterface.TheimportantonesareexplainedhereandwillallowyoutogetyourLCDupandrunning.AfullsetofcommandsislistedintheP

单片机控制诺基亚2600彩屏(三)

Step2ElectricalInterfacingAfteryouhaveabreakoutboardfortheLCDconnector,youmustconnectittoyourcircuit.Thereare10pinsontheconnector,oneisunused.TheLCDhasfourcontrolsignals(Clock,Data,Reset,ChipSelect),two3.3Vinputs,twogrounds,an

无线自行车里程计(十二)

Step13Resources最近转的文章比较短,所以呢,这篇到此就结束了。。。CycleComputerVersion0.1ArduinoCode&ProcessingCodeHeresalistofthingsandplacesIfoundusefulthroughoutbuildingthisproject:AdamOHern/CADJunkieOriginalCode16

无线自行车里程计(九)

Step9AddtheXbeeModulesTheAdafruitadapterandXbeemodulefitsnuglyjustbehindtheUSBsocketonthearduino.Inthepicture,hopefullyyoucanseethefoldedcardinsertinsulatingthemodulefromothercomponents.TheXbeeadaptermakesiteasytoconnecttotheArduinowitha5vsuppl

无线自行车里程计(八)

Step8InstallingtheSensor/ReedSwitchThesensorisjustareedswitchthatclosesthecircuitwhenamagnetpassesinfront.TheArduinomonitorswhenthesensorpingoesHIGH(magnetpresent)andsendsoutapulseoverserialofspeeddataetc.ConnectonewirefromthesensortoArduino+3.

无线自行车里程计(七)

Step7WiringuptheLCDIchosetouseCat5cabletowireupthe16x2displaytotheArduino.AdvantagesofCat5ColourcodedNottoobulkyFlexibleforclosingthelidHighqualitycoppergreatforsoldering1)StartbysolderingthewiretothepadsonthebackoftheLCD.Itdoesntreallyma

无线自行车里程计(六)

Step6AddtheArduinoBeforeinstallingtheArduinointhecase,youllwanttouploadthecodefirst.OtherwiseitsgoingtobealittlebitdifficulttoconnecttheUSBconnectorwhenitsintheAltoidstin.GettheArduinoCodeHere!Besuretochangethewheelcircumferenceinmi

无线自行车里程计(三)

Step2Mark&DrillHolesWellstartoffbymarkingholesintheAltoidstinthatisgoingtobefittedtothebikeitself.WiththeAltoidsgraphicsonthetopofthetinfacingyou,usingamarkerpen...LeftSide-mark2x5mmholesabout10mmapart.Thesewillbeforthecablesthatconnecttoth
;
;