/* 日期:2016.9.2 功能:arduino 蓝牙控制RGB LED灯 元件: 跳线公公头 * 8 rgbled, 220欧电阻 蓝牙模块 接线: 蓝牙模块VCC,GND分别接5V,GND;TX,RX分别接拓展版的IO0(RX),IO1(TX)口 LED 负极接GND 正极串联电阻接 IO5,IO6,IO7异常:update 时如果异常信息为:"stk500_recv(): programmer is not responding" 则需要把蓝牙模块拔下来update 完了以后再…
今天有个需求,需要win7 PC连接手机蓝牙,并发送文件到手机端.在此记录下过程. 准备: win7 电脑主机. CSR 蓝牙dongle. 手机 1. 打开蓝牙服务 方法:打开控制面板,找到“管理工具”打开,打开“服务”,启动“Bluetooth Support Service”. 2. 回到控制面板 1> 打开“设备和打印机”,找到蓝牙dongle设备.右键选择“Bluetooth 设置”,勾选“允许Bluetooth设备查找此计算机”,点击确认. 2> 找到蓝牙dongle设备.右键选择…
---恢复内容开始--- The GPRS shield which I tested is one which looks like this: ---恢复内容结束--- Need to be re-edited soon.…
Arduino的另外几种模块,我们常见的joystick摇杆模块. 用起来很爽,摇杆 有X,Y轴可调 这里有一篇非常想尽的示例代码: http://www.geek-workshop.com/forum.php?mod=viewthread&tid=96 什么也不操作的话,显示的数字是512 const int xside = A0; const int yside = A1; ; ; void setup() { // set the serial port Serial.begin(); }…
The vibrator I got works at the voltage ranging from 3.3V ~ 5.5V I want to make it vibrate variably. So I planned to test in 2 different ways. 1) analog valtage supply 2) PWM full valtage supply Here's the test situations and codes 1) analog valtage…
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_-_Vibrator I am testing this vibrator which is neat. ; void setup() { pinMode(vibratorPin, OU…
转载请注明:@小五义 http://www.cnblogs.com/xiaowuyi            欢迎加入讨论群 64770604 一.实验器材 1.TPYboard V102板  一块 2.无线蓝牙串口透传模块HC-06   一个 3.OLED 屏 一块 二.无线蓝牙串口透传模块 1.无线蓝牙串口透传模块,又叫蓝牙模块,是一种集成蓝牙功能的短距离无线通讯模块.按照协议标准,分为1.2.2.0.2.1.4.0和4.1.4.0以上又称为BLE.蓝牙模块按照用途可分为数据蓝牙模块和语音蓝牙…
一.注意事项 1.烧写程序时,要把蓝牙tx,rx信号线拔掉,对烧写程序有影响. 2.执行HC05集命令时,均以\r\n结尾.串口中断若选择“发送新行”时,不用添加\r\n.原理相同. 二.准备软硬件 1.硬件:单片机STC89C52RC开发板,蓝牙模块HC05 2.软件:串口工具SSCOM3.3,手机蓝牙客户端 手机蓝牙客户端链接:http://mobile.baidu.com/simple/item?docid=5014650&source=aladdin@wise_app_13@button…
解决方案. 条件: 1.手机android 商店下载 blueTerm 2.向arduino中载入如下代码: char val; ; void setup() { Serial.begin(); pinMode(ledpin,OUTPUT); } void loop() { val=Serial.read(); if(val=='o') { digitalWrite(ledpin,HIGH); Serial.println("LED ON!"); }else if(val=='f'){…
Arduino使用HC05蓝牙模块与手机连接 一切都是最好的选择 首先是线路连接,一定不要接错了 Arduino 代码 #include <SoftwareSerial.h> // Pin10为RX,接HC05的TXD // Pin11为TX,接HC05的RXD SoftwareSerial BT(, ); char val; void setup() { Serial.begin(); Serial.println("BT is ready!"); // HC-05默认,…