• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






MyAutomation

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 下一页

2018年7月10日

I2C的库函数应用示例
摘要: I2C Arduino 简单应用举例 例1 多机通信 主机代码:(从编译器串口监视器发送数字1,2,3,4来控制从机的LED亮与灭) 从机A代码:(接收到主机发送的1点亮LED,接收到0关掉LED) 从机B代码:(接收到主机发送的1点亮LED,接收到0关掉LED) 例2 Master Reader/ 阅读全文
posted @ 2018-07-10 17:57 MyAutomation 阅读(899) 评论(0) 推荐(0)
 
I2C总线的Arduino库函数
摘要: I2C总线的Arduino库函数 I2C即Inter-Integrated Circuit串行总线的缩写,是PHILIPS公司推出的芯片间串行传输总线。它以1根串行数据线(SDA)和1根串行时钟线(SCL)实现了双工的同步数据传输。具有接口线少,控制方式简化,器件封装形式小,通信速率较高等优点。在主 阅读全文
posted @ 2018-07-10 17:38 MyAutomation 阅读(3761) 评论(0) 推荐(0)
 
Arduino Mega 2560
摘要: Arduino Mega 2560 www.theengineeringprojects.com/ 此板子有54个引脚,16个模拟量输入引脚,12个PWM输出引脚,4个串口,带I2C,SPI通讯口,更大的闪存空间,适宜于用来解决更复杂的控制项目。使用方法与其他的Arduino板子是一样的。 板子总体 阅读全文
posted @ 2018-07-10 17:25 MyAutomation 阅读(3664) 评论(0) 推荐(0)
 
Arduino PID Library
摘要: Arduino PID Library by Brett Beauregard,contact: br3ttb@gmail.com What Is PID? PID是什么 From Wikipedia: "A PID controller calculates an 'error' value as 阅读全文
posted @ 2018-07-10 17:17 MyAutomation 阅读(1345) 评论(0) 推荐(0)
 
步进电机的Arduino库函数
摘要: This library allows you to control unipolar or bipolar stepper motors. To use it you will need a stepper motor, and the appropriate hardware to contro 阅读全文
posted @ 2018-07-10 17:02 MyAutomation 阅读(2348) 评论(0) 推荐(0)
 
伺服电机的Arduino库函数
摘要: servo.attach(pin) //连接伺服电机的信号线于控制板的引脚,9或10号引脚servo.attach(pin, min, max) servo: a variable of type Servo pin: the number of the pin that the servo is 阅读全文
posted @ 2018-07-10 16:30 MyAutomation 阅读(1214) 评论(0) 推荐(0)
 
Arduino 语法与函数
摘要: Arduino programs can be divided in three main parts: structure, values (variables and constants), and functions. Structure • setup() 每次 Arduino 上电或重启后 阅读全文
posted @ 2018-07-10 16:27 MyAutomation 阅读(1916) 评论(0) 推荐(0)
 
小车红外循迹基本控制
摘要: 红外对管模块 红外对管模块由发射管接收管和配套电路组成,工作时发射管发射红外线,接收管接收发射回来的红外线。当红外线被深色物体吸收较多而发射回来的很少时,OUT端为高电平,否则为低电平。下图是实物图和线路图。一般白色的是发射管,黑色的是接收管。 图1 红外对管模块实物图 图2 红外对管模块线路 此模 阅读全文
posted @ 2018-07-10 16:10 MyAutomation 阅读(22088) 评论(0) 推荐(1)
 
超声波传感器测距
摘要: 超声波模块HC-SR04 超声波测距工作原理 可以听到的声波:振动频率为20Hz~20000Hz 超声波:频率高于20000赫兹的声波 超声波特性:指向性强,能量消耗缓慢,在介质中传播的距离较远,经常用于距离的测量 超声波测距原理:超声波发射器向某一方向发射超声波,在发射时刻的同时开始计时,超声波在 阅读全文
posted @ 2018-07-10 16:04 MyAutomation 阅读(3498) 评论(0) 推荐(0)
 
直流电机两轮驱动小车行走基本控制
摘要: 控制任务 对2驱动轮1从动轮的小车基本行走控制方法进行设计 实物图与电路设计 图1 双轮驱动小车1 图2 双轮驱动小车2 图3 双轮驱动小车3 图4 双轮驱动小车控制系统接线图 实际接线: Arduino的引脚6,8,7分别接L298N驱动板的ENA,IN1,IN2,控制左电机,Arduino的引脚 阅读全文
posted @ 2018-07-10 15:58 MyAutomation 阅读(4749) 评论(0) 推荐(0)
 
上一页 1 2 3 下一页