欢迎来到天天文库
浏览记录
ID:48014714
大小:1.07 MB
页数:14页
时间:2019-07-18
《adafruit-arduino-lesson-14-servo-motors.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ArduinoLesson14.ServoMotorsCreatedbySimonMonkLastupdatedon2013-06-1108:16:06PMEDTGuideContentsGuideContents2Overview3Parts4Part4Qty4TheBreadboardLayoutfor'Sweep'6IftheServoMisbehaves7ArduinoCodefor'Sweep'8TheBreadboardLayoutfor'Knob'10ArduinoCodefor'Knob'11ServoMotor
2、s12InsideaServo13OtherThingstoDo14©AdafruitIndustrieshttp://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motorsPage2of14OverviewInthislesson,youwilllearnhowtocontrolaservomotorusinganArduino.Firstly,youwillgettheservotosweepbackandforthautomaticallyandthenyouw
3、illaddapottocontrolthepositionoftheservo.©AdafruitIndustrieshttp://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motorsPage3of14PartsTobuildtheprojectsdescribedinthislesson,youwillneedthefollowingparts.PartQtyServoMotor110kΩvariableresistor(pot)1©AdafruitIndust
4、rieshttp://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motorsPage4of14Half-sizeBreadboard1ArduinoUnoR31Jumperwirepack1100µFcapacitorOptional©AdafruitIndustrieshttp://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motorsPage5of14TheBreadboardLayoutfor'Swe
5、ep'Forthisexperiment,theonlythingconnectedtotheArduinoistheservomotor.Theservomotorhasthreeleads.Thecoloroftheleadsvariesbetweenservomotors,buttheredleadisalways5VandGNDwilleitherbeblackorbrown.Theotherleadisthecontrolleadandthisisusuallyorangeoryellow.Thiscontrollea
6、disconnectedtodigitalpin9.Theservoisconvenientlyterminatedinasocketintowhichwecanpushjumperwires,tolinkittothebreadboardandthentotheArduino.©AdafruitIndustrieshttp://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motorsPage6of14IftheServoMisbehavesYourservomaybe
7、haveerratically,andyoumayfindthatthisonlyhappenswhentheArduinoispluggedintocertainUSBports.Thisisbecausetheservodrawsquitealotofpower,especiallyasthemotorisstartingup,andthissuddenhighdemandcanbeenoughtodropthevoltageontheArduinoboard,sothatitresetsitself.Ifthishappe
8、ns,thenyoucanusuallycureitbyaddingahighvaluecapacitor(470uForgreater)betweenGNDand5Vonthebreadboard.Thecapacitoractsasareservoirofe
此文档下载收益归作者所有
点击更多查看相关文章~~