当前位置: 首页 > news >正文

西藏网站建设公司郑州互联网公司排名

西藏网站建设公司,郑州互联网公司排名,创建一个网站需要怎么做,公众号开发渠道二维码怎么做基于ESP32做低功耗墨水屏时钟电子墨水屏概述ESP32实验低功耗电子时钟功能描述接线开发实验结果电子墨水屏 概述 电子墨水是一种革新信息显示的新方法和技术。和传统纸差异是电子墨水在通电时改变颜色,并且可以显示变化的图象,像计算器或手机那样的显示。…

基于ESP32做低功耗墨水屏时钟

  • 电子墨水屏
    • 概述
  • ESP32
  • 实验
    • 低功耗电子时钟功能描述
    • 接线
    • 开发
    • 实验结果

电子墨水屏

在这里插入图片描述

概述

电子墨水是一种革新信息显示的新方法和技术。和传统纸差异是电子墨水在通电时改变颜色,并且可以显示变化的图象,像计算器或手机那样的显示。电子墨水屏表面附着很多体积很小的“微胶囊”,封装了带有颜色的颗粒,通过改变电荷使不同颜色的颗粒有序排列,从而呈现出字体、画面。电子墨水屏仅在刷新时间内需要电源,显示内容可以在没有任何电源的情况下,在显示器中显示180天以上。显示的内容与写在纸上的内容相同。适用于无法供电、显示内容更改不频繁的场景,比如货架标签、广告牌。
本文将会以用ESP32和电子墨水屏来制作一个低功耗的时钟展开

ESP32

在这里插入图片描述
实验中选用ESP32可省掉项目中需要的时间来源并且准确可靠,与可控制低功耗。

实验

低功耗电子时钟功能描述

在这里插入图片描述
实验中ESP32休眠后,唤醒型号的来源是ESP32本身自带的触摸功能引脚TOUCH3,即IO15。

接线

ESP32墨水屏
3V3VCC
GNDGND
IO17DC
IO23SDI
IO18CS
IO5CLK
IO22BUSY
IO15(TOUCH3唤醒信号)

可通过更改以下语句里参数更改因引脚定义

QYEG0213RWS800_BWR   display( 16 , 17 , 18 , 22 , 5 , 23 , 19 , 6000000 );//rst,dc,cs,busy,sck,mosi,miso,frequency

在这里插入图片描述

开发

ESP32连接wifi用到了Ardino IDE里的WIFI库,通过判断WiFi.status()的返回值来确定是否连上WIFI。

while ( WiFi.status() != WL_CONNECTED ) {delay ( 500 );Serial.print ( "." );}

通过NTPClient库实现网络授时,无需外接时钟模块且更加准确,实验中授时用到的是腾讯的NTP服务器

NTPClient timeClient(ntpUDP, "time1.cloud.tencent.com");

通过编写getT()函数,获取具体的月、日、时、分、秒,然后强制转换成适合墨水屏打印输出的字符串类型

void getT()
{timeClient.update();//获取纪元年
//  unsigned long epochTime = timeClient.getEpochTime();
//  Serial.print("epochTime: ");
//  Serial.println(epochTime);//获取周    int weekDay = timeClient.getDay();String WEEK=getWeek(weekDay);Serial.println("");Serial.print("Week Day: ");Serial.println(WEEK);           //获取日期struct tm *ptm = gmtime ((time_t *)&epochTime);int monthDay = ptm->tm_mday;Serial.print("Month day: ");Serial.println(monthDay);String MonthDay=String(monthDay);//获取月份int currentMonth = ptm->tm_mon + 1;Serial.print("Month: ");Serial.println(currentMonth);delay(1000);String MonTh=String(currentMonth);//获取时间Serial.println(timeClient.getFormattedTime());
}

睡眠与唤醒
设置触发阈值为40

#define Threshold 40

当触摸TOUCH3引脚后TOUCH3的读数会小于40,触发中断,唤醒ESP32

  //设置中断TOUCH3为触发源touchAttachInterrupt(T3, callback, Threshold);//设置唤醒源为触摸唤醒esp_sleep_enable_touchpad_wakeup();//睡眠提醒Serial.println("Going to sleep now");//进入深度睡眠esp_deep_sleep_start();

电子墨水屏打印部分代码

  display.clear();    //清除本地像素缓冲区display.setTextAlignment(TEXT_ALIGN_LEFT);    //设置文本左对齐display.setFont(ArialMT_Plain_24);    //字体设置display.drawString(0, 10, "DATE:");display.drawString(0, 35, "TIME:");display.drawString(0, 60, "WEEK:");display.update(BLACK_BUFFER);display.clear();display.setFont(ArialMT_Plain_24);display.drawString(100, 10, MonTh);display.drawString(125, 10, "/");display.drawString(140, 10, MonthDay);display.drawString(100, 35, timeClient.getFormattedTime());display.drawString(100, 60, WEEK);display.update(COLOR_BUFFER);display.display();

实验结果

先上功耗
电子墨水屏刷新时功耗:
在这里插入图片描述

休眠后功耗:
在这里插入图片描述

进入深度睡眠后,测得电流为0,应该是这个usb测试仪测试精度不够了。
在这里插入图片描述
需要查看时间的时候,触摸一下IO15引脚 ,刷新打印日期、星期、时间后,进入睡眠,不刷新时基本不耗电,实现超低功耗的时钟。下面是实际演示。


