当前位置:网站首页>电子智慧套装教程
电子智慧套装教程
2022-06-27 15:53:00 【acktomas】
目录
第01课 高低电平,串口,LED灯
- 主控板(模拟口,数字接口)
- 扩展板
- LED灯的亮灭
- 串口输出主控板内部的一些信息(*)

第02课 串口输出及按钮
- 串口输出信息(主控板内部一些状态,温度),调试程序、检测硬件的状态的时候
- 设置通信频率,如果频率不一致,输出的信息将是乱码
- 按钮控制输出

第03课 按钮控制LED灯
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| LED灯 | 3V | |
| 滚轮开关 | 5V | 数字设备,只有2种状态 |
| 触摸开关 | 5V | 数字设备 |
- 了解按钮的单击,按钮单击一次发生了什么?怎样才算是一次单击,处理一次单击(循环和变量)
- 利用按钮控制LED的亮灭
需要准备的知识:高电平=1,低电平=0
第04课 计数器
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| 四位数码管 | 5V | |
| 滚轮开关 | 5V | 数字设备,只有2种状态 |
第05课 变频技术应用–烛光灯
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| LED | 3V | |
- 知识点
- pwm:是脉冲宽度调制,
Arduino控制板预设采用1kHz 和 500Hz两组不同的PWM输出频率
数字引脚5、6:976.5625Hz
数字引脚3、11、9、10:490.196Hz
若PWM频率太低,电机会抖动,LED会闪烁
第6引脚输出3.3V电压, 168 255 × 5 ≈ 3.3 \frac {168}{255}\times {5} \approx 3.3 255168×5≈3.3 - 随机数
(0,255),
- pwm:是脉冲宽度调制,
第06课 数字信号和模拟信号
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| 触摸开关 | 5V | |
| 角度传感器 | 5V | |
知识点
- 数字设备和模拟设备
- 数字设备:接到模拟接口,只有2个值,0和1023
- 模拟设备:接到模拟接口,可有得到很多值,值得取值范围(0,1023)
- pwm(0,255)
- 模拟设备和数字设备接到数字接口(D):(0,1)
- 数字接口和模拟接口
- 一个设备是模拟还是数字设备
- 都接到模拟口,看看有多少个值,有很多值,就是模拟设备,只有两个值就是数字设备
- 数字设备既可以接在数字接口又可以接到模拟接口。
- 数字设备和模拟设备
第07课 自动浇花器
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| 土壤湿度坞 | 5V | |
| 蜂鸣器 | 5V | |
- 知识点
- 模拟设备:只能通过模拟设备获取数据,若类似于蜂鸣器这样的设备是输出设备,可以接在数字接口也可以接在模拟接口

- 模拟设备:只能通过模拟设备获取数据,若类似于蜂鸣器这样的设备是输出设备,可以接在数字接口也可以接在模拟接口
第08课 利用声音、光控制灯的亮灭
视频地址
所用设备
| 设备 | 特点 | 种类 |
|---|---|---|
| 光敏传感器 | 5V | |
| 声音传感器 | 5V | |
| 发光二极管 | 5V | |
- 知识点
- 光敏传感器:一个模拟设备,光的强度高,得到的数值越大
- 声音传感器:一个模拟设备,声音的强度高,得到的数值越大
- 项目说明
- 只有当天暗下来了,声音的强度达到一定的数值时,灯才亮。

- 只有当天暗下来了,声音的强度达到一定的数值时,灯才亮。
边栏推荐
- 等保2.0密码要求是什么?法律依据有哪些?
- Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)
- 米哈游起诉五矿信托,后者曾被曝产品暴雷
- Special function calculator
- C language course design
- QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
- A large number of missing anchor text
- Sword finger offer 22 The penultimate node in the linked list
- 当发布/订阅模式遇上.NET
- Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
猜你喜欢

Mihayou sued Minmetals trust, which was exposed to product thunderstorms

What is RPC

Sliding window + monotone queue concept and example (p1886 Logu)

Kubernetes基础自学系列 | Ingress API讲解
A large number of missing anchor text

郎酒两大王牌产品成都联动共振,持续带动光瓶酒消费浪潮

09 route guard authenticates URL

d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download

EMQ helps Qingdao Yanbo build a smart water platform

428-二叉树(501.二叉搜索树中的众数、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点、669. 修剪二叉搜索树)
随机推荐
[Niuke's questions] nowcoder claims to have remembered all Fibonacci numbers between 1 and 100000. To test him, we gave him a random number N and asked him to say the nth Fibonacci number. If the nth
软件测试学习-黑马程序员,软件测试学习大纲
特殊函数计算器
华为云DevCloud重磅发布四大新能力,创下国内两项第一
C语言课程设计
d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download
Performance problems caused by redis cache invalidation and competitive loading
关于VS2019C#如何建立登陆界面输入的用户名和密码需与Access数据库的记录相匹配
EMQ helps Qingdao Yanbo build a smart water platform
一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】
Source NAT address translation and server mapping web page configuration of firewall Foundation
Awk determines whether the first column is greater than 1. If it is greater than 1, the row will be printed
Oracle concept 3
d3dx9_ How to repair 40.dll? Win10 system d3dx9_ What if 40.dll is lost?
数据中心表格报表实现定制统计加班请假汇总记录分享
Construction and management practice of ByteDance buried point data flow
d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll
Ping An technology's practice of migrating from Oracle to ubisql
Drawing for example study of flashcc
#yyds干货盘点#简述chromeV8引擎垃圾回收

