Modular educational robot hardware system solution based on DSP

Publisher:创新思绪Latest update time:2014-12-27 Source: 互联网Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  As a complex of high-tech, intelligent robots directly reflect the development level of a country's information technology and have been highly valued by all sectors of society. Intelligent robots involve almost all the contents of information technology, allowing students to access and see the full view of information technology. In addition, intelligent robots are an open platform for information technology. Students can give full play to their imagination to develop various intelligent devices, thereby cultivating students' ability to develop information technology. In the process of development, various abilities are cultivated and students' interest is stimulated.

  This paper designs an educational robot hardware platform based on TMS320LF2407A with an intelligent car as the carrier, including the circuit design of the power module and the motor drive module, and integrates infrared and photosensitive sensors and wireless data transmission modules. Through software design, it can realize the functions of tracking, obstacle avoidance and the combination of tracking and obstacle avoidance, achieving the purpose of combining theoretical course learning with hands-on practice, consolidating knowledge and further enhancing learners' interest.

  1 Design concept and overall plan

  1.1 Design ideas of educational robots

  This educational robot is based on the TMS320LF2407A microcontroller. It uses the external environment information collected by various sensors such as infrared sensors and photoelectric sensors as input signals, processes them through DSP, and uses PWM technology to output in real time to adjust the speed and direction of the car, so as to realize the functions of automatic control such as tracking, obstacle avoidance, tracking and obstacle avoidance. In addition, when the car is tracking, the robot can automatically

  If an obstacle is encountered during the process, and the tracking and obstacle avoidance algorithm cannot complete the obstacle avoidance function while tracking, the wireless communication transceiver module connected to the PC and another wireless transceiver module connected to the DSP can realize wireless short-range communication to control the car to leave the obstacle area and perform normal tracking.

  1.2 Overall design and block diagram

  The overall block diagram of the robot car system is shown in Figure 1. It mainly consists of the TMS320LF2407A minimum system part, power module, motor drive module, sensor module, and wireless communication module. Various on-board sensors continuously transmit information to the on-board microcontroller, and download the programming design algorithm to the microcontroller to adjust the motion state of the car in real time to meet certain functional requirements.

  robot

  2 System Hardware Module Design

  2.1 TMS320LF2407A minimum system design

  TMS320LF2407A is the most widely used product in the 2000 series. It not only has an efficient processor suitable for digital signal processing, but also integrates memory and rich on-chip peripherals suitable for control applications, thus forming a basic on-chip computer system. In addition to the advantages of improved Harvard structure, multi-bus structure and pipeline structure, it also adopts high-performance static CMOS technology, the voltage is reduced to 3.3V, the power consumption is reduced, the instruction execution speed is increased to 40MIPS, and almost all instructions can be completed within a single cycle of 2 5ns. The basic structure of TMS320LF2407A includes three components: central processing unit (CPU), memory, on-chip peripherals and dedicated hardware circuits. The hardware platform of this system fully utilizes the characteristics of TMS320LF2407A controller and adopts modular design, which is divided into basic circuit and extended control circuit. The basic circuit includes power supply circuit, reset circuit, clock circuit, A/D input channel and JTAG simulation circuit. The expansion circuit includes memory and decoding circuit, serial communication SCI and RS-232 interface circuit, CAN interface circuit, SPI functional module, etc. The system hardware principle block diagram is shown in Figure 2.

  Circuit Diagram

  This part uses photoelectric sensors to identify road information. RPR220 photoelectric tube is used. RPR220 is an integrated reflective photoelectric detector. Its transmitter is a gallium arsenide infrared light-emitting diode, and the receiving tube is a high-sensitivity silicon planar photoelectric triode. Three infrared tubes are arranged in a "one" shape at the bottom of the front of the car. The path trajectory is indicated by the black line. According to the difference between the intensity of the reflected light received by the photoelectric triode falling in the black line area and the white area, the position of the black line photoelectric tube detected is used to judge the position and direction of the car to see whether it deviates from the black line. When the infrared diode of the infrared tube emits infrared light, it is reflected to the receiving tube by the reflector (white line), and the resistance between the collector and emitter of the receiving tube becomes smaller, the input potential becomes lower, and the output is low after comparison by the comparator. When the infrared light is irradiated on the black line, the brightness reflected on the receiving tube decreases, and the resistance between the collector and emitter of the receiving tube increases, so that the output is high. The output signal is sent to 2407A for analysis and processing. The principle of the reflective photoelectric sensor is shown in Figure 3. If the middle sensor (center sensor) detects a black line, the sensor will send a "wired" signal, and the two rear wheel motors will continue to run, driving the vehicle forward. If any of the left and right sensors, except the center sensor, does not detect a black line, the sensor will output a "wireless" signal, and the drive motor on the opposite side of the sensor that has left the guide line will stop running, while the motor on the same side will continue to run, thereby achieving the purpose of correcting the direction of travel.

  Circuit

  2.3 Design of infrared obstacle avoidance module

  When the car encounters an obstacle during its movement and cannot pass through normally, an infrared detector is used to detect the obstacle, and an algorithm is designed to control the car to bypass the obstacle and continue to track forward. An infrared emitting diode (such as Toshiba TLN110) is installed on both sides of the front end of the car to transmit infrared signals. The signal emitted by the infrared light source is modulated to 38kHz, and the PWM output of 2407A is used to generate accurate signals. The infrared receiver receives the infrared signal by a dedicated infrared receiving module (such as CRVPl738) installed in the center of the car head. The principle of judging obstacles in the car's forward route: a. The infrared emitting diode on the left transmits a signal, detects the central receiving end, and determines whether the signal is received; b. The infrared emitting diode on the right transmits a signal, detects the central receiving end, and determines whether the signal is received; c. If there is a signal received when the left side is transmitted, there is an obstacle on the left side of the car; if there is a signal received when the right side is transmitted, there is an obstacle on the right side of the car; if there is a signal received when both the left and right sides are transmitted, there is an obstacle directly in front of the car.

  There are three obstacle avoidance algorithms when the car moves forward: walking along the left side, walking along the right side, and walking in combination with the left and right sides. This design aims to avoid obstacles in a variety of environments, so the algorithm of walking in combination with the left and right sides is selected. Several infrared distance measuring sensors (GP2D12) are installed on the left and right sides of the car in equal proportion to prevent the car from colliding with obstacles during obstacle avoidance. Since the output of GP2-D12 is an analog signal of 0.4~2.4V, corresponding to a distance of 80~10cm, the output is inversely proportional to the distance and is nonlinear. The A/D conversion function integrated in 2407A can be directly used to perform A/D conversion to obtain the corresponding parameters. According to the parameters, the DSP performs corresponding processing to avoid obstacles and move forward. In the process of obstacle avoidance, a proximity control strategy is adopted to maintain the distance between the obstacle and the sensor as a fixed constant. When the distance between the two is small, the robot rotates in the direction away from the obstacle; when the distance between the two is large, it rotates in the direction close to the obstacle. When the car moves along the obstacle, when the photoelectric sensor at the bottom of the front of the car detects a black line, the car begins to adjust its moving posture, stay away from the obstacle, and continue to track. In addition, when the car cannot successfully bypass the obstacle to continue tracking, the wireless communication module can be used to control the car to bypass the obstacle to continue tracking.

  2.4 Wireless Communication Module Design

  In the case that the robot cannot successfully avoid obstacles, the obstacle avoidance task can be completed through the communication cooperation between the DSP and the host computer (PC). The communication methods between the DSP and the PC are divided into wired and wireless, and most of them use serial communication. In this design, wireless communication is used to overcome the inconvenience caused by wired communication. PTR2000 is a wireless data transmission module based on the nRF401 device. It has the characteristics of low-frequency transmission and high sensitivity, which makes it widely used in embedded short-range wireless products. To achieve wireless communication between the DSP and the PC, a PTR2000 device needs to be installed on the DSP and the car body respectively. The system hardware structure block diagram is shown in Figure 4. The connection between PTR2000 and DSP is completed by directly connecting the RXD and TXD pins of 2407A with the DO and DI pins of PTR2000, and the control pin of 2407A is connected to the mode control pin of PTR2000. The connection between PTR2000 and DSP is completed by using the MAX232 device to convert between RS-232 and TTL levels between PTR2000 and the computer serial port, and then the connection between PTR2000 and the PC serial port is completed. The DSP and PC software work together to set the status of PTR2000 (transmit or receive), select a fixed communication channel, and keep PTR2000 in normal working state, and then realize the wireless communication function by designing the software system.

  Structure diagram

  The power module can be charged by a 16V AC voltage charger through a power charging circuit for 6 car-mounted nickel-cadmium batteries (about 7.2V) to provide working voltage for each module. The power circuit module is shown in Figure 5. Since the working voltage required by each module is different, a 5V DC voltage can be obtained by using a 78 (L) 05 regulator. The 3.3V power supply required by 2407A is realized by a low-voltage dropout regulator TPS733Q with an integrated delayed reset function, which also has a reset function. As shown in Figure 5.

  Power circuit module

  2.6 Motor drive module design

  This wheeled robot platform is driven by left and right DC motors, with a universal wheel in the middle for support. The motor drive module can realize the rotation of the two motors in any direction to achieve the purpose of the car moving forward, backward and turning. Whether the motor turns or not is determined by the sequence of high and low voltage signals provided to the motor drive circuit, which comes from the digital logic gate sequencing circuit at the front end. The input signal of the digital logic sequencing circuit is the direction signal and PWM signal generated by 2407A to realize the control of the direction and speed of the robot. It is divided into the direction end and the enable end. The circuit can also avoid the damage to electronic devices caused by power short circuit. This car motor drive circuit is an H-bridge drive circuit, which controls the direction of the motor current flow. When Q1 and 04 are turned on, the motor current flows from left to right and the motor rotates forward; when Q2 and Q3 are turned on, the motor current flows from right to left and the motor reverses. As shown in Figure 7.

  Motor drive circuit

  3 Overall system implementation

  The overall function of the educational robot hardware system with TMS320LF2407A as the core can be simulated and debugged by mixed programming of C language and assembly language under the support of software development tool CCS and hardware development tool XDS, and then downloaded to DSP through JTAG interface for implementation, which brings great convenience to DSP learners. At the same time, thanks to the richness of 2407A external resources, the unused parts of the system are conducive to learners to do further function development and application.

  4 Conclusion

  The overall hardware system has a simple structure and good scalability. It can control the robot to complete certain functions through software programming, which can well exercise students' logical thinking ability and programming ability, and help cultivate students' practical ability.

