摘要
阐述一种通过手机蓝牙遥控小车行走的软、硬件设计。手机蓝牙作为客户端,小车上的蓝牙模块HC-04-D作为服务端。客户端采用Eclipse开发环境,J2ME编程,服务端采用单片机控制。双方通过串口仿真协议进行通信,单片机驱动直流电机控制小车行动。实验结果表明,小车可以接收手机遥控信号并灵活地进行前行、倒退、左转、右转和停止等功能。
Introduces a design of remote control vehicle based on bluetooth of mobile phone.The design regards the bluetooth mobile phone as a client and the bluetooth module HC-04-D as the server. Uses Eclipse-based software development environment, J2ME programming in the client, and single chip microcomputer control in the server. Creates a connection based on the RFCOMM protocol and communicates, the SCM drives DC motor to control the car action. The experiment result shows that the vehicle can move, back, turn left, turn right and stop under the control of mobile phone.
出处
《现代计算机》
2011年第24期77-80,共4页
Modern Computer
关键词
J2ME编程
蓝牙API
串口通信
单片机
J2ME Programming
Bluetooth API
Serial Port Communication
Single Chip Microcomputer