摘要
基于STC89C52单片机,编写了步进转动控制、障碍检测与自动避障、温湿度AD数据转化与传输、单片机串口数据收发等算法。由单片机作为主控系统,达到步进电机、L298N电压转化模块、红外线模块、温湿度模块、WIFI视频传输模块等电子元件的高度协调统一。采用Java编程语言,参考GitHub上开源代码,利用Android Studio进行了名为“XC431”的APK开发,形成了与自己的小车的功能高度符合的Android手机端操控软件。最终,软件“XC431”通过Socket通信原理对该小车进行了远程控制,实现了智能家居的部分功能需求。
Based on STC89C52 singlechip,we write the algorithm of stepping rotation control,obstacle detection and automatic obstacle avoidance,temperature and humidity AD data conversion and transmission,and serial data receiving and receiving of single chip microcomputer are compiled.By the MCU as the main control system,the step motor,the L298N voltage conversion module,the infrared module,the temperature and humidity module,the WIFI module and other electronic components are highly coordinated and unified.Using the Java programming language,referring to the open source code on GitHub,we use Android Studio to develop an app named“XC431”,which is highly consistent with the function that our car needs.Finally,accordingly the Socket communication principle,the software“XC431”can remotely controls the car,and realizes some functional requirements of the smart home.
作者
王心华
余航
游锦旭
余晓鹏
游卓青
WANG Xinhua;YU Hang;YOU Jinxu;YU Xiaopeng;YOU Zhuoqing(National Demonstration Center for Experimental Physics Education,School of Physical Science and Technology;School of Physical Science and Technology,Lanzhou University,Lanzhou 730000,China)
出处
《实验室科学》
2020年第4期58-65,69,共9页
Laboratory Science
基金
兰州大学教学研究项目(项目编号:2018077)
兰州大学创新研究项目(项目编号:20171073001784)。