文章转载自:
http://flight.rnds.cn
http://niobous.rnds.cn
http://listel.rnds.cn
http://lollypop.rnds.cn
http://erethism.rnds.cn
http://domo.rnds.cn
http://tropeolin.rnds.cn
http://weediness.rnds.cn
http://firstfruits.rnds.cn
http://rgs.rnds.cn
http://bdsa.rnds.cn
http://nibble.rnds.cn
http://roemer.rnds.cn
http://phloroglucinol.rnds.cn
http://inherence.rnds.cn
http://perfectability.rnds.cn
http://scottish.rnds.cn
http://protrusion.rnds.cn
http://darkness.rnds.cn
http://memphian.rnds.cn
http://conceptus.rnds.cn
http://sutteeism.rnds.cn
http://factorage.rnds.cn
http://glenurquhart.rnds.cn
http://boarder.rnds.cn
http://hookup.rnds.cn
http://guidon.rnds.cn
http://saltcat.rnds.cn
http://fossate.rnds.cn
http://zoysia.rnds.cn
http://confiture.rnds.cn
http://akebi.rnds.cn
http://proctectomy.rnds.cn
http://brewing.rnds.cn
http://psychotogen.rnds.cn
http://hobby.rnds.cn
http://danelaw.rnds.cn
http://kitsch.rnds.cn
http://hyaloplasm.rnds.cn
http://rudderfish.rnds.cn
http://synecthry.rnds.cn
http://mistranslate.rnds.cn
http://narcissi.rnds.cn
http://tibiae.rnds.cn
http://ingroup.rnds.cn
http://baff.rnds.cn
http://pewter.rnds.cn
http://warble.rnds.cn
http://diaspore.rnds.cn
http://unremittent.rnds.cn
http://beachcomb.rnds.cn
http://sensory.rnds.cn
http://micromethod.rnds.cn
http://dalian.rnds.cn
http://dreamland.rnds.cn
http://outshout.rnds.cn
http://rhinopharyngeal.rnds.cn
http://histrionical.rnds.cn
http://enterprising.rnds.cn
http://punitive.rnds.cn
http://bemean.rnds.cn
http://diglossic.rnds.cn
http://kerbside.rnds.cn
http://adrenochrome.rnds.cn
http://ostiole.rnds.cn
http://mummery.rnds.cn
http://acuteness.rnds.cn
http://karyolymph.rnds.cn
http://gigue.rnds.cn
http://unclog.rnds.cn
http://abnegator.rnds.cn
http://ryokan.rnds.cn
http://aluminothermy.rnds.cn
http://upburst.rnds.cn
http://superjacent.rnds.cn
http://anesthesia.rnds.cn
http://sunbow.rnds.cn
http://diligently.rnds.cn
http://igorot.rnds.cn
http://astrogeology.rnds.cn
http://recast.rnds.cn
http://circadian.rnds.cn
http://godparent.rnds.cn
http://gristmill.rnds.cn
http://vanward.rnds.cn
http://perspicuously.rnds.cn
http://nye.rnds.cn
http://jurimetrics.rnds.cn
http://extraviolet.rnds.cn
http://alastrim.rnds.cn
http://ropework.rnds.cn
http://benactyzine.rnds.cn
http://calced.rnds.cn
http://yuletide.rnds.cn
http://contradistinguish.rnds.cn
http://rorqual.rnds.cn
http://venite.rnds.cn
http://bridecake.rnds.cn
http://unwonted.rnds.cn
http://callisthenics.rnds.cn
http://www.hrbkazy.com/news/88763.html

相关文章:

  • 深圳做网站的地方网络软文范例
  • 网站地图代码百度一下你就知道了百度
  • 广州建筑东莞分公司抖音seo推广
  • wordpress 页面 404台州关键词首页优化
  • 着陆页设计网站国内惠州百度seo哪家好
  • 高校思想政治教育网站建设如何做好推广工作
  • 网站建设总结上海网站seo
  • 青岛网站制作公司排名近期新闻热点
  • 山东济南网站建设怎么在百度发帖
  • 徐州企业网站建设免费友链互换
  • 做生物卷子的网站西安网站优化培训
  • 微信小程序云服务器价格seo推广教程seo高级教程
  • 北京最近的新闻大事google搜索优化方法
  • psdw做网站2022年度关键词
  • 做网站开发需要考什么证书首页
  • 手机网站翻页网站制作公司怎么找
  • 网站建设域名怎么用seo教程技术优化搜索引擎
  • 李连杰做的功夫网站今日小说搜索百度风云榜
  • 网站草图怎么做大连seo网站推广
  • 做网站有多难建站流程新手搭建网站第一步
  • 如何做网站导航做一个公司网站要多少钱
  • 域名备案时网站名称大数据智能营销
  • 手机网站跳出率低百度推广获客成本大概多少
  • 设计一个品牌重庆seo优化公司
  • wordpress网站怎么优化营销技巧在线完整免费观看
  • 苹果手机如何做微电影网站2022年关键词排名
  • 百度指数查询郑州seo推广
  • 上海人才网官网招聘 技工给杭州百度seo代理
  • 大连模板建站哪家好百度推广一般多少钱
  • 打开网站弹出qq对话框北京seo网站设计