diff --git a/docs/post/ban-dao-ti-zhi-leng-qi-(TEC)-de-qu-dong-yu-kong-zhi.html b/docs/post/ban-dao-ti-zhi-leng-qi-(TEC)-de-qu-dong-yu-kong-zhi.html index b390f54e..de69aea7 100644 --- a/docs/post/ban-dao-ti-zhi-leng-qi-(TEC)-de-qu-dong-yu-kong-zhi.html +++ b/docs/post/ban-dao-ti-zhi-leng-qi-(TEC)-de-qu-dong-yu-kong-zhi.html @@ -93,7 +93,7 @@

补偿回路

下图3为温度闭环原理简图

7f3b1e89gy1fzpqd9eljog20fj09ygln

图三所示TEC热闭环中为2Hz的交叉补偿的例子。尽量选择高阻值的R3以使积分电容C2尽可能小。然而这种方法也有弊端,它会使得PID的增益变小。因为我们必须在70mHz插入一个零点,我们使用关系:

-

$$  +

$$  FZ1 = \frac{1}{2π×C2×R3} $$

前文已经说过,FZ1 = 70mHZ,如果选择R3 =243kΩ,那么C2 就应为9.36μF。我们选择10μF设计。现在我们选择R1 =10kΩ。这使得前端放大器(U2)有足够的增益以减少反射积分器(U1)的错误,同时保持合理的电容器的尺寸。 现在,我们必须插入一个零点以抹去第二个在1Hz的TEC响应曲线极点。因为我们希望得到良好的相位裕度,零插入所需的交叉频率除以至少5或0.4Hz。这给出了一个在交叉频率的一个更好的相位裕度。然后通过放置由R1创建的、至少5倍于交叉频率,或者10Hz的极点终止该零点。这限制了积分器的的增益。 所以,因为: 

@@ -102,7 +102,7 @@

补偿回路

$$
 
并且FZ2 = 0.4Hz和R2 =510KΩ,我们可以算出C1 =0.78μF。我们选择C1为1μF。为了计算出R1的大小,我们使用关系:

-

$$ +

$$ F3 = \frac{1}{2π×C1×R1} $$

因为F3 = 10HZ,C1 =1μF,这样我们可以知道R1 =15.9kΩ。使用10kΩ就可以提供更好的相位裕度。然后,我们必须设置衰减频率在30Hz。因为R3 =243kΩ,FC = 30Hz,并且:
@@ -117,16 +117,16 @@

补偿回路

$$
 
因为C1 = 1μF,FC = 2Hz,那么:

-

$$   +

$$   XC = j79.6kΩ  $$

U1的幅度增益G为: 

-

$$ +

$$ G = | R3 / XC |  $$

由于R3 =243kΩ,XC =j79.6kΩ,G = 3.05或9.7分贝。要想对此增益进行全面的分析,就不应忽视R1、R2、C2和C3,此时G = 3.11或9.8分贝,从而验证了我们的假设。现在,我们必须在前端再提供20.3分贝的增益以完成2Hz处的增益交叉。 
前端增益部分有两个功能:它减少积分器U1产生的误差,和采集从热敏电阻传来的温度信息。 由R4、R5和U2(图3)所设定的直流增益需要足够高以防止该误差信号被PID补偿电路消除。由于R4 =10kΩ,R5 =100kΩ,那么前端增益是11或20.8分贝,足以压倒9.7分贝的PID补偿部分。从热敏电阻传来的温度读数以误差信号的形式被传递给PID控制部分。该误差信号表示的是实际温度和所需温度(设定值)之间的差异。U2输出的误差信号可以按照下式计算:

-

$$ +

$$ ERROR=1.5V×( \frac{R_T×(R4+R5)}{R4×(10KΩ+R_T)})×V_{SET}×( \frac{R5}{R4}) $$

这里的1.5V是通过10kΩ的电阻器连接到热敏电阻的参考值,$R_T$是电阻 热敏电阻,$V_{SET}$是电压设定点。

