摘要: 根据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 阅读(1346) 评论(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 阅读(10036) 评论(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 阅读(1971) 评论(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 阅读(3136) 评论(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 阅读(916) 评论(0) 推荐(0) 编辑
摘要: Tired.Hanying around on https://wiki.archlinux.org for a while this afternoon.One of my very old computer needs get accessed to internet.I install Xubuntu10.04 which is the only one suitable for the old machine produced about in 2002.It's too slow.even though it has a celeon 2.4Ghz CPU and 512 D 阅读全文
posted @ 2013-04-09 15:04 spaceship9 阅读(543) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install postgresql-9.1out put :)Installation Finished. :)Please read the official reference about how to use PostgreSQLhttp://www.postgresql.org/docs/9.1/interactive/tutorial-createdb.html____________su rootsu - postgres#log into postgrespsql -U posgresthen we get into the postgreSQL co 阅读全文
posted @ 2013-04-08 15:22 spaceship9 阅读(227) 评论(0) 推荐(0) 编辑
摘要: it's too sad that MySQLdb module is not capatiable with the newest pyramid web application framework (python3)if you do really want to use MySQL to store your data.Just use the python 2.7 when you are deploying pyramid app.http://sourceforge.net/projects/mysql-python/ 阅读全文
posted @ 2013-04-08 12:35 spaceship9 阅读(196) 评论(0) 推荐(0) 编辑
摘要: http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html是我在csdn的博客:http://blog.csdn.net/spaceship20008/article/details/8767884放在cnblogs做备份按照介绍操作。我用的是mint13, python 3.2.3版本。使用的是virtualenv 开发工具在一个虚拟的python环境下开发web app这样很不错。请按照其步骤来。在python3.2中,有一些东西需要记住:4.6.2. Old String Formattin 阅读全文
posted @ 2013-04-08 10:47 spaceship9 阅读(452) 评论(0) 推荐(0) 编辑
摘要: to handle posgreSQL well.i found this article may be helpful.From: http://www.cnblogs.com/tzp_8/archive/2012/11/08/2760746.htmlpostgresql 常用命令(1)用户实用程序:createdb 创建一个新的PostgreSQL的数据库(和SQL语句:CREATE DATABASE 相同)createuser 创建一个新的PostgreSQL的用户(和SQL语句:CREATE USER 相同)dropdb 删除数据库dropuser 删除用户pg_dump 将Postg 阅读全文
posted @ 2013-04-08 10:43 spaceship9 阅读(204) 评论(0) 推荐(1) 编辑