Keywords:DSP Reference address:Modular educational robot hardware system solution based on DSP

Previous article:DSP in FPGA: FIR Filter (Part 2)
Next article:A visual system design based on service robot

Recommended ReadingLatest update time:2024-11-16 14:52

A DSP-based optical fiber monitoring network system solution
introduction The neutral beam injection accelerating electrode power supply is a set of high-voltage and high-power pulse power supply developed for the National Large Science Project Superconducting Tokamak Fusion Experimental Device (EAST). This power supply adopts Pulse Step Modulation technology and is
[Security Electronics]
A DSP-based optical fiber monitoring network system solution
DSP Programming Skills 20---Understanding the Function Calling Process
  When we use C/C++ to program DSP , functions are undoubtedly an important part of functional module division, and these functions work together through explicit calls or interrupts. In addition to the allocation of calls to functions in specific RTS libraries (such as certain mathematical functions) according to
[Embedded]
Distributed Motor Control System Based on DSP and CAN Bus
introduction CAN (Controller Area Network) is a local area network mainly used for monitoring and controlling various devices. It was originally designed by Bosch of Germany for automobile monitoring systems. It has good functional characteristics and high reliability, and has strong anti-interference abili
[Embedded]
Design of Fault Diagnosis System for Train Rolling Bearing Based on DSP+MCU
O Introduction Rolling bearings are the support of train rotating parts and are also the most vulnerable parts on railway vehicles that are most likely to endanger driving safety. Due to the long-term and repeated action of the contact stress on the working surface, it is very easy to cause bearing fatigue,
[Embedded]
Research on laser micromachining system and control unit based on DSP+FPGA
Laser processing is a technology that studies the interaction between lasers and materials. It is also a high-tech technology that the country supports and promotes. In recent years, the annual growth rate of sales of laser processing machines in my country has remained at around 20% . The processing industry in dev
[Embedded]
How to implement binary number half search algorithm on DSP
  Binary search uses a jump method to compare the "middle value" in the sequence with the searched value, and then judges the area where the searched number is located according to whether the ratio is greater than or less than the "middle value". This article gives a specific method of applying the binary algorithm t
[Embedded]
How to implement binary number half search algorithm on DSP
Research on Low Power Design of Embedded DSP Accessing Off-Chip SDRAM
The limited on-chip memory capacity of DSP often makes designers feel stretched, especially in applications such as digital image processing and voice processing, which require strong support from high-speed and large-capacity storage space. Therefore, external memory is needed to expand the storage space of DSP. In D
[Embedded]
Research on Low Power Design of Embedded DSP Accessing Off-Chip SDRAM
Design of a Chinese speech synthesis system based on DSP
0 Preface With the continuous development and maturity of speech signal processing technology, speech synthesis is gradually becoming a key technology for human-computer interface in information technology. DSP chip, that is, digital signal processor, is a microprocessor with a special structure specially designed t
[Embedded]
Latest Embedded Articles
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号