diff --git a/docs/postList.json b/docs/postList.json new file mode 100644 index 00000000..ecc43775 --- /dev/null +++ b/docs/postList.json @@ -0,0 +1 @@ +{"P34": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "WSL\u5b50\u7cfb\u7edf\u7f16\u8bd1buildroot\u586b\u5751", "postUrl": "post/WSL-zi-xi-tong-bian-yi-buildroot-tian-keng.html", "commentNum": 0, "createdDate": "2023-11-07", "dateLabelColor": "#A333D0"}, "P33": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u5168\u5fd7V3S\u542f\u7528openssh", "postUrl": "post/quan-zhi-V3S-qi-yong-openssh.html", "commentNum": 0, "createdDate": "2023-10-13", "dateLabelColor": "#A333D0"}, "P32": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u591aUSB\u6444\u50cf\u5934\u5728\u540c\u4e00USB\u603b\u7ebf\u4e0a\u5f00\u542f", "postUrl": "post/duo-USB-she-xiang-tou-zai-tong-yi-USB-zong-xian-shang-kai-qi.html", "commentNum": 0, "createdDate": "2023-10-10", "dateLabelColor": "#A333D0"}, "P31": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u5168\u5fd7V3S\u79fb\u690dmjpg-streamer", "postUrl": "post/quan-zhi-V3S-yi-zhi-mjpg-streamer.html", "commentNum": 0, "createdDate": "2023-10-07", "dateLabelColor": "#A333D0"}, "P30": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u6811\u8393\u6d3emjpg-streamer\u542f\u52a8\u591a\u4e2aUSB\u6444\u50cf\u5934", "postUrl": "post/shu-mei-pai-mjpg-streamer-qi-dong-duo-ge-USB-she-xiang-tou.html", "commentNum": 0, "createdDate": "2023-09-26", "dateLabelColor": "#A333D0"}, "P29": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "ESP32-C3 \u56fa\u4ef6\u4e0b\u8f7d\u5c0f\u5de5\u5177", "postUrl": "post/ESP32-C3%20-gu-jian-xia-zai-xiao-gong-ju.html", "commentNum": 0, "createdDate": "2023-09-20", "dateLabelColor": "#A333D0"}, "P28": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u7ba1\u87ba\u7eb9\u5c3a\u5bf8\u53c2\u8003", "postUrl": "post/guan-luo-wen-chi-cun-can-kao.html", "commentNum": 0, "createdDate": "2023-09-05", "dateLabelColor": "#A333D0"}, "P27": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "favicon\u548cavatar\u56fe\u6807\u4f7f\u7528svg\u683c\u5f0f", "postUrl": "post/favicon-he-avatar-tu-biao-shi-yong-svg-ge-shi.html", "commentNum": 0, "createdDate": "2023-08-16", "dateLabelColor": "#A333D0"}, "P22": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u5ef6\u957fWIN\u81ea\u52a8\u66f4\u65b0\u65e5\u671f", "postUrl": "post/yan-chang-WIN-zi-dong-geng-xin-ri-qi.html", "commentNum": 0, "createdDate": "2023-08-05", "dateLabelColor": "#A333D0"}, "P21": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u7f51\u7ad9\u914d\u7f6eSSL\u8bc1\u4e66", "postUrl": "post/wang-zhan-pei-zhi-SSL-zheng-shu.html", "commentNum": 2, "createdDate": "2023-08-03", "dateLabelColor": "#A333D0"}, "P20": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "JS\u5224\u65ad\u8bc4\u8bba\u6846\u662f\u5426\u6210\u529f\u52a0\u8f7d\u7684\u65b9\u6cd5", "postUrl": "post/JS-pan-duan-ping-lun-kuang-shi-fou-cheng-gong-jia-zai-de-fang-fa.html", "commentNum": 0, "createdDate": "2023-08-01", "dateLabelColor": "#A333D0"}, "P5": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "Gmeek\u66f4\u65b0\u65e5\u5fd7", "postUrl": "post/Gmeek-geng-xin-ri-zhi.html", "commentNum": 5, "createdDate": "2023-07-11", "dateLabelColor": "#A333D0"}, "P4": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "markdown\u6d4b\u8bd5\u9875\u9762", "postUrl": "post/markdown-ce-shi-ye-mian.html", "commentNum": 3, "createdDate": "2023-07-11", "dateLabelColor": "#A333D0"}, "P26": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "WIN10\u5b89\u88c5pyopengl 64\u4f4d", "postUrl": "post/WIN10-an-zhuang-pyopengl%2064-wei.html", "commentNum": 0, "createdDate": "2022-03-13", "dateLabelColor": "#1f883d"}, "P24": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "STM32H7 V\u7248\u672c\u82af\u7247 Flash\u64e6\u9664\u51fa\u9519", "postUrl": "post/STM32H7%20V-ban-ben-xin-pian-%20Flash-ca-chu-chu-cuo.html", "commentNum": 0, "createdDate": "2021-02-07", "dateLabelColor": "#0969da"}, "P25": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "ESP32-S2\u8fd0\u884ccircuitpython", "postUrl": "post/ESP32-S2-yun-xing-circuitpython.html", "commentNum": 0, "createdDate": "2020-07-25", "dateLabelColor": "#bc4c00"}, "P11": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "\u6811\u8393\u6d3e4B\u914d\u7f6e\u4e24\u4e2aHDMI\u4e0d\u540c\u5206\u8fa8\u7387", "postUrl": "post/shu-mei-pai-4B-pei-zhi-liang-ge-HDMI-bu-tong-fen-bian-lv.html", "commentNum": 0, "createdDate": "2020-07-07", "dateLabelColor": "#bc4c00"}, "P12": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "websocket\u901a\u4fe1\u8e29\u5751\u8bb0", "postUrl": "post/websocket-tong-xin-cai-keng-ji.html", "commentNum": 0, "createdDate": "2019-05-31", "dateLabelColor": "#A333D0"}, "P3": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "Allegro\u5c01\u88c5\u5efa\u5e93\u7a0b\u5e8f\u5316", "postUrl": "post/Allegro-feng-zhuang-jian-ku-cheng-xu-hua.html", "commentNum": 0, "createdDate": "2018-11-21", "dateLabelColor": "#1f883d"}, "P13": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u517b\u9c7c\uff1f\u6211\u5e94\u8be5\u4e0d\u884c", "postUrl": "post/yang-yu-%EF%BC%9F-wo-ying-gai-bu-xing.html", "commentNum": 2, "createdDate": "2018-04-16", "dateLabelColor": "#1f883d"}, "P14": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "\u4f60\u662f\u5426\u8fd8\u5728\u4f7f\u7528PPT", "postUrl": "post/ni-shi-fou-huan-zai-shi-yong-PPT.html", "commentNum": 0, "createdDate": "2017-11-05", "dateLabelColor": "#0969da"}, "P7": {"label": "\u8f6f\u4ef6", "labelColor": "#D93F0B", "postTitle": "Cmder\u5b9a\u5236\u547d\u4ee4\u884c", "postUrl": "post/Cmder-ding-zhi-ming-ling-xing.html", "commentNum": 0, "createdDate": "2017-06-10", "dateLabelColor": "#0969da"}, "P8": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "\u534a\u5bfc\u4f53\u5236\u51b7\u5668(TEC)\u7684\u9a71\u52a8\u4e0e\u63a7\u5236", "postUrl": "post/ban-dao-ti-zhi-leng-qi-%28TEC%29-de-qu-dong-yu-kong-zhi.html", "commentNum": 1, "createdDate": "2017-05-03", "dateLabelColor": "#0969da"}, "P15": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "Allegro\u53cc\u51fbPCB\u6587\u4ef6\u53d8\u65b0\u5efa\u7684\u89e3\u51b3\u529e\u6cd5", "postUrl": "post/Allegro-shuang-ji-PCB-wen-jian-bian-xin-jian-de-jie-jue-ban-fa.html", "commentNum": 0, "createdDate": "2017-04-14", "dateLabelColor": "#0969da"}, "P16": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u300a\u9ad8\u6548\u80fd\u4eba\u58eb\u7684\u4e03\u4e2a\u4e60\u60ef\u300b\u8bfb\u540e\u611f", "postUrl": "post/%E3%80%8A-gao-xiao-neng-ren-shi-de-qi-ge-xi-guan-%E3%80%8B-du-hou-gan.html", "commentNum": 0, "createdDate": "2017-04-03", "dateLabelColor": "#0969da"}, "P17": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u6539\u53d8", "postUrl": "post/gai-bian.html", "commentNum": 1, "createdDate": "2017-03-29", "dateLabelColor": "#0969da"}, "P9": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "\u6781\u7c73Z4-Air\u4e0e\u97f3\u54cd\u9ad8\u97f3\u5587\u53ed", "postUrl": "post/ji-mi-Z4-Air-yu-yin-xiang-gao-yin-la-ba.html", "commentNum": 0, "createdDate": "2016-12-03", "dateLabelColor": "#bc4c00"}, "P18": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "NodeMcu\u5b66\u4e60\u7b14\u8bb0", "postUrl": "post/NodeMcu-xue-xi-bi-ji.html", "commentNum": 0, "createdDate": "2016-12-03", "dateLabelColor": "#bc4c00"}, "P23": {"label": "\u65e5\u5e38", "labelColor": "#4F61FC", "postTitle": "Paddy Richter", "postUrl": "post/Paddy%20Richter.html", "commentNum": 0, "createdDate": "2016-04-25", "dateLabelColor": "#bc4c00"}, "P6": {"label": "\u786c\u4ef6", "labelColor": "#0E8A16", "postTitle": "HDMI\u5b66\u4e60\u603b\u7ed3", "postUrl": "post/HDMI-xue-xi-zong-jie.html", "commentNum": 1, "createdDate": "2015-12-26", "dateLabelColor": "#A333D0"}} \ No newline at end of file diff --git a/docs/rss.xml b/docs/rss.xml index f9128b6e..ef47d1d8 100644 --- a/docs/rss.xml +++ b/docs/rss.xml @@ -1,5 +1,5 @@ -Meekdaihttps://blog.meekdai.com童话是一种生活态度,仅此而已。Meekdaihttp://www.rssboard.org/rss-specificationpython-feedgenhttps://meekdai.com/avatar.svgavatarhttps://blog.meekdai.comWed, 22 Nov 2023 03:39:52 +0000MeekdaiWed, 22 Nov 2023 03:39:52 +000060MeekdaiWSL子系统编译buildroot填坑https://blog.meekdai.com/post/WSL-zi-xi-tong-bian-yi-buildroot-tian-keng.html之前一直用Windows的子系统`WSL`用来编译`micropython`的固件,速度很快而且文件交互起来也很方便。https://blog.meekdai.com/post/WSL-zi-xi-tong-bian-yi-buildroot-tian-keng.htmlTue, 07 Nov 2023 09:23:47 +0000全志V3S启用opensshhttps://blog.meekdai.com/post/quan-zhi-V3S-qi-yong-openssh.html当 `V3S` 以 `SPI FLASH` 作为存储空间的时候,要调试代码只有串口不是很方便,可以使用 `tftp` 进行传输,但是总感觉不是特别优雅和直观,所以下面记录一下启用 `openssh` 的过程。https://blog.meekdai.com/post/quan-zhi-V3S-qi-yong-openssh.htmlFri, 13 Oct 2023 02:37:02 +0000多USB摄像头在同一USB总线上开启https://blog.meekdai.com/post/duo-USB-she-xiang-tou-zai-tong-yi-USB-zong-xian-shang-kai-qi.htmlUSB摄像头有一个全平台统一的BUG,就是2个或者多个USB摄像头插在同一个USB总线上,即使用USB-HUB扩展的口,会出现第二个摄像头无法打开的情况。https://blog.meekdai.com/post/duo-USB-she-xiang-tou-zai-tong-yi-USB-zong-xian-shang-kai-qi.htmlTue, 10 Oct 2023 02:49:04 +0000全志V3S移植mjpg-streamerhttps://blog.meekdai.com/post/quan-zhi-V3S-yi-zhi-mjpg-streamer.html上一篇文章在树莓派上简单的测试了一下USB摄像头通过mjpg-streamer推流的步骤,本篇记录使用全志的V3S替代树莓派实现这个功能。https://blog.meekdai.com/post/quan-zhi-V3S-yi-zhi-mjpg-streamer.htmlSat, 07 Oct 2023 06:37:05 +0000树莓派mjpg-streamer启动多个USB摄像头https://blog.meekdai.com/post/shu-mei-pai-mjpg-streamer-qi-dong-duo-ge-USB-she-xiang-tou.htmlMJPG-streamer是一个优秀的开源项目,它可以通过HTTP的方式访问linux上面的兼容摄像头,从而做到远程视频传输的效果。https://blog.meekdai.com/post/shu-mei-pai-mjpg-streamer-qi-dong-duo-ge-USB-she-xiang-tou.htmlTue, 26 Sep 2023 03:49:21 +0000ESP32-C3 固件下载小工具https://blog.meekdai.com/post/ESP32-C3%20-gu-jian-xia-zai-xiao-gong-ju.htmlESP32-C3内置了USB,可以使用USB进行下载,但是每次通过命令行敲指令进行下载不是很方便,所以写了几句`bat`代码,方便下载和擦除芯片。https://blog.meekdai.com/post/ESP32-C3%20-gu-jian-xia-zai-xiao-gong-ju.htmlWed, 20 Sep 2023 10:02:24 +0000管螺纹尺寸参考https://blog.meekdai.com/post/guan-luo-wen-chi-cun-can-kao.html今天同事在群里分享了一张管螺纹的尺寸对照表,感觉之前给鱼缸水泵换接头或者家里水龙头换管子在购买的时候对尺寸都比较疑惑,看了这张表后就很清晰了。https://blog.meekdai.com/post/guan-luo-wen-chi-cun-can-kao.htmlTue, 05 Sep 2023 13:39:08 +0000favicon和avatar图标使用svg格式https://blog.meekdai.com/post/favicon-he-avatar-tu-biao-shi-yong-svg-ge-shi.htmlfavicon和avatar一般是博客网站必不可少的图标,之前都是采用比较传统的格式制作。https://blog.meekdai.com/post/favicon-he-avatar-tu-biao-shi-yong-svg-ge-shi.htmlWed, 16 Aug 2023 09:08:33 +0000延长WIN自动更新日期https://blog.meekdai.com/post/yan-chang-WIN-zi-dong-geng-xin-ri-qi.html由于我的电脑比较老了,不支持WIN11,但是WIN10自动更新像个脑残一样,每次都自动下载WIN11的更新包,然后提示不支持本机,删除更新包,之后过几天又在下载WIN11更新包,如此反复,实在忍无可忍。https://blog.meekdai.com/post/yan-chang-WIN-zi-dong-geng-xin-ri-qi.htmlSat, 05 Aug 2023 12:57:55 +0000网站配置SSL证书https://blog.meekdai.com/post/wang-zhan-pei-zhi-SSL-zheng-shu.html感叹一下,现在给网站添加一个SSL证书已经如此方便了,而且还是免费的,只是需要每年重新申请一下就行。https://blog.meekdai.com/post/wang-zhan-pei-zhi-SSL-zheng-shu.htmlThu, 03 Aug 2023 02:12:09 +0000JS判断评论框是否成功加载的方法https://blog.meekdai.com/post/JS-pan-duan-ping-lun-kuang-shi-fou-cheng-gong-jia-zai-de-fang-fa.html在给博客添加 [utteranc](https://utteranc.es/) 评论框的时候,发现添加按钮再加载评论框比较友好。https://blog.meekdai.com/post/JS-pan-duan-ping-lun-kuang-shi-fou-cheng-gong-jia-zai-de-fang-fa.htmlTue, 01 Aug 2023 09:43:14 +0000Gmeek更新日志https://blog.meekdai.com/post/Gmeek-geng-xin-ri-zhi.html[Gmeek](https://github.com/Meekdai/Gmeek) 一个博客框架,超轻量级个人博客模板,完全基于`Github Pages `、 `Github Issues` 和 `Github Actions`,可以称作`All in Github`。https://blog.meekdai.com/post/Gmeek-geng-xin-ri-zhi.htmlTue, 11 Jul 2023 08:09:05 +0000markdown测试页面https://blog.meekdai.com/post/markdown-ce-shi-ye-mian.html![](https://img.shields.io/badge/Markdown-8A2BE2) ![](https://img.shields.io/badge/Static_Badge-blue) +Meekdaihttps://blog.meekdai.com童话是一种生活态度,仅此而已。Meekdaihttp://www.rssboard.org/rss-specificationpython-feedgenhttps://meekdai.com/avatar.svgavatarhttps://blog.meekdai.comWed, 22 Nov 2023 04:35:46 +0000MeekdaiWed, 22 Nov 2023 04:35:46 +000060MeekdaiWSL子系统编译buildroot填坑https://blog.meekdai.com/post/WSL-zi-xi-tong-bian-yi-buildroot-tian-keng.html之前一直用Windows的子系统`WSL`用来编译`micropython`的固件,速度很快而且文件交互起来也很方便。https://blog.meekdai.com/post/WSL-zi-xi-tong-bian-yi-buildroot-tian-keng.htmlTue, 07 Nov 2023 09:23:47 +0000全志V3S启用opensshhttps://blog.meekdai.com/post/quan-zhi-V3S-qi-yong-openssh.html当 `V3S` 以 `SPI FLASH` 作为存储空间的时候,要调试代码只有串口不是很方便,可以使用 `tftp` 进行传输,但是总感觉不是特别优雅和直观,所以下面记录一下启用 `openssh` 的过程。https://blog.meekdai.com/post/quan-zhi-V3S-qi-yong-openssh.htmlFri, 13 Oct 2023 02:37:02 +0000多USB摄像头在同一USB总线上开启https://blog.meekdai.com/post/duo-USB-she-xiang-tou-zai-tong-yi-USB-zong-xian-shang-kai-qi.htmlUSB摄像头有一个全平台统一的BUG,就是2个或者多个USB摄像头插在同一个USB总线上,即使用USB-HUB扩展的口,会出现第二个摄像头无法打开的情况。https://blog.meekdai.com/post/duo-USB-she-xiang-tou-zai-tong-yi-USB-zong-xian-shang-kai-qi.htmlTue, 10 Oct 2023 02:49:04 +0000全志V3S移植mjpg-streamerhttps://blog.meekdai.com/post/quan-zhi-V3S-yi-zhi-mjpg-streamer.html上一篇文章在树莓派上简单的测试了一下USB摄像头通过mjpg-streamer推流的步骤,本篇记录使用全志的V3S替代树莓派实现这个功能。https://blog.meekdai.com/post/quan-zhi-V3S-yi-zhi-mjpg-streamer.htmlSat, 07 Oct 2023 06:37:05 +0000树莓派mjpg-streamer启动多个USB摄像头https://blog.meekdai.com/post/shu-mei-pai-mjpg-streamer-qi-dong-duo-ge-USB-she-xiang-tou.htmlMJPG-streamer是一个优秀的开源项目,它可以通过HTTP的方式访问linux上面的兼容摄像头,从而做到远程视频传输的效果。https://blog.meekdai.com/post/shu-mei-pai-mjpg-streamer-qi-dong-duo-ge-USB-she-xiang-tou.htmlTue, 26 Sep 2023 03:49:21 +0000ESP32-C3 固件下载小工具https://blog.meekdai.com/post/ESP32-C3%20-gu-jian-xia-zai-xiao-gong-ju.htmlESP32-C3内置了USB,可以使用USB进行下载,但是每次通过命令行敲指令进行下载不是很方便,所以写了几句`bat`代码,方便下载和擦除芯片。https://blog.meekdai.com/post/ESP32-C3%20-gu-jian-xia-zai-xiao-gong-ju.htmlWed, 20 Sep 2023 10:02:24 +0000管螺纹尺寸参考https://blog.meekdai.com/post/guan-luo-wen-chi-cun-can-kao.html今天同事在群里分享了一张管螺纹的尺寸对照表,感觉之前给鱼缸水泵换接头或者家里水龙头换管子在购买的时候对尺寸都比较疑惑,看了这张表后就很清晰了。https://blog.meekdai.com/post/guan-luo-wen-chi-cun-can-kao.htmlTue, 05 Sep 2023 13:39:08 +0000favicon和avatar图标使用svg格式https://blog.meekdai.com/post/favicon-he-avatar-tu-biao-shi-yong-svg-ge-shi.htmlfavicon和avatar一般是博客网站必不可少的图标,之前都是采用比较传统的格式制作。https://blog.meekdai.com/post/favicon-he-avatar-tu-biao-shi-yong-svg-ge-shi.htmlWed, 16 Aug 2023 09:08:33 +0000延长WIN自动更新日期https://blog.meekdai.com/post/yan-chang-WIN-zi-dong-geng-xin-ri-qi.html由于我的电脑比较老了,不支持WIN11,但是WIN10自动更新像个脑残一样,每次都自动下载WIN11的更新包,然后提示不支持本机,删除更新包,之后过几天又在下载WIN11更新包,如此反复,实在忍无可忍。https://blog.meekdai.com/post/yan-chang-WIN-zi-dong-geng-xin-ri-qi.htmlSat, 05 Aug 2023 12:57:55 +0000网站配置SSL证书https://blog.meekdai.com/post/wang-zhan-pei-zhi-SSL-zheng-shu.html感叹一下,现在给网站添加一个SSL证书已经如此方便了,而且还是免费的,只是需要每年重新申请一下就行。https://blog.meekdai.com/post/wang-zhan-pei-zhi-SSL-zheng-shu.htmlThu, 03 Aug 2023 02:12:09 +0000JS判断评论框是否成功加载的方法https://blog.meekdai.com/post/JS-pan-duan-ping-lun-kuang-shi-fou-cheng-gong-jia-zai-de-fang-fa.html在给博客添加 [utteranc](https://utteranc.es/) 评论框的时候,发现添加按钮再加载评论框比较友好。https://blog.meekdai.com/post/JS-pan-duan-ping-lun-kuang-shi-fou-cheng-gong-jia-zai-de-fang-fa.htmlTue, 01 Aug 2023 09:43:14 +0000Gmeek更新日志https://blog.meekdai.com/post/Gmeek-geng-xin-ri-zhi.html[Gmeek](https://github.com/Meekdai/Gmeek) 一个博客框架,超轻量级个人博客模板,完全基于`Github Pages `、 `Github Issues` 和 `Github Actions`,可以称作`All in Github`。https://blog.meekdai.com/post/Gmeek-geng-xin-ri-zhi.htmlTue, 11 Jul 2023 08:09:05 +0000markdown测试页面https://blog.meekdai.com/post/markdown-ce-shi-ye-mian.html![](https://img.shields.io/badge/Markdown-8A2BE2) ![](https://img.shields.io/badge/Static_Badge-blue) 这是一个markdown格式的测试页面,也是个人经常会使用的格式记录。https://blog.meekdai.com/post/markdown-ce-shi-ye-mian.htmlTue, 11 Jul 2023 02:09:59 +0000WIN10安装pyopengl 64位https://blog.meekdai.com/post/WIN10-an-zhuang-pyopengl%2064-wei.html通过python的 `pip install pyopengl`指令在win10 64位的系统上安装后,运行官方茶壶的例子,会出现如下报错: diff --git a/docs/tag.html b/docs/tag.html index aa489144..bf020d6c 100644 --- a/docs/tag.html +++ b/docs/tag.html @@ -134,7 +134,7 @@ tagList=[]; jsonData=''; -let requestJson="blogBase.json" +let requestJson="postList.json" let request=new XMLHttpRequest(); request.open("GET",requestJson); request.responseType='text'; @@ -158,22 +158,22 @@ showLabels.setAttribute("onclick","javascript:updateShowTag('All');"); tagLable.appendChild(showLabels); } - for(i in jsonData["postListJson"]){ - if(!(tagList.includes(jsonData["postListJson"][i]['label']))){ - tagList.push(jsonData["postListJson"][i]['label']); + for(i in jsonData){ + if(!(tagList.includes(jsonData[i]['label']))){ + tagList.push(jsonData[i]['label']); let showLabels=document.createElement("button"); showLabels.setAttribute("class","Label"); - showLabels.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']); - showLabels.innerHTML=jsonData["postListJson"][i]['label']; - showLabels.setAttribute("onclick","javascript:updateShowTag('"+jsonData["postListJson"][i]['label']+"');"); + showLabels.setAttribute("style","background-color:"+jsonData[i]['labelColor']); + showLabels.innerHTML=jsonData[i]['label']; + showLabels.setAttribute("onclick","javascript:updateShowTag('"+jsonData[i]['label']+"');"); tagLable.appendChild(showLabels); } let div=document.createElement("div"); - div.setAttribute("class","lists "+jsonData["postListJson"][i]['label']); + div.setAttribute("class","lists "+jsonData[i]['label']); let item=document.createElement("a"); item.setAttribute("class","SideNav-item d-flex flex-items-center flex-justify-between"); - item.setAttribute("href",jsonData["postListJson"][i]['postUrl']); + item.setAttribute("href",jsonData[i]['postUrl']); let center=document.createElement("div"); center.setAttribute("class","d-flex flex-items-center"); @@ -188,7 +188,7 @@ let title=document.createElement("span"); title.setAttribute("class","listTitle"); - title.innerHTML=jsonData["postListJson"][i]['postTitle']; + title.innerHTML=jsonData[i]['postTitle']; center.appendChild(svg); center.appendChild(title); @@ -196,13 +196,13 @@ listLabels.setAttribute("class","listLabels"); let LabelName=document.createElement("span"); LabelName.setAttribute("class","Label LabelName"); - LabelName.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']); - LabelName.innerHTML=jsonData["postListJson"][i]['label']; + LabelName.setAttribute("style","background-color:"+jsonData[i]['labelColor']); + LabelName.innerHTML=jsonData[i]['label']; listLabels.appendChild(LabelName); let LabelTime=document.createElement("span"); LabelTime.setAttribute("class","Label LabelTime"); - LabelTime.setAttribute("style","background-color:"+jsonData["postListJson"][i]['dateLabelColor']); - LabelTime.innerHTML=jsonData["postListJson"][i]['createdDate']; + LabelTime.setAttribute("style","background-color:"+jsonData[i]['dateLabelColor']); + LabelTime.innerHTML=jsonData[i]['createdDate']; listLabels.appendChild(LabelTime); item.appendChild(center);