随笔分类 - Arduino Embedded
This is a sector about many hardware modules for Arduino
摘要:On the 3G shield, by default the power pin is on D8 and reset pin is on D9. Make it HIGH then it works.if you want to play this 3G shield using Softwa...
阅读全文
摘要:This is an old arduino 3G module bought half years ago.Its wiki:http://wiki.iteadstudio.com/ITEAD_3G_ShieldIts mall:http://imall.itead.cc/itead-3g-shi...
阅读全文
摘要:Live broadcasting with arduinoget a pc , make it run linux. make arduino catch the weather sensor and then transport the information to the PC side. P...
阅读全文
摘要:The vibrator I got works at the voltage ranging from 3.3V ~ 5.5VI want to make it vibrate variably.So I planned to test in 2 different ways.1) analog valtage supply2) PWM full valtage supplyHere's the test situations and codes1) analog valtage supplyint vibratorPin=A1; // vibrator on A1int i=0;v
阅读全文
摘要:---恢复内容开始---The GPRS shield which I tested is one which looks like this:---恢复内容结束---Need to be re-edited soon.
阅读全文
摘要:Testing a sensor from here.http://www.seeedstudio.com/wiki/Grove_-_Dust_SensorIt's a dust sensor. Everyone can buy it anywhere also. It's a cheep one actually.We can find its document here:http://www.seeedstudio.com/wiki/images/4/4c/Grove_-_Dust_sensor.pdfIt looks good.It's more cheaper
阅读全文
摘要:It looks like this one:This one isn't a digital light sensor, so it's very simple.http://www.seeedstudio.com/wiki/Grove_-_Light_SensorWith seeeduino and it's grove shield, this would be very easy to use.Now we can do a little experiment:using a LED and a light sensor.condition 1) If the
阅读全文
摘要:vibrator is a good thing. it has multi-funtionality . :)Now the vibrator we choose is the one which looks like this:http://www.seeedstudio.com/wiki/Grove_-_VibratorI am testing this vibrator which is neat.const int vibratorPin = 8;void setup(){ pinMode(vibratorPin, OUTPUT);}void loop(){ // make it..
阅读全文
摘要:根据arduino官方网站出的shield,类似的情况有很多中motor shield这里测试采用的是http://www.seeedstudio.com/wiki/Motor_Shield_V1.0这款。采用的驱动芯片是L298N,官方网站arduino.cc 采用的是L293N,现在最新的已经采用了L298P了。http://www.arduino.cc/en/Main/ArduinoMotorShieldR3其他类似的shield 如下:http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L293)_(SKU
阅读全文
摘要:Arduino的另外几种模块,我们常见的joystick摇杆模块。用起来很爽,摇杆有X,Y轴可调这里有一篇非常想尽的示例代码:http://www.geek-workshop.com/forum.php?mod=viewthread&tid=96什么也不操作的话,显示的数字是512const int xside = A0;const int yside = A1;int valuex = 0;int valuey = 0;void setup(){ // set the serial port Serial.begin(9600); }void loop(){ valuex = ana
阅读全文
摘要:arduino IDE装上的时候,要记得在windows平台安装驱动。如果不安装驱动的话,烧写程序的时候也许会遇到下面的现象。原因有如下几种:1,arduino控制板或者COM口没有选对,这种问题最简单2,下载的时候,arduino控制板上接了其他扩展板(使用D0,D1口的基本都会出问题,这两个口是用来通信下载程序的。)如果接了其他扩展板不能用,可以先拔掉扩展板再次尝试重新下载程序。3,bootloader损坏,这种情况下需要重新刷bootloader。4,驱动未安装好。(目前遇到ghost版本,或者精简版win7系统安装uno驱动时,无法安装的问题。这种情况,需要重装系统。ghost版或者精
阅读全文
摘要:主要是为了能大量的减少文件使用空间,为了能节约带宽。那么就用了7z的压缩方式。这里,使用了7z的压缩方式,硬生生的将一个10k多的图片压缩成了3k左右的包。图片是不好压缩的,这个压缩比比zip gzip bzip 等好很多。请查阅 7z 命令的用户手册这里,我给放出了几个简单的example,一看就会用。example 1 非常详细啦,一般用不着这么多的 flag options.所以,我一般都只用7z a -t7z -mx=9 something.7z apicture.jpeg而没有用上面的dictionary 或者LZMA 因为还暂时没有必要。经过这么一压缩,图片都被很努力的缩小了70%
阅读全文
摘要:hexdump 是一款非常简单的有效的将别的形式的文档转换成十六进制的工具。最详细的使用说明都在 man hexdump 里面,请自行查阅。这里我摘出几个常用的例子,一目了然:这里我做了一个实验,是将我用 7z 压缩的图片转换成了十六进制的文档,在这里请看用法:关于怎么用7z压缩或者用p7zip解压缩,请看我的这篇博客:http://www.cnblogs.com/spaceship9/p/3239734.html一定要仔细阅读 man hexdump 中的一些有用的examples输出的这些文档可以保存成文件或者别的形式都可以。之所以这样用,是为了未来直接调用串口发送十六进制的目的。或者管道
阅读全文
摘要:发送十六进制比较直观,可以在上位机中直接获取十六进制的数据,然后在在上位机上将十六进制HEX转换成BIN(二进制)或者DEC(十进制)就十分简单有效了。下面是在Arduino上怎么演示直接发送16进制。详细请参考官方说明:http://arduino.cc/en/Serial/Print代码如下:char tmp[] = "hello world";void setup(){ Serial.begin(9600);}void loop(){ { Serial.println("In DEC:"); Serial.println(tmp[1],DEC);
阅读全文
摘要:有用的链接在这里:http://hi.baidu.com/mizuda/item/06b7fdc1d0e45a0ec710b2dd更加详细的内容请查阅Arduino官方:http://arduino.cc/en/Serial/Write代码如下:/**SendBinary sketch*Send a header followed by two random integer values as binary data.*/int intValue; // an short integer value (16 bits = 2bytes) intvalue must be less than 0
阅读全文
摘要:解决方案。条件:1.手机android 商店下载 blueTerm2.向arduino中载入如下代码:char val;int ledpin=13;void setup(){ Serial.begin(9600); pinMode(ledpin,OUTPUT);} void loop(){ val=Serial.read(); if(val=='o') { digitalWrite(ledpin,HIGH); Serial.println("LED ON!"); }else if(val=='f'){ digitalWrite(ledpin,
阅读全文
摘要:示例代码:类似与这样的led,共阴rgb led,通过调节不同的亮度,组合成不同的颜色。示例代码:/*作者:极客工坊时间:2012年12月18日IDE版本号:1.0.1发布地址:www.geek-workshop.com作用:共阳RGB颜色循环*/ int redPin = 11;int greenPin = 10;int bluePin = 9; void setup(){ pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT); } void loop(){ setColor(255...
阅读全文
摘要:这篇博客写的非常详细,非常详细了。http://www.eefocus.com/zhang700309/blog/12-11/288060_bcff3.html作者:宜昌城老张可以全部参考一下这篇文章。用了IIC协议后,可以用4根线来驱动显示屏了。可见IIC作用的重要性。
阅读全文
摘要:Hardware InspectionAnd it's datasheet and how to use it.You could download them here lb522 UI 模块开发资料:http://ishare.iask.sina.com.cn/f/37170296.htmlFor more information:http://item.taobao.com/item.htm?spm=a230r.1.14.24.YTYxz0&id=18891415760&_u=23b0km3106cThe Docs of the RFID/NFC module (
阅读全文
摘要:Here's what i got from the factory:To get more information: http://www.kuaipan.cn/file/id_104438662447499411.htmMQ-5传感器简介:MQ-5气体传感器所使用的气敏材料是在清洁空气中电导率较低的二氧化锡(SnO2)。当传感器所处环境中存在可燃气体时,传感器的电导率随空气中可燃气体浓度的增加而增大。使用简单的电路即可将电导率的变化转换为与该气体浓度相对应的输出信号。 MQ-5气体传感器对丁烷、丙烷、甲烷的灵敏度高,对甲烷和丙烷可较好的兼顾。这种传感器可检测多种可燃性气体,特别是天
阅读全文