Introduction to the second group of games

Publisher:SereneHeartLatest update time:2024-08-12 Source: cnblogs Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

First, when you have an idea, write a functional block diagram like this so that you can understand what you want to do.

Without doing the chemistry part, we can have a preliminary understanding of the specific usage of the microcontroller.

However, since we have just started learning, we will implement each function one by one, and then implement this function in an overlapping manner. Do not delete the program that implements the function every week.

The first function is the breathing light. I watched the LED light video in the microcontroller by myself on the weekend of the first week, and posted the phenomenon of one light up every 3 seconds in the group. As of the date (3.14~3.21), experience: 40

The second function is the buzzer. In the second week, watch the buzzer video. Post in the group the phenomenon of the buzzer beeping once per second and the LED lighting up once per second. Deadline (3.21~3.28) Experience: 50

The third function is the key switch - after watching the key switch video in the third week,

1. An independent button is used as the start button, so that pressing the button will start the second function. Another independent button is used as the stop button, and pressing it will stop. The third button, when pressed, will speed up the buzzer beeping time. (Experience: 60)

2. Use the matrix keys as a numeric keyboard to light up the 8 lights in sequence. Press the number key 1 to light up every other light. Press the number 2 to light up every other two lights, and so on. Press the number key 9 to light up the lights in reverse order; press the number key 0, the number key 0, to light up all lights. (Experience: 70)

Deadline (3.28~4.11)

The fourth function is the digital tube - after watching the digital tube video in the fifth week,

Understand the difference between static and dynamic. The dynamic time will count down for 30 seconds. Experience: 50

Press the matrix button number key to enter the 6-digit password, and the digital tube will jump from displaying the time to displaying the input password. Experience: 50

Deadline (4.11~4.18)

The fifth function is to use Lcd1602,——After reading about lcd1602 and AD in the sixth week

LCD1602 display: BO0M: Countdown 30 seconds. Experience: 60

Rotate the potentiometer to change the buzzer frequency Experience: 60

Deadline (April 18 to April 25)

The sixth function is DS18B20,

Increase the temperature (you can pinch DS18B20 to increase its temperature) and speed up the countdown. Experience: 50

(If the temperature module is broken, the task will be changed to: if the 6-digit password entered by the digital tube does not match the original password, the buzzer will alarm)

Deadline (April 25 to May 3)

Week 8 - Make a real bomb, put it all together - implement a complete bomb timer, write a flowchart according to the function in the figure above (write a flowchart), which will be of great help to the logic of thinking. And realize the function.

Deadline()

Your weekly rating: https://yunxiaguang.github.io/jiang.github.io/html.html

The gameplay is updated every week. . . .

The key point, the most important thing: please don’t ask me privately. I haven’t learned the 51 single-chip microcomputer yet. If you go to Yangcun to ask other seniors, they are faster than me.

If you don't understand something about the program, you can discuss it in the group. If you have any questions about the microcontroller or the program in a private chat, I will not reply!

This is also for the sake of efficiency in answering questions. Sometimes a question may be repeated 8 times and answered tirelessly.

Don't say I'm exaggerating, this kind of situation happened several times when I was drawing AD.

Sometimes I answer a question 8 times, and you definitely can’t see the painful expression on my face.

If you don’t want the senior to give up teaching you, it’s best to look through the records in the group.

Also, don’t fall behind. Those who fall behind will understand the meaning of this sentence after two weeks.

Secondly, if you don’t have a microcontroller, it doesn’t matter. You can learn how to use multisim to build a circuit.

If you don’t want to learn, it doesn’t matter. After you get the microcontroller, just implement the above functions one by one and post them in the group.

It doesn't matter if you don't want to learn it, you can learn it in your sophomore year. It's just that I'm not very confident about participating in the electronic competition in my freshman year.

Let’s start playing. I hope that after you learn how to play, you will not do bad things and be good citizens.


Reference address:Introduction to the second group of games

Previous article:MCU timer
Next article:51 MCU Study Notes

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号