Summary of the invention
The purpose of the present invention is to provide a kind of, and the Intelligent interactive toy robot based on STM32 microcontroller controls system
System improves toy interaction capabilities, increases entertainment and interest.
The technical scheme adopted by the invention is that:
A kind of Intelligent interactive toy robot control system based on STM32 microcontroller, including single-chip minimum system,
Speech recognition module, touch modules, bluetooth communication, OLED display module, steering engine module and key circuit, the voice are known
Other module, touch modules, bluetooth communication, OLED display module, steering engine module and the key circuit respectively with the list
The electrical connection of piece machine minimum system, the speech recognition module is to realize interactive voice, and the touch modules are to realize perception
Interaction, the bluetooth communication is to realize long-range control, electricity of the OLED display module to show DC power supply
And/or robot operating mode and/or robot expression and/or user require picture and text, video information, the steering engine mould
Moving direction of the block to control robot.
Preferably, the touch modules include that several touch chip and several touch tablets, several described touch tablets
It is placed on the different location of robot, when touching the different touch tablets, it is anti-that robot makes different movement or expression
It answers.
Preferably, control system includes 5V DC power supplier and 5V turns 3.3V power supply system module, the 5V direct current
Source module provides 5V power supply for the steering engine module, and it is that the single-chip minimum system mentions that the 5V, which turns 3.3V power supply system module,
For 3.3V power supply.
Preferably, control system includes JTAG online burning module, the JTAG online burning module and the single-chip microcontroller
Minimum system electrical connection.
Preferably, the key circuit includes master switch, master control borad power switch, steering engine power switch and selection Working mould
Formula switch, indicates the LED light and several series resistances of related switch folding condition.
Preferably, the speech recognition module uses serial communication, LD3320 speech chip is used.
Preferably, the steering engine module uses SG90 steering engine.
Compared with prior art, the beneficial effects of the present invention are:
Intelligent operation, interaction and the good-for-intelligence of present invention realization toy robot;Manufacturing cost is reduced, realizes man-machine friendship
Mutually;Single-chip minimum system can control steering engine module and robot operating mode, and there are two types of works for Intelligent interactive toy robot
Operation mode, single cpu mode and mobile interchange mode;In a stand-alone mode, interactive voice may be implemented in robot, and perception interdynamic is real
Existing various dance movements and motion control;Under mobile interchange mode, can be controlled by cell phone application robot expression,
Human-computer interaction is realized in movement.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to each reality of the invention
The mode of applying is explained in detail.
As shown in Figure 1, a kind of Intelligent interactive toy robot control system based on STM32 microcontroller, including monolithic
Machine minimum system, speech recognition module, touch modules, bluetooth communication, OLED display module, steering engine module and key electricity
Road, speech recognition module, touch modules, bluetooth communication, OLED display module, steering engine module and key circuit respectively with list
Piece machine minimum system electrical connection, speech recognition module to realize interactive voice, touch modules to realize touch perception interactive,
Bluetooth communication is to realize long-range control, electricity, machine of the OLED display module to show DC power supply by cell phone application
Picture and text, the video information etc. that the operating mode of device people, the expression of robot and user require, steering engine module is to control robot
Moving direction.
As shown in Fig. 2, single-chip minimum system uses 3.3V operating voltage, including STM32F103F103VET6 chip, interior
Portion's crystal oscillating circuit and reset circuit.In the present embodiment, manufacturing cost can be reduced using STM32F103F103VET6 chip, it is real
Existing human-computer interaction.
As shown in figure 3, key circuit includes master switch KEY1, master control borad power switch KEY2, steering engine power switch KEY3
With selection operating mode switch KEY4, resistance R1~R5 therein is series resistance, and LED1 is used to indicate closing for master switch KEY1
Conjunction state, LED2 are used to indicate the closed state of master control borad power switch KEY2, and LED3 is used to indicate steering engine power switch KEY3
Closed state, when selecting operating mode switch KEY4 selection 3 pin of connection, LED4 is luminous, at this time Intelligent interactive toy machine
Device people is in single cpu mode, and when selecting operating mode switch KEY4 selection 1 pin of connection, LED5 shines, at this time intelligent interaction
Toy robot is in mobile interchange mode.In a stand-alone mode, interactive voice may be implemented in robot, and perception interdynamic is realized
Various dance movements and motion control.Under mobile interchange mode, the expression of robot can be controlled by cell phone application, is moved
Make, realizes human-computer interaction.
Fig. 4 is JTAG online burning module, and JTAG is a kind of international standard test protocol, the internal hardware unit packet of JTAG
Data register (DR), command register (IR), bypass register (BR) and test access controller (TAP) are included, and corresponding
A boundary scan cell (BSC) is designed in each pin inner portions.The architecture of jtag boundary sweep test controlled system
TMS is selected including 4 external testing access port TD0, test clock TCK, test mode.System master chip is total by address
Line, data/address bus, piece choosing, Read-write Catrol are physically connected to outside Flash.Under normal conditions, whole process is by master control core on plate
The internal logic of piece controls, and is directly to be controlled to the height of chip pin level by external test facility by GTAG now
System.
As shown in figure 5,5V turns 3.3V power supply system module mainly by DC-5V DC voltage source, SS14 Schottky diode
D1, filter capacitor and AMS1117 voltage stabilizing chip are constituted.VIN input voltage is 5V, and 5V voltage is through filter capacitor C2, C3 and anti-electric
After the SS14 rectifying tube of source reversal connection, it is input to the input terminal of AMS.3.3V voltage will be exported by AMS1117-3.3 voltage stabilizing chip,
The 3.3V voltage of output can power after capacitor C4, C5 filtering to single-chip minimum system.
As shown in fig. 6, bluetooth communication is passed using the intelligent radio manufactured based on BlueCore4-Ext chip
Defeated module follows V2.0+ Bluetooth communication specification simultaneously, it supports available for different connection modes SPI, UART, PCM ... Bluetooth communication
Module also supports AT instruction to configure the properties of module, including serial port baud rate, change bluetooth users name, pairing password
Deng ... bottom writes data into serial ports bluetooth module and data forwarding will be gone out, in addition when the number for receiving host computer and sending
According to when will write data into serial ports, the interaction and communication of data are completed with this.HC-06 bluetooth communication and STM32 are micro-
Controller uses the mode of connection of UART, and baud rate uses 9600, remaining is configured to default conditions.Bluetooth communication shares 4
A pin, respectively Bluetooth data reception end RXD, blue-teeth data transmitting terminal TXD, ground connection GND and power supply VCC.
As shown in fig. 7, touch modules are made of six touch chip TTP223N and touch tablet, it is individually positioned in robot
Different places with it, to complete to touch perception interactive, operating voltage is 2.0~5.5V, and 3 feet (IN) touch input foot is touching
Input pin and adjustable its sensitivity of touch of the indirect tunable capacitor of GND are touched, its sensitivity can be reduced by increasing capacitance,
1 foot (Q) is digital output pin.
As shown in figure 8, speech recognition module uses serial communication, LD3320 speech chip is selected, user is supported freely to compile
Volume 50 critical sentences have high accuracy and practical speech recognition effect, possess 1 main menu, 10 second-level menus, can be with
Arbitrarily switching is called, flexible operation.
As shown in figure 9, OLED display module interface circuit is made of a 7 needle bases, it is aobvious to be equipped with one piece of 0.96 cun of OLED
Display screen, operating voltage 3.3V, the screen use SPI interface mode.CK is clock pins in SPI communication, and DI is in SPI communication
For data pins, RES is reset terminal (low level resets), and DC is that data and order control pin, and CS is chip-select pin, successively with
The port P00-P04 of MCU is connected.
As shown in Figure 10, for steering engine module using SG90 steering engine, rotational angle reaches 180 °, and operation torque is
1.6Kg/cm, operating voltage are 3.5~6V, and 3 feet are pwm control signal input pin, and angle can be reached by controlling its duty ratio
Degree control.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
Subject to.