The invention relates to a method for determining the daily water consumption of a user based on an intelligent water cup, belonging to the technical field of the intelligent water cup. The method includes the following steps: S1: installing pressure sensors on the bottom and cover of the cup, touch sensors on the lip of the cup, display screen on the cup body, initializing the value and opening the timer; S2: determining whether the running time reaches the periodic time of the timer; S3: calculating the cumulative running time and judging whether it reaches 1 day; S4: reading the bottom pressure value P1 and the cover of the cup. State value B1, touch state value C1, according to the state value of the cup cap to determine the state of the cup cap; S5: According to the touch state value C1 to determine whether the user is in the drinking state, according to different states to determine whether to calculate the amount of water in the cup; S6: calculate the amount of water in the cup; S7: calculate the amount of water users drink. The invention can accurately calculate the amount of water a user drinks through an intelligent water cup every day, and is used to remind and help people to drink healthy water.
【技术实现步骤摘要】
一种基于智能水杯确定用户每日饮水量的方法
本专利技术属于智能水杯
,涉及一种基于智能水杯确定用户每日饮水量的方法。
技术介绍
在2011年的《中国水与生命质量认知调查报告》中,大多数被调查者日均饮水量不足2杯,离人体一天8杯水的健康饮水量相去甚远。而目前的智能水杯大部分都没有涉及饮水量的功能,并且少量有计算饮水量的专利技术不能有效的区分日常倒水和饮水的区别,导致其的饮水量计算不准确。专利申请号为2015102234785的专利技术专利,其特征是利用杯体倾斜角度以及变化率来与预设阈值相比较从而判断用户是否在饮水。而在实践中,无法排除因杯身摇晃导致的倾角被处理的情况。特别地,在特定场景下如将水杯放在背包中,随着人走动,水杯可能会出现杯体倾斜角度以及变化率来与饮水的预设阈值重合的情况,错误地认为使用者在饮水,使其计算的饮水量是不确切的。专利申请号为2015101167957的专利技术专利,其特征是利用光线传感器实时检测灯光信号判断用户是否在饮水,当杯盖开启时光线传感器检测到光线,同时人靠近饮水时光线传感器检测到灯光变暗,此时可认为是饮水信号。但是利用光线传感器的一 ...
【技术保护点】
1.一种基于智能水杯确定用户每日饮水量的方法,其特征在于,该方法具体包括以下步骤:S1:分别在杯底和杯盖安装压力传感器,在杯唇处安装触摸传感器,在杯体安装显示屏,并初始化数值,开启定时器;S2:判定运行时间是否到达定时器周期时间;S3:计算累计运行时间,并判断是否达到1天时间;S4:读取杯底压力值P1、杯盖状态值B1、触摸状态值C1,根据杯盖状态值确定杯盖状态;S5:根据触摸状态值C1判断用户是否处于喝水状态,根据不同状态判断是否计算杯中存水量;S6:计算杯中存水量;S7:计算用户饮水量。
【技术特征摘要】
1.一种基于智能水杯确定用户每日饮水量的方法,其特征在于,该方法具体包括以下步骤:S1:分别在杯底和杯盖安装压力传感器,在杯唇处安装触摸传感器,在杯体安装显示屏,并初始化数值,开启定时器;S2:判定运行时间是否到达定时器周期时间;S3:计算累计运行时间,并判断是否达到1天时间;S4:读取杯底压力值P1、杯盖状态值B1、触摸状态值C1,根据杯盖状态值确定杯盖状态;S5:根据触摸状态值C1判断用户是否处于喝水状态,根据不同状态判断是否计算杯中存水量;S6:计算杯中存水量;S7:计算用户饮水量。2.根据权利要求1所述的一种基于智能水杯确定用户每日饮水量的方法,其特征在于,步骤S1中,所述初始化数值具体包括:设饮水量W=0,累计运行时间TT=0,先前杯唇触摸传感器状态值PC=0,喝完水延时标志D1=0,令杯底压力传感器数据组ARR_P[N]的数组宽度为N;开启定时器,定时器周期为T。3.根据权利要求2所述的一种基于智能水杯确定用户每日饮水量的方法,其特征在于,所述步骤S2具体包括:如果运行时间为T,则判定为到达定时器周期时间,转至步骤S3,否则重复执行步骤S2。4.根据权利要求3所述的一种基于智能水杯确定用户每日饮水量的方法,其特征在于,所述步骤S3具体包括:令累计运行时间TT=TT+T,判断累计运行时间是否大于等于1天时间,如果是:通过显示屏显示一天的饮水量W的信息,跳转至步骤S1;否则转至步骤S4。5.根据权利要求4所述的一种基于智能水杯确定用户每日饮水量的方法,其特征在于,所述步骤S4具体包括:读取杯底压力值P1、杯盖状态值B1、触摸状态值C1;当B1=1,表示杯盖盖上,跳转至步骤S2;当B1=0,表示杯盖打开,转至步骤S5。6.根据权利要求5所述的一种基于智能水杯确定用户每日饮水量的方法,其特征在于,所述步...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。