描述
<p style="line-height:1.8"> </p>
<p style="line-height:1.8"> </p>
<h3 style="line-height:1.8">* 1、项目功能介绍</h3>
<hr>
<p style="line-height:1.8"><strong><span style="color:#95a5a6;font-size:14px">一、板载两个用户按键(可自定义)</span></strong></p>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px"><img src="//image.lceda.cn/oshwhub/c38e56c5e69947f1ab3101e519372aef.png" width="397" height="119"></span></p>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px"><img src="//image.lceda.cn/oshwhub/5d2e16ebc4be497b9503b71d42b57308.png" width="399" height="271"><br>一个系统复位按键,<br>USB公母头,当插在电脑上可以外接USB设备。<br>方便携带,可以插在任意设备的USBA中…</span></p>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px">使用0.87寸128*32分辨率的OLED屏幕,阳光下显示同样可以有较高的视觉效果。</span></p>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px">使用传感器模块,方便焊接。</span></p>
<h3 style="line-height:1.8">*2、项目属性</h3>
<hr>
<p style="line-height:1.8"><span style="color:#95a5a6">本项目为个人自创设计,目的是记录学习,同时分享技术经验。</span></p>
<p style="line-height:1.8"><span style="color:#95a5a6">代码可以自行下载修改。</span></p>
<h3 style="line-height:1.8">* 3、开源协议</h3>
<hr>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px">GPL3.0</span></p>
<h3 style="line-height:1.8">*4、硬件部分</h3>
<hr>
<p><span style="background-color:#f8cac6"><span style="color:#95a5a6">一、供电单元(USB公头输入,母头输出,ldo降压)</span></span></p>
<p><img src="//image.lceda.cn/oshwhub/2798c765f1654782a315b0800aeaa42b.png" width="124" height="93"><span style="font-size:24pt"><span style="color:#95a5a6"> + <img src="//image.lceda.cn/oshwhub/486b40525e6047b693cff20dd3b2b48c.png" width="128" height="104"></span></span></p>
<p><span style="color:#95a5a6">二、OLED显示</span></p>
<p><span style="color:#95a5a6"><img src="//image.lceda.cn/oshwhub/060b5a7872634f6dba2574d4ca72d4cb.png" width="127" height="113">模块使用0.87寸oled显示,如图<img src="//image.lceda.cn/oshwhub/cbf95efde1cb4f64a2486c5c3d8aa4e7.png" width="220" height="91"></span></p>
<p><span style="color:#95a5a6">三、MCU最小系统电路</span></p>
<p><span style="color:#95a5a6"><img src="//image.lceda.cn/oshwhub/a8f2421fd95d45348f77803898b8e083.png" width="577" height="272"></span></p>
<p><span style="color:#95a5a6">单片机工作的最基本电路原理图,以及电气连线。包括MCU主控,晶振电路,复位电路和滤波电容,以及程序运行选择电阻。</span></p>
<p><span style="color:#95a5a6">四、用户自定义按键</span></p>
<p><span style="color:#95a5a6"><img src="//image.lceda.cn/oshwhub/b7bc1f57d3f94eaaa26cf3d26e706ed3.png" width="105" height="104">,使用按键做输入设备,进行屏幕UI的交互。</span></p>
<p><span style="color:#95a5a6">五、温度采集单元</span></p>
<p><span style="color:#95a5a6"><img src="//image.lceda.cn/oshwhub/2f24082f574343c7948b828de945ebae.png" width="352" height="148">,选用模块化温湿度传感器,方便焊接。</span></p>
<p style="line-height:1.8"> </p>
<h3 style="line-height:1.8">*5、软件部分</h3>
<hr>
<p style="line-height:1.8"><span style="color:#95a5a6">屏幕显示主要内容 </span></p>
<p style="line-height:1.8"><span style="color:#95a5a6"> OLED_DisplayTurn(1);//0正常显示 1 屏幕镜像显示 2 屏幕镜像显示 3 屏幕翻转显示<br> OLED_Refresh();<br> OLED_ShowChinese(5,0,14,16,1); //16*16 第<br> OLED_ShowChinese(22,0,15,16,1); //16*16 九<br> OLED_ShowChinese(39,0,16,16,1); //16*16 届<br> OLED_ShowChinese(56,0,17,16,1); //16*16 立<br> OLED_ShowChinese(73,0,18,16,1); //16*16 创<br> OLED_ShowChinese(90,0,19,16,1); //16*16 电<br> OLED_ShowChinese(107,0,20,16,1); //16*16 赛<br> <br> OLED_ShowChinese(32,16,11,16,1); //16*16 温<br> OLED_ShowChinese(49,16,13,16,1); //16*16 湿<br> OLED_ShowChinese(66,16,12,16,1); //16*16 度<br> OLED_ShowChinese(83,16,21,16,1); //16*16 计</span></p>
<p style="line-height:1.8"> </p>
<p style="line-height:1.8">以下为oled驱动部分。 OLED_WR_Byte(0xAE,OLED_CMD); /*display off*/<br> OLED_WR_Byte(0x00,OLED_CMD); /*set lower column address*/ <br> OLED_WR_Byte(0x10,OLED_CMD); /*set higher column address*/<br> OLED_WR_Byte(0x40,OLED_CMD); /*set display start line*/<br> OLED_WR_Byte(0xB0,OLED_CMD); /*set page address*/ <br> OLED_WR_Byte(0x81,OLED_CMD); /*contract control*/ <br> OLED_WR_Byte(0xc5,OLED_CMD); /*128*/ <br> OLED_WR_Byte(0xA1,OLED_CMD); /*set segment remap 0XA0*/ <br> OLED_WR_Byte(0xA6,OLED_CMD); /*normal / reverse*/ <br> OLED_WR_Byte(0xA8,OLED_CMD); /*multiplex ratio*/ <br> OLED_WR_Byte(0x1F,OLED_CMD); /*duty = 1/32*/ <br> OLED_WR_Byte(0xC0,OLED_CMD); /*Com scan direction 0XC0 */ <br> OLED_WR_Byte(0xD3,OLED_CMD); /*set display offset*/ <br> OLED_WR_Byte(0x00,OLED_CMD); /* 0x20 */ <br> OLED_WR_Byte(0xD5,OLED_CMD); /*set osc division*/ <br> OLED_WR_Byte(0x80,OLED_CMD); <br> OLED_WR_Byte(0xD9,OLED_CMD); /*set pre-charge period*/ <br> OLED_WR_Byte(0x22,OLED_CMD); /*0x22*/ <br> OLED_WR_Byte(0xDA,OLED_CMD); /*set COM pins*/ <br> OLED_WR_Byte(0x12,OLED_CMD); <br> OLED_WR_Byte(0xdb,OLED_CMD); /*set vcomh*/ <br> OLED_WR_Byte(0x20,OLED_CMD); <br> OLED_WR_Byte(0x8d,OLED_CMD); /*set vcomh*/ <br> OLED_WR_Byte(0x15,OLED_CMD); /* Set_Charge_Pump 0x14:9v; 0x15 7.5v */<br> OLED_Clear();<br> OLED_WR_Byte(0xAF,OLED_CMD); /*display ON*/ </p>
<h3 style="line-height:1.8">*6、BOM清单</h3>
<hr>
<p style="line-height:1.8"><span style="color:#95a5a6"> 见附件</span></p>
<p style="line-height:1.8"> </p>
<h3 style="line-height:1.8">*7、大赛LOGO验证</h3>
<hr>
<p style="line-height:1.8"> <img src="//image.lceda.cn/oshwhub/7d5b6fa1f08945ecb77e9463eb86a199.png"></p>
<p style="line-height:1.8"> </p>
<h3 style="line-height:1.8">* 8、演示您的项目并录制成视频上传</h3>
<p style="line-height:1.8">见附件视频。</p>
<p style="line-height:1.8"><span style="color:#95a5a6"> </span></p>
<p style="line-height:1.8"> </p>
评论(3)