当前位置:网站首页>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 .
边栏推荐
- d3dx9_ How to repair 33.dll? d3dx9_ What if 33.dll is lost?
- Etcd可视化工具:Kstone部署(一),基于Helm快速部署
- localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
- Mihayou sued Minmetals trust, which was exposed to product thunderstorms
- How to improve it electronic equipment performance management
- Oracle concept 3
- Leetcode 46 Full Permutation
- Related configuration commands of Huawei LACP
- Hongmeng makes efforts! HDD Hangzhou station · offline salon invites you to build ecology
- 华为云DevCloud重磅发布四大新能力,创下国内两项第一
猜你喜欢

Sword finger offer 22 The penultimate node in the linked list

Unity shadow shadow pancaking

Alibaba cloud liupeizi: Inspiration from cloud games - innovation on the end

Redis Series 2: data persistence improves availability

Synchronization mechanism of dual namenodes

leetcode 19. Delete the penultimate node of the linked list

模拟进程调度

鴻蒙發力!HDD杭州站·線下沙龍邀您共建生態

Oracle concept II

Halcon: discrete digital OCR recognition
随机推荐
What do fast fashion brands care more about?
QT5 之信号与槽机制(信号与槽的基本介绍)
leetcode 69. Square root of X
Special function calculator
d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll
Defiato is an innovation that combines user-friendly features of a centralized platform with defi services
Qt5 signal and slot mechanism (basic introduction to signal and slot)
leetcode 200. Number of islands
After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines
阿里云刘珅孜:云游戏带来的启发——端上创新
A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe
LeetCode每日一练(两数之和)
Oracle概念二
继手机之后 报道称三星也削减了电视等家电产品线的产量
09 route guard authenticates URL
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
P. Simple application of a.r.a method in Siyuan (friendly testing)
Leetcode 33. Search rotation sort array
Redis Series 2: data persistence improves availability
2/14 preliminary calculation geometry