现代计算机:下半月版
現代計算機:下半月版
현대계산궤:하반월판
Modem Computer
2011年
24期
77-80
,共4页
J2ME编程%蓝牙API%串口通信%单片机
J2ME編程%藍牙API%串口通信%單片機
J2ME편정%람아API%천구통신%단편궤
J2ME Programming%Bluetooth API%Serial Port Communication%Single Chip Microcomputer
阐述一种通过手机蓝牙遥控小车行走的软、硬件设计。手机蓝牙作为客户端,小车上的蓝牙模块HC-04-D作为服务端。客户端采用Eclipse开发环境,J2ME编程,服务端采用单片机控制。双方通过串口仿真协议进行通信,单片机驱动直流电机控制小车行动。实验结果表明.小车可以接收手机遥控信号并灵活地进行前行、倒退、左转、右转和停止等功能。
闡述一種通過手機藍牙遙控小車行走的軟、硬件設計。手機藍牙作為客戶耑,小車上的藍牙模塊HC-04-D作為服務耑。客戶耑採用Eclipse開髮環境,J2ME編程,服務耑採用單片機控製。雙方通過串口倣真協議進行通信,單片機驅動直流電機控製小車行動。實驗結果錶明.小車可以接收手機遙控信號併靈活地進行前行、倒退、左轉、右轉和停止等功能。
천술일충통과수궤람아요공소차행주적연、경건설계。수궤람아작위객호단,소차상적람아모괴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.