当前位置:网站首页>Electronic smart package tutorial
Electronic smart package tutorial
2022-06-27 17:06:00 【acktomas】
Catalog
- The first 01 course High and low level , A serial port ,LED The lamp
- The first 02 course Serial port output and button
- The first 03 course press-button control LED The lamp
- The first 04 course Counter
- The first 05 course Application of frequency conversion technology -- Candlelight lamp
- The first 06 course Digital and analog signals
- The first 07 course Automatic flower watering device
- The first 08 course Using sound 、 Light control lamp on and off
The first 01 course High and low level , A serial port ,LED The lamp
- Main control panel ( Analog port , Digital interface )
- Expansion board
- LED The light goes on and off
- The serial port outputs some information inside the main control board (*)

The first 02 course Serial port output and button
- Serial port output information ( Some internal states of the main control board , temperature ), Debugging program 、 When checking the status of the hardware
- Set the communication frequency , If the frequency is inconsistent , The output information will be garbled
- Button controls the output

The first 03 course press-button control LED The lamp
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| LED The lamp | 3V | |
| Roller switch | 5V | Digital devices , Only 2 States |
| Touch switch | 5V | Digital devices |
- Learn about button clicks , What happens when a button is clicked ? What is a click , Process one click ( Loops and variables )
- Use the buttons to control LED On and off
Knowledge to prepare : High level =1, Low level =0
The first 04 course Counter
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| Four digit nixie tube | 5V | |
| Roller switch | 5V | Digital devices , Only 2 States |
- Add monitor
- Number to string conversion :12→“12” ,“1”+1 = 66 (ASCII surface ), IIC Equivalent to I2C
Error program :
Correct procedure :
The first 05 course Application of frequency conversion technology – Candlelight lamp
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| LED | 3V | |
- Knowledge point
- pwm: yes Pulse width modulation ,
Arduino The control board is preset with 1kHz and 500Hz Two different groups PWM output frequency
Digital pin 5、6:976.5625Hz
Digital pin 3、11、9、10:490.196Hz
if PWM The frequency is too low , The motor will shake ,LED It will flash
The first 6 Pin out 3.3V voltage , 168 255 × 5 ≈ 3.3 \frac {168}{255}\times {5} \approx 3.3 255168×5≈3.3 - random number
(0,255),
- pwm: yes Pulse width modulation ,
The first 06 course Digital and analog signals
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| Touch switch | 5V | |
| Angle sensor | 5V | |
Knowledge point
- Digital and analog equipment
- Digital devices : Connected to analog interface , Only 2 It's worth ,0 and 1023
- Analog equipment : Connected to analog interface , You can get a lot of value , Value range (0,1023)
- pwm(0,255)
- Analog equipment and digital equipment are connected to digital interface (D):(0,1)
- Digital interface and analog interface
- Is a device analog or digital
- All connected to the analog port , See how many values there are , There are many values , Analog devices , Only two values are digital devices
- Digital equipment can be connected to both digital interface and analog interface .
- Digital and analog equipment
The first 07 course Automatic flower watering device
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| Soil moisture dock | 5V | |
| Buzzer | 5V | |
- Knowledge point
- Analog equipment : Data can only be obtained through analog devices , If a device like a buzzer is an output device , It can be connected to digital interface or analog interface

- Analog equipment : Data can only be obtained through analog devices , If a device like a buzzer is an output device , It can be connected to digital interface or analog interface
The first 08 course Using sound 、 Light control lamp on and off
Video address
Equipment used
| equipment | characteristic | species |
|---|---|---|
| Photosensitive sensors | 5V | |
| Sound sensor | 5V | |
| Light-emitting diode | 5V | |
- Knowledge point
- Photosensitive sensors : An analog device , The intensity of light is high , The larger the value obtained
- Sound sensor : An analog device , The intensity of the sound is high , The larger the value obtained
- Project description
- Only the day was dark , When the intensity of the sound reaches a certain value , The light is on .

- Only the day was dark , When the intensity of the sound reaches a certain value , The light is on .
边栏推荐
- Why should string be designed to be immutable?
- leetcode 92. Reverse linked list II
- d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll
- What are the password requirements for waiting insurance 2.0? What are the legal bases?
- 10 minutes to master the installation steps of MySQL
- #yyds干货盘点#简述chromeV8引擎垃圾回收
- P. Simple application of a.r.a method in Siyuan (friendly testing)
- QT5 之信号与槽机制(演示控件自带的信号与槽函数关联)
- How to improve it electronic equipment performance management
- Oracle概念三
猜你喜欢

米哈游起诉五矿信托,后者曾被曝产品暴雷

Autodesk NavisWorks 2022 software installation package download and installation tutorial

09 route guard authenticates URL

Data center table reports realize customized statistics, overtime leave summary record sharing

Handling method of occasional error reporting on overseas equipment
![[the way of programmer training] - 3 Character count statistics](/img/0c/e506571a4b22edc7c02a346909eeab.jpg)
[the way of programmer training] - 3 Character count statistics

Practice of constructing ten billion relationship knowledge map based on Nebula graph

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

Leetcode 46 Full Permutation

428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
随机推荐
Community sharing jumpserver in the eyes of senior open source users: a fortress machine for "Crazy" iteration
Kubernetes basic self-study series | introduction to ingress API
Related configuration commands of Huawei LACP
Raspberry pie preliminary use
QT5 之信号与槽机制(信号与槽的基本介绍)
Awk determines whether the first column is greater than 1. If it is greater than 1, the row will be printed
Simulated process scheduling
Redis Series 2: data persistence improves availability
Alibaba cloud liupeizi: Inspiration from cloud games - innovation on the end
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
Oracle概念二
Sliding window + monotone queue concept and example (p1886 Logu)
简历如何去写?
Huawei cloud devcloud launched four new capabilities, setting two domestic firsts
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
2022年中国音频市场年度综合分析
leetcode 200. Number of islands
10 minutes to master the installation steps of MySQL
d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download
d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll