Professional Documents
Culture Documents
Abstract—This design is based on the STM32F103C8T6 use Bluetooth as the medium to control terminal of intelligent
microcontroller and UCOS-II operating system. Including the toy.
microcontroller module, the MP3 player module, the motor drive
module and the Bluetooth transceiver module. Each sub-module The major smart phones coming to the market support
assigns different priorities through establishing different tasks, several features like various communication methods, e.g.
each task delivers messages through the message mailbox, in Bluetooth, Wi-Fi etc. and has very high storage capacities. It
order to achieve the coordination of the various sub-modules. The opens up new area of research for remarkable changes in the
design uses two AA batteries for the main control module and modern technologies. The technology for communication
other sub-modules for power supply. Controlling is based on the between digital devices is truly changed due to addition of
smart phone’s Bluetooth function, through the mobile App to send
the task instructions to achieve the smart car of different ways of Bluetooth wireless standard. It has transformed conventional
movement and music playing function. wired devices to wireless without any risk of data or intrusion.
Keywords—STM32; Smart toys; Bluetooth remote control ˗ In this paper, we study the music toy car based on smart
HC-05; MP3 phone Via Bluetooth remote control, and implementation
method. The structure is organized as follows: Section 1
I. INTRODUCTION presents the overall structure of system and Section 2
establishes system hardware design. Section 3 establishes
Nowadays, smart toys are rich and colorful, but the vast system software design. Section 4 establishes the system
majority of smart toys must be equipped with a dedicated Integration test. Finally, Section 5 concludes the paper and
remote control using dry batteries, while for modern people, points out the valuable of the work.
discarding the waste battery to the environment pollution and
destruction is a problem that cannot be neglected. With the Fig. 1. The hardware schematic diagram
rapid popularization of smartphones, it is an inevitable trend to
USB Interface
Crystal Resonance circuit
Reset Circuit Digital Extended Interface
1977
The Bluetooth Module HC-05 is a wireless technology III. SYSTEM HARDWARE DESIGN
standard. It provides the medium to exchange information
wirelessly between two systems over approximately 10 meters A. Mobile app design
distances. The exchange of data takes place using short- The mobile phone app uses Java language programming,
wavelength ultra-high frequency (UHF) radio waves in the realizes control interface and key state monitoring. When you
Industrial Scientific and Medical (ISM) band from 2.4 t0 2.485 open the phone app first to monitor whether Bluetooth has
GHz from fixed as well as mobile devices and building been paired successfully, if not correctly paired, mobile app
personal area networks(PANs). will give the message. After the successful connection of the
The HC-05 Bluetooth slave module is used to connect with mobile phone app into the control of the main interface, began
Bluetooth master devices such as a Bluetooth dongle 2 or an to monitor the mobile phone screen triggered events, when
Android smartphone. When power is supplied to the master monitoring to press the button will start the data sending
module, it searches for the HC-05 Bluetooth slave module in program, the data encapsulation and processing in accordance
its neighborhood and the slave module connects directly to the with the standard Bluetooth protocol to send data. Once the
master module. send is complete, it will enter the listening mode again,
waiting for the next key to be triggered, as shown in Figure 7.
(3) MP3 Playback Module
Begin
Music playback module can directly decode the audio
signals in TF into analog signals through the data output port
The system initializes
for output, on the power of automatic playback, loop playback
with memory function, the next time after the last play from the N
track replay playback, with LED display. External power The Bluetooth setting˛
amplifier module on the output of the audio analog signal
amplification processing, but also left a music playback control
N
interface, can be directly through the high and low level pulse Data Monitoring˛
to control the music playback. As shown in Figure 5. Y
Send via serial port
N
The key monitoring
Y
Fig. 6. Audio amplifier module and wiring diagram Send via serial port
1978
C. MP3 module Software Design the serial port received control instructions, if not, will
MP3 module on the initialization after the power, MP3 maintain the original state, if the new control instructions, the
module will continuously monitor the pin on whether there is main control module will be to determine the control
a consistent pulse signal, according to the different control instructions to drive different IO pins to drive the motor driver
pins above the pulse signal control music playback, on a song, module, According to different IO state-driven motor in
the next song and pause. The process is shown in Figure 9. different directions of rotation to achieve the car according to
different ways of the effect of movement. The detailed process
as shown in Figure 10.
Begin
6SHHGXS
Power amplifier module 6ORZGRZQ
Loudspeaker
3DXVH
Fig. 9. mp3 module software flow chart. /DVWVRQJ 1H[WVRQJ
Begin
Monitoring instructions
N V. CONCLUSION
The system based on Bluetooth remote control realizes the
basic function of the system and achieves the expected results
N
Forward through experimental test.
N
Y Back
N
REFERENCES
Y turn left
[1] H.P. Luo, Li G.L., Peng W.F., et al. “Real-time remote monitoring
N system for aquaculture water quality”, Int J Agric & Biol Eng,Vol. 8
Y turn right
No.6,pp.136-141,2015.
N
Y Speed up [2] H.Zhang, W.ch. Tong, H. Yin, et al.“The " internet +" quality resource
N management system based on process,” Proc. SPIE 9903, Seventh
Y Slow down
International Symposium on Precision Mechanical Measurements,
N
Y braking [3] International Journal of Smart Home Vol.8, No.1, pp.303-310㸪2014.
Y [4] Y.D.Zhang, Q.X.Zhang, J.J.G. Zhao , et al. “The Controller
Development of Multi-layer Parking Equipment Based on
Driving motor STM32,”International Journal of Smart Home Vol.8, No.1 (2014),
pp.303-310
Car movement [5] Bao-qiang Xi,Cheng-hua Fu. “Design of Intelligent Toy Car Motion
Control System Based on the AT89C52”,pp.,2010.
[6] B N P Cooray㸪W S K Perera㸪S R D Kalingamudali.“Simultaneous
Fig. 10. Car module software flow chart. control of multiple line-loads each connected separately in series with a
designed unit Control using Radio Frequency and a Mobile
device㸪”pp.318-322,2016.
The system defaults to the stop state after the power
initialization. The main control will always listen to whether
1979
[7] Hae-Duck J. Jeong, Woojin Lee, Jiyoung Lim, et al. ͆ Utilizing a [9] Zhang D.N., Zhang D.L..“Environmental monitoring system in solar
Bluetooth remote lock system for a smartphone ,͇Pervasive and Mobile greenhouse based on STM32 and GPRS 㸪 ”Chemical Engineering
Computing ,24, pp.150–165㸪2015. Transactions, 51, 43-48㸪2016
[8] International Conference on Advances in Electrical, Electronic and [10] Hae-Duck J. Jeong, Jiyoung Lim ,WooSeok Hyun.“A Remote Lock
System Engineering, 14-16 Nov 2016, Putrajaya,Malaysia,pp.170-174㸪 System Using Bluetooth Communication”㸪 2014 Eighth International
2006. Conference on Innovative Mobile and Internet Services in Ubiquitous
Computing㸪pp.441-446,2014.
1980