Design of a mobile phone Bluetooth temperature video monitoring car based on STM32

Publisher:qiuxubiaoLatest update time:2015-09-18 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
 
         Design Description

This design uses the Bluetooth of the mobile phone as a remote control to control the driving of the car. At the same time, the temperature of the car's environment and the surrounding environment are transmitted to the computer terminal through 2.4g wireless for real-time monitoring.
This design is a Bluetooth-controlled video acquisition car based on the stm32 microcontroller.
This design uses Bluetooth modules, l298n modules, wireless audio and video acquisition modules, camera modules, and
wireless audio and video receiving modules. DS18b20 temperature acquisition module. The stm32 program is naked and not embedded in ucosii.
Design function As long as a certain character code is sent through the APP on the mobile phone, the front and rear left and right stops of the car can be controlled, the temperature is reported, and the camera switch is controlled.
Then the front environment of the car's location is displayed through the computer terminal, and the surrounding environment is viewed by controlling the rotation. The video distance is within 10m and the Bluetooth distance is 40m. Open space.
  The controller for collecting parameters such as ambient temperature uses the arm chip stm32rbt6. It is used to realize simple data processing, including temperature collection, controlling the front and rear left and right driving of the car, switching the camera, and controlling the direction lights. The temperature sensor is the Dallas temperature sensor DS18B20, which has only one data bus, greatly saving io port resources. The motor adopts dual-wheel drive, and the driver chip adopts L298N. The chip has a typical H-bridge structure inside, and the voltage can reach 8-40v, which is most suitable for driving DC motors. The chip only needs the controller to input a pwm waveform to drive the motor. To protect the controller, we added a first-level optocoupler isolation tlp521 chip between the chip and the main controller.

The mobile phone is used as a remote control to control the car through the Bluetooth transmission module HC-05. The module is compatible with Bluetooth 2.0, the baud rate is adjustable, and the transmission distance can reach 30 meters. The

wireless video transmission module is realized by TX6279 and the receiving module RX6788. The chip has the functions of encoding and decoding plus wireless transmission and reception, which is suitable for short-distance video surveillance transmission.
The overall block diagram is as follows Design features *Bluetooth mobile phone APP control, wireless distance up to 40 meters *Wireless video transmission 10 meters *Voltage input 12V, 3 mobile phone batteries can be achieved. *           Introduction to the module of the four-direction three-wheeled smart car 1 Wireless audio and video transmission module This module is implemented using the dedicated audio and video transmission modules RX6788 and TX6279. The module does not require programming, and the av line video output only requires the camera to be connected and powered on. Transmitter module Working frequency: 2.4g 2 groups of frequencies and 8 channels are optional, easily avoiding interference. Modulation mode: FM broadband frequency modulation Power: 100mw Voltage: 5v Current consumption: about 80ma Dimensions: 17.5mm*17.5mm*2.5mm Communication distance: 100-200M Input format: av signal Wiring method According to the different colors, yellow is the video line, white is the audio line, red is the positive pole of the power line connected to the positive pole of a mobile phone battery, black is the negative pole, and they are tied together and connected to the negative pole. Of course, the positive pole can be connected to a transistor to control the opening and closing of the electricity. Receiver module Working frequency: 2.4g Current consumption: 150ma Size: 45mm 47 mm Output format: av signal Wiring method Since the module outputs av signals, it cannot be displayed directly on the computer. You can buy a usb video capture card, which is not expensive, 30 yuan. Here we choose easycap's 1-way output. As shown in the figure What we need to do is cut off the yellow video head and connect it to the second pin video of the wireless receiving module, connect the negative pole, open the software settings according to the instructions, and the host computer software is provided in the CD. You can use it after installing the setting number. If you don't use a usb video capture card, you can also use a 4-inch or 7-inch color screen with an av interface. Bluetooth module As mentioned above, we use the hc-05 Bluetooth module, and you can use the AT command to set the baud rate and name. There are a lot of them sold on Taobao, and you can ask the merchant for information. Driver module We use the L298N module to drive the motor to move left and right. Software part This description is only suitable for the temperature video monitoring design based on the Bluetooth car.      After the task starts, a series of initializations begin, including clock initialization, interrupt initialization, timer2 timer initialization, interrupt nesting configuration initialization, and io port configuration initialization.     The timer uses the pwm wave implemented by the register carried by the stm32 itself. The general timer generally has 4 channels, and we only use one of them.     Use the serial port 2 of stm32 to communicate with the Bluetooth module, and the baud rate is 9600. The data sent by the mobile phone Bluetooth is received by the stm32 interrupt, and then the data is simply analyzed and processed. The main program keeps scanning for command requests and keeps obtaining the temperature. When there is a command, the corresponding action is executed for the command processing. The entire process flowchart is as follows The effect diagram is as follows
Image5.png 


















 
 

