hlxldb

单片机控制诺基亚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

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

Step1LCDConnectorandBreakoutBoardIfyoudonthaveabreakoutboard,youneedtofirstmakesomesortofconnectorfortheLCD.Myfirstattemptwastosolderthinmagnetwiretoeachlegoftheconnectorwithafine-tipsolderingiron.ThistookseveraltriesbuteventuallyIg

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

HowToUseaNokiaColorLCD!NokiamanufacturesawidevarietyofcellphonesandmanyoftheircheaperphonescontainsimpleLCDswhichmaybeusedinmicrocontrollerprojects.ThereisoneparticularLCDmodelthatisusedinawidevarietyoftheirphonesandisoftenreferredt

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

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

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

Step12FinishedMaking!Nowthatweredonemaking,powerupyournewArduinobasedcyclecomputer!OpenuptheProcessingsketch,movethefrontwheelsothatthemagnetpassesthesensorandyoushouldseethegraphcometolife!Youcurrentspeedwillalsobedisplayedonthe16x2lcd!NOTE:Ic

无线自行车里程计(十)

Step10SecuretotheBikeIveusedsomevelcrotiestomountthealtoidscaseandthe9vbatterytothebikeframe.YoumightbeabletodosomethingsimilarwiththeLCD.Itreallydependswhatyourbikehandlebarsarelike.Iusedsomehotgluetofixthedisplaytoapre-existingclamp.&nb

无线自行车里程计(九)

Step9AddtheXbeeModulesTheAdafruitadapterandXbeemodulefitsnuglyjustbehindtheUSBsocketonthearduino.Inthepicture,hopefullyyoucanseethefoldedcardinsertinsulatingthemodulefromothercomponents.TheXbeeadaptermakesiteasytoconnecttotheArduinowitha5vsuppl

无线自行车里程计(八)

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

无线自行车里程计(七)

Step7WiringuptheLCDIchosetouseCat5cabletowireupthe16x2displaytotheArduino.AdvantagesofCat5ColourcodedNottoobulkyFlexibleforclosingthelidHighqualitycoppergreatforsoldering1)StartbysolderingthewiretothepadsonthebackoftheLCD.Itdoesntreallyma

无线自行车里程计(六)

Step6AddtheArduinoBeforeinstallingtheArduinointhecase,youllwanttouploadthecodefirst.OtherwiseitsgoingtobealittlebitdifficulttoconnecttheUSBconnectorwhenitsintheAltoidstin.GettheArduinoCodeHere!Besuretochangethewheelcircumferenceinmi

无线自行车里程计(五)

Step4AltoidsSurfacePreparationAsiconicastheAltoidsgraphicsare,IfoundthatIquitelikedthebrushedmetallook.>>Takesomesandpaperandbeginwearingawaythetoplayerofpaint.Thefinerthegradeofabrasionyouhave,thesmootherthefinishwillbe.Step5CutPVC

无线自行车里程计(四)

Step3AttachAntennaSocketTheexternalantennasocketwillmountonthebackleftholethatwemadeearlier...>>Pushthesocketthroughfromtheinsideofthetinandtightenthenutontheoutsideofthetinwithapairofneedle-nosepliers.Ifyourconnectorhasalockingwasher,kee