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
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
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
- 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
- RT-Thread4.0 is officially released, and also supports SMP (source code download address included)
- Smart speakers are more than just listening - TI DLP Pico technology creates an excellent smart display experience
- What about emoticons?
- EEWORLD University Hall----Live Replay: Application of NXP LPC553x in Dual Motor Control
- 【TI Course】How can I learn the complete course? How do I need to pay and how do I pay?
- E-sports support
- The Secret of Semiconductor Testing (Reprinted)
- Infringement! Chinese company demands 10-year ban on iPhone sales and 10 billion RMB in damages
- Can stm32 separate the kernel from the application (using dynamic link libraries?)
- [CY8CKIT-149 PSoC 4100S Review] + Unboxing