资源描述:
《arduino spooky projects class1》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、SpookyProjectsIntroductiontoMicrocontrollerswithArduinoClass17Oct2006-machineproject-TodE.KurtEveryone’shadalittleprogrammingexperience,right?Who’shadanyelectricalexperience?What’sforToday•IntroductiontoArduino•BuildinganLEDflashlight•MakingsomeblinkyLEDeyesClassKitWhat’sinyourgoodiebagClassKitManife
2、st•ArduinoNGUSBboard•twopushswitches•ArduinoProtoShield•9Vbatteryandconnector•Solderlessbreadboard•220,330,10k,and1Mresistors•USBcable•lightsensitiveresistor•RCservo•5.1vzenerdiode•piezobuzzer•squareofvelcro•6mhookupwireinghastlycolors•scaryeyeballs•potentiometerwithknob•R,G,BandmysteryLEDsAndotherb
3、itsasweprogressIgnoremostofthekitfornow,justuseArduinoboardandUSBcableCompletekitmanifestwithpartnumberswillbeonlineAWordonSafety•Electronicsaretoxictoyou•Leadinsomeoftheparts•Washupafterwards•Youaretoxictoelectronics•Static-sensitive:don’tshuffleyourfeet•WiresonlybendsomuchWhatisArduino?•OpenSourceP
4、hysicalComputingPlatform•opensource:freetoinspect&modify•physicalcomputing.er,what?ubiquitouscomputing,pervasivecomputing,ambientintelligence,calmcomputing,everyware,spimes,blogjects,smartobjects...•Aphysicalboard,aprogrammingenvironment,adevelopmentphilosophy•Tinycomputeryoucanprogram•Completelysta
5、nd-alone,talkstootherdevicesPhysicalcomputingasinvisiblecomputingCanruno!abatteryCantalktoothercomputers,cellphones,etc.WhatisArduino?•BasedonAVR-GCC,avr-libc,AVRlibandProcessing(allopensourceprojects)•VerysimilartoBasicStamp(ifyouknowit)•butcheaper,faster,&open•UsesAVRATmega8microcontrollerchipBasi
6、cStampusesPICmicrocontrollerchip.PICsandAVRsareverycomparable,one’snotnecessarilybetterthantheotherAVRsarealittlebetterifyou’reusingalanguagelikeC(stack-based)Don’tneedtoworryaboutthechipparticularsfornowWhatisArduino?•WhynotjustuseabareAVRATmega8chip?•Arduinoisalsoastandardized“bootloader”•Atinypro
7、gramthatloadsotherprograms•It’saliveduringfirst5secondsAbootloaderisakintoanBIOSonarealcomputer.IthandlesthestartupofthechipAfter5seconds,yourprogramrunsDon’tneedspecialprogrammerboardwithabootloaderAr