1. Hardware Solution
This design is mainly to produce a GPS automatic bus stop announcement based on 51 single-chip microcomputer. According to the design requirements, the hardware part should have the functions of GPS positioning, voice broadcast, LCD display, key operation and corresponding indicator light prompts. Therefore, this design uses STC89C58RC single-chip microcomputer as the main control chip, GPS module uses VK2828U7G5LF, LCD display part uses LCD12864 liquid crystal, audio playback part uses Miniplay module, and key circuit, indicator light prompt circuit also adds clock display circuit. The overall hardware block diagram is shown in the figure:
2. Design function
(1) There are two main ways of announcement in this design. One is that when arriving at the announcement station, the driver presses the corresponding button to make an announcement; the other is a fully automatic voice announcement method. When arriving at the announcement station, the design will automatically make an announcement.
(2) It has a built-in clock display and a GPS automatic time calibration switch. When the calibration button is pressed, the current time data will be automatically calibrated once each time the power is turned on if valid GPS data is received. Pressing the button again will turn off the automatic GPS time calibration function, but the manual debugging function is supported.
(3) The clock chip is equipped with a button battery. When the system loses power, the button battery continues to work; after powering on again, the time does not need to be reset;
(4) The volume of the voice broadcast can be adjusted by pressing the button.
(5) There are two ways to modify the latitude and longitude data during automatic broadcasting. One is to fix the program and cannot be modified. The other is to customize the latitude and longitude data. The user can stand at the location where the broadcast is desired with the device, select the corresponding menu, and press the corresponding button when the GPS data is stable to enter the latitude and longitude data of the station name.
3. Design Schematic
(1) The schematic diagram is mainly designed using AD software, as shown in the figure:
(2) The PCB diagram is as follows:
4. Software Design
(1) Program flow chart
(2) Main program source code
void main()
{
TimeInt();
LCD12864_init(); //Call display function
// Send_Appoint_Music(1);
read_memory();
Mode=0;
if(Mode)
{
read_GPS();
}
while(1)
{
read_time1(); //Read time function, GPS_Write is equal to 1, indicating that the GPS to be acquired is assigned to the time
GPS_Route_Dispose();
Display(); //Display function
key_dispose(); //Key processing function
memory();
memory_GPS();
led_dispose();
if(Busy == 0)
{
if(Sound_flag)
{
Sound_flag=0;
Send_Appoint_Sound(Sound);
}
}
}
}
Previous article:Infrared drip infusion detection system based on 51 single chip microcomputer
Next article:Design of intelligent wiper based on 51 single chip microcomputer
Recommended ReadingLatest update time:2024-11-17 02:53
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- How to download KEIL DFP package experience sharing
- Detailed explanation of the flash encryption principle and steps of ESP32, ESP32S2, and ESP-C3 series
- After the stm32 serial port is initialized, the microcontroller does not run automatically, most likely because printf is used
- STMicroelectronics Industry Summit 2020 invites you to attend!
- Google's No. 1 Beauty's Workflow
- EEWORLD University----[High Precision Laboratory] Motor Drive: Motor Drive Technology
- CircuitPython Creative Works
- Infineon Tmall store birthday promotion: triple gifts are offered, purchase designated products over 200 yuan and get a development board worth 500 yuan for free!
- FAQ_ How to implement RX-TX switching control
- Thank you for being there + bow deeply