T1DL1FFT4aXXXXXXXX_!!0-item_pic.jpg_310x310.jpgT1jyQDXdlXXXXXXXXX_!!0-item_pic.jpg_400x400.jpg






1.jpg


 
T1rhJDFKxbXXXXXXXX_!!0-item_pic.jpg_400x400.jpg



Picture 3.jpg



 









Image6.png



TB1mADiFFXXXXX3bFXXXXXXXXXX_!!0-item_pic.jpgT2FbNIX4dXXXXXXXXX-656747741.jpg
 
         Design Description

This design uses the Bluetooth of the mobile phone as a remote control to control the driving of the car. At the same time, the temperature of the car's environment and the surrounding environment are transmitted to the computer terminal through 2.4G wireless for real-time monitoring.
This design is a Bluetooth-controlled video acquisition car based on the stm32 microcontroller.
This design uses Bluetooth modules, l298n modules, wireless audio and video acquisition modules, camera modules, and
wireless audio and video receiving modules. DS18b20 temperature acquisition module. The stm32 program is naked and not embedded in ucosii.
Design function As long as a certain character code is sent through the APP on the mobile phone, the front and rear left and right stops of the car can be controlled, the temperature can be reported, and the camera switch can be controlled.
Then the front environment of the car's location is displayed through the computer terminal, and the surrounding environment can be viewed by controlling the rotation. The video distance is within 10m and the Bluetooth distance is 40m. Open space. [page]
  The controller for collecting parameters such as ambient temperature uses the arm chip stm32rbt6. It is used to realize simple data processing, including temperature collection, controlling the front and rear left and right driving of the car, switching the camera, and controlling the direction lights. The temperature sensor is the Dallas temperature sensor DS18B20, which has only one data bus, greatly saving io port resources. The motor adopts dual-wheel drive, and the driver chip adopts L298N. The chip has a typical H-bridge structure inside, and the voltage can reach 8-40v, which is most suitable for driving DC motors. The chip only needs the controller to input a pwm waveform to drive the motor. To protect the controller, we added a first-level optocoupler isolation tlp521 chip between the chip and the main controller.

The mobile phone is used as a remote control to control the car through the Bluetooth transmission module HC-05. The module is compatible with Bluetooth 2.0, the baud rate is adjustable, and the transmission distance can reach 30 meters. The

wireless video transmission module is realized by TX6279 and the receiving module RX6788. The chip has the functions of encoding and decoding plus wireless transmission and reception, which is suitable for short-distance video surveillance transmission.
The overall block diagram is as follows Design features *Bluetooth mobile phone APP control, wireless distance up to 40 meters *Wireless video transmission 10 meters *Voltage input 12V, 3 mobile phone batteries can be achieved. *           Introduction to the module of the four-direction three-wheeled smart car 1 Wireless audio and video transmission module This module is implemented using the dedicated audio and video transmission modules RX6788 and TX6279. The module does not require programming, and the av line video output only requires the camera to be connected and powered on. Transmitter module Working frequency: 2.4g 2 groups of frequencies and 8 channels are optional, easily avoiding interference. Modulation mode: FM broadband frequency modulation Power: 100mw Voltage: 5v Current consumption: about 80ma Dimensions: 17.5mm*17.5mm*2.5mm Communication distance: 100-200M Input format: av signal Wiring method According to the different colors, yellow is the video line, white is the audio line, red is the positive pole of the power line connected to the positive pole of a mobile phone battery, black is the negative pole, and they are tied together and connected to the negative pole. Of course, the positive pole can be connected to a transistor to control the opening and closing of the electricity. Receiver module Working frequency: 2.4g Current consumption: 150ma Size: 45mm 47 mm Output format: av signal Wiring method Since the module outputs av signals, it cannot be displayed directly on the computer. You can buy a usb video capture card, which is not expensive, 30 yuan. Here we choose easycap's 1-way output. As shown in the figure What we need to do is cut off the yellow video head and connect it to the second pin video of the wireless receiving module, connect the negative pole, open the software settings according to the instructions, and the host computer software is provided in the CD. You can use it after installing the setting number. If you don't use a usb video capture card, you can also use a 4-inch or 7-inch color screen with an av interface. Bluetooth module As mentioned above, we use the hc-05 Bluetooth module, and you can use the AT command to set the baud rate and name. There are a lot of them sold on Taobao, and you can ask the merchant for information. Driver module We use the L298N module to drive the motor to move left and right. Software part This description is only suitable for the temperature video monitoring design based on the Bluetooth car.      After the task starts, a series of initializations begin, including clock initialization, interrupt initialization, timer2 timer initialization, interrupt nesting configuration initialization, and io port configuration initialization.     The timer uses the pwm wave implemented by the register carried by the stm32 itself. The general timer generally has 4 channels, and we only use one of them.     Use the serial port 2 of stm32 to communicate with the Bluetooth module, and the baud rate is 9600. The data sent by the mobile phone Bluetooth is received by the stm32 interrupt, and then the data is simply analyzed and processed. The main program keeps scanning for command requests and keeps obtaining the temperature. When there is a command, the corresponding action is executed for the command processing. The entire process flowchart is as follows The effect diagram is as follows
Image5.png 


















 
 

