摘要
针对网吧中鼠标类型单一、租用繁琐及管理困难等问题,设计开发了基于Arduino和App Inventor的智能共享鼠标柜;该鼠标柜共有三层,每层放置一款鼠标;每层中心位置设置一个距离传感器,距离传感器值被用来判断鼠标是否取出;用步进电机带动挡板移动以完成对鼠标线的控制;每层设置红色和绿色发光二极管各一个,绿色表示鼠标归还,红色表示鼠标借出;柜门具有左开和右开两种模式;顶层左侧红色发光二极管表示门左开,顶层右侧红色发光二极管表示右开;顶层绿色发光二极管表示门关闭;用舵机和步进电机来实现控制柜门开关;利用App Inventor2为工具实现了手机APP的设计,用户可以通过APP扫码租用鼠标并通过服务器端查看用户租用和鼠标使用情况;该鼠标柜具有低成本、易于实现和可扩展等特点,且具有实际应用价值。
Aiming to the problems of few mouse types,cumbersome renting and difficult management in internet bar,the design of an intelligent sharing mouse cabinet based on Arduino and App inventor is proposed.The mouse cabinet has three layers and each layer has a different type of mouse.A distance sensor is set at the center of each layer,and the value of the distance sensor is used to judge whether the mouse is taken out or not.Stepping motor is adopted to drive the baffle to complete the control of the mouse line.Each layer is equipped with a red and a green light emitting diodes.When the red-light emitting diode is on,it means that the mouse is borrowed.When the green-light emitting diode is on,it means that the mouse is returned.The cabinet door has two modes:leftopen mode and right-open mode.The red-light emitting diode on the left side of the top layer indicates that the door opens left,the red-light emitting diode on the right side of the top layer indicates that the door opens right,and the green light-emitting diode on the top layer indicates that the door closes.cabinet door switch is controlled with steering gear and stepping motor.App Inventor 2 is used as a tool to realize the design of mobile App.Users can rent the mouse through the App and scan the user’s rental and mouse usage in the server.This intelligent sharing mouse cabinet has the characteristics of low cost,easy realization,and expansion.It can be used for the transportation confrontation competition and as the reference of the robot design and practice.It also has practical application value.
作者
李沁泽
刘艳
Li Qinze;Liu Yan(School of Information and Electrical Engineering,Zhejiang University City College,Hangzhou 310015,China)
出处
《计算机测量与控制》
2019年第12期151-156,共6页
Computer Measurement &Control
基金
国家自然科学基金资助项目(61673348)
浙江省自然科学基金青年项目(LQ18F030009)
大学生科研重点项目(XZ2018522037)