摘要: 根据adafruit提供的代码。利用ladyada提供的motor shield近距离全照:将9g舵机接在srv1处,(褐色为负极,红色正极,橙色信号线用来接受PWM指令)将直流电机接在M2处,(正负极可以先不考虑,因为是直流电机)步进电机自己占据了M3,M4.步进电机的排线详细属性地址:http://www.adafruit.com/products/858#Technical DetailsUnipolar stepper with 0.1" spaced 5-pin cable connector8 steps per revolution1/64 geared down re 阅读全文
posted @ 2013-04-10 22:33 spaceship9 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: 下面上一些代码,是没有用任何库的.仅仅是将步进点击链接到arduino不同的8, 9, 10 , 11口上的Arduino 控制步进电机 2012-06-11 12:44:44原帖:http://blog.chinaunix.net/uid-23686726-id-3238613.html代码让我给改了改, 还是推荐装个motor shield吧.不然这样折腾 单片机肯定是不撑的.看样子是4步8相的.具体4步8相是啥,请看我上篇博客:http://www.cnblogs.com/spaceship9/archive/2013/04/10/3012552.html分类: 嵌入式 i... 阅读全文
posted @ 2013-04-10 17:29 spaceship9 阅读(10069) 评论(0) 推荐(0) 编辑
摘要: step motor先拿51 单片机配套的资料来复习一下.4相8拍28 BYJ48 或者 24 步进电机48是四相8拍.电路图下载资料:http://ishare.iask.sina.com.cn/f/15511340.html本ppt讲义:http://ishare.iask.sina.com.cn/f/36683589.html上面的ABCD四个相位,可以有 只同一位点,这样就成了四步。 A B C D -> A 一圈 每步 90度 四相四拍步进电机或者可以没360度,分成8份,每份转45度。 A AB B BC C CD D DA -> A 一圈 每步45度 传说中 的四相位 阅读全文
posted @ 2013-04-10 16:07 spaceship9 阅读(1982) 评论(0) 推荐(1) 编辑
摘要: I bought this shield which is designed by adafruit.comHere's the link to show you how to use it.http://learn.adafruit.com/adafruit-motor-shieldhttp://www.ladyada.net/make/mshield/IntroductionThis photo has notes. Move your mouse over the photo to see them.Arduino is a great starting point for el 阅读全文
posted @ 2013-04-10 11:24 spaceship9 阅读(3196) 评论(0) 推荐(0) 编辑
摘要: 舵机舵机是一种非常有意思的,多级齿轮增大扭力的widget。非常有用。在很多方面。Servo is very useful. Now Please check this out : What is Servo Control (from wikipedia)VariationsWhen a pulse is sent to a servo that is less than 1.5ms the servo rotates to a position and holds its output shaft some number of degrees counterclockwise from t 阅读全文
posted @ 2013-04-10 10:52 spaceship9 阅读(922) 评论(0) 推荐(0) 编辑