T1DL1FFT4aXXXXXXXX_!!0-item_pic.jpg_310x310.jpgT1jyQDXdlXXXXXXXXX_!!0-item_pic.jpg_400x400.jpg






1.jpg


 
T1rhJDFKxbXXXXXXXX_!!0-item_pic.jpg_400x400.jpg



Picture 3.jpg



 









Image6.png



TB1mADiFFXXXXX3bFXXXXXXXXXX_!!0-item_pic.jpgT2FbNIX4dXXXXXXXXX-656747741.jpg
Keywords:STM32 Reference address:Design of a mobile phone Bluetooth temperature video monitoring car based on STM32

Previous article:STM32 timer captures high and low level timing long code analysis
Next article:Mounting failure and return value issues encountered when porting FATFS to STM32RBT6

Recommended ReadingLatest update time:2024-11-17 01:38

Detailed explanation of the use of stm32 standard peripheral library
Download the code      The stm32 standard peripheral library is the peripheral driver for the full range of stm32 chips. With it, we can greatly accelerate the development of stm32.     First, download the latest stm32 standard peripheral library from the website of st company. The latest version is v3.5.0 when writi
[Microcontroller]
STM32 FSMC usage--LCD
1. Basic Concepts of LCD/LCM The structure of Liquid Crystal Display (LCD) is to place liquid crystals between two parallel pieces of glass. There are many vertical and horizontal fine wires between the two pieces of glass. The rod-shaped crystal molecules are controlled to change direction by powering on or off, and
[Microcontroller]
STM32 DMA self-study brief summary
        Simply record the configuration instructions of STM32's DMA--------         According to the DMA program of the serial port of Wildfire, you can simply understand the instructions----- ----Part 1----DMA Configuration----- void USART1_DMA_Config(void) { DMA_InitTypeDef DMA_InitStructure; RCC_AHBPeriphClockCmd(
[Microcontroller]
STM32 DMA self-study brief summary
STM32 SD card communication arrangement
Introduction: SD card is divided into 4 layers from driver to application, from bottom to top: driver layer, physical layer, file system layer, application layer. The following introduces some important operations of each layer one by one. Driver layer The driver layer corresponds to the ST library, which is the tw
[Microcontroller]
STM32 interrupt vector table offset address configuration method
Take changing the interrupt vector table offset address to 0x8005000 as an example The first method: Set the system_stm32f1xx.c file #defineVECT_TAB_OFFSET 0x5000  In the void SystemInit (void) function, the address offset is implemented by the "SCB- VTOR = FLASH_BASE | VECT_TAB_OFFSET" command The second method: When
[Microcontroller]
stm32 clock related
I quoted some content from another blogger based on the original .    The clock system is the core of the processor, so before learning all the peripherals of STM32, it is necessary to carefully study the clock system, which helps to have a deep understanding of STM32.  The following is an STM32 clock block diagram
[Microcontroller]
stm32 clock related
STM32 learning notes-preparation
        Due to academic needs and personal interests, I recently bought an STM32 development board and prepared to start learning STM32. Previously, I had only been learning 51 MCUs. After I started to understand STM32, I found that the difference between STM32 and 51 MCUs is quite large, and the performance is much be
[Microcontroller]
STM32 learning notes-preparation
Five steps to set up STM32 EXTI interrupt
First, select the number of interrupt priorities required according to the actual system, that is, NVIC_PriorityGroupConfig (NVIC_PriorityGroup_0);   Then follow the 5 steps below   1 AFIO and GPIO clock settings   2 Set the interrupt pin to IN_PU or floating input   3 Bind exti interrupt pin such as GPIO_EXTILin
[Microcontroller]
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号