显示页面修订记录反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== 雾化器模块 ====== ===== 1. 模块介绍 ===== <html><body> <p class=MsoNormal style='text-indent:32.0pt;mso-char-indent-count:2.0'><span style='font-size:16.0pt;line-height:105%;font-family:等线;mso-ascii-theme-font: minor-fareast;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast'>雾化器模块(Water Atomizer)是一个利用高频超声震动片将液态的物质雾化成气态的模块,因此可制作加湿器等。</span><span lang=EN-US style='font-family:等线;mso-ascii-theme-font:minor-fareast;mso-fareast-theme-font: minor-fareast;mso-hansi-theme-font:minor-fareast'></span></p> </body></html> ===== 2. 模块参数 ===== <html><body> <div align=center> <table class=MsoTable15List5DarkAccent5 border=1 cellspacing=0 cellpadding=0 style='border-collapse:collapse;border:none'> <tr> <td width=173 valign=top style='width:130.1pt;border-top:solid #5B9BD5 3.0pt; border-left:solid #5B9BD5 3.0pt;border-bottom:solid white 2.25pt;border-right: none;background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:18.0pt; font-family:宋体;color:white'>参数</span></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:solid #5B9BD5 3.0pt; border-left:none;border-bottom:solid white 2.25pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:18.0pt; font-family:宋体;color:white'>值</span><span lang=EN-US style='font-size:18.0pt; color:white'>/</span><span style='font-size:18.0pt;font-family:宋体;color:white'>描述</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border-top:none;border-left: solid #5B9BD5 3.0pt;border-bottom:solid white 1.0pt;border-right:solid white 1.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>工作电压</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:none;border-left: none;border-bottom:solid white 1.0pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>DC 5V</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border-top:none;border-left: solid #5B9BD5 3.0pt;border-bottom:none;border-right:solid white 1.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>通信方式</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border:none;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>WM</span><span style='font-size:16.0pt;font-family:宋体; color:white'>单总线</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border:solid white 1.0pt; border-left:solid #5B9BD5 3.0pt;background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>指示灯</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:solid white 1.0pt; border-left:none;border-bottom:solid white 1.0pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:16.0pt; font-family:宋体;color:white'>蓝色</span><span lang=EN-US style='font-size:16.0pt; color:white'>LED</span><span style='font-size:16.0pt;font-family:宋体; color:white'>指示是否工作</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border-top:none;border-left: solid #5B9BD5 3.0pt;border-bottom:none;border-right:solid white 1.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>输出电压</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border:none;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>24V</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border:solid white 1.0pt; border-left:solid #5B9BD5 3.0pt;background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>最大功率</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:solid white 1.0pt; border-left:none;border-bottom:solid white 1.0pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>2W</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border-top:none;border-left: solid #5B9BD5 3.0pt;border-bottom:none;border-right:solid white 1.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>工作频率</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border:none;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>105</span><span style='font-size:16.0pt;font-family:宋体; color:white'>±</span><span lang=EN-US style='font-size:16.0pt;color:white'>5kHz</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border:solid white 1.0pt; border-left:solid #5B9BD5 3.0pt;background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>电源芯片</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:solid white 1.0pt; border-left:none;border-bottom:solid white 1.0pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>XL6008</span></p> </td> </tr> <tr> <td width=173 valign=top style='width:130.1pt;border-top:none;border-left: solid #5B9BD5 3.0pt;border-bottom:solid #5B9BD5 3.0pt;border-right:solid white 1.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:16.0pt; font-family:宋体;color:white'>尺寸大小</span></b></p> </td> <td width=395 valign=top style='width:295.9pt;border-top:none;border-left: none;border-bottom:solid #5B9BD5 3.0pt;border-right:solid #5B9BD5 3.0pt; background:#5B9BD5;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US style='font-size:16.0pt; color:white'>55mm * 24mm * 18.5mm</span><span style='font-size:16.0pt; font-family:宋体;color:white'>(长</span><span lang=EN-US style='font-size:16.0pt; color:white'>*</span><span style='font-size:16.0pt;font-family:宋体;color:white'>宽</span><span lang=EN-US style='font-size:16.0pt;color:white'>*</span><span style='font-size:16.0pt;font-family:宋体;color:white'>高)</span></p> </td> </tr> </table> </div> </body></html> ===== 3. 编程指南 ===== ==== 3.1. 模块功能及图形化编程指南 ==== <html><body> <p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:16.0pt; font-family:等线'>该模块支持的图形化编程平台有</span><span lang=EN-US style='font-size:16.0pt'>WeeeCode</span><span style='font-size:16.0pt;font-family:等线'>、编程猫平台、</span><span lang=EN-US style='font-size:16.0pt'>Mixly_Arduino</span><span style='font-size:16.0pt; font-family:等线'>、</span><span lang=EN-US style='font-size:16.0pt'>MakeCode</span><span style='font-size:16.0pt;font-family:等线'>等,其图形化编程大同小异,区别不会很大。</span></p> <div align=center> <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'> <tr style='height:24.7pt'> <td width=244 valign=top style='width:183.3pt;border:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt;height:24.7pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>模块功能</span></b></p> </td> <td width=189 valign=top style='width:142.05pt;border:solid windowtext 1.0pt; border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:24.7pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>需传参数</span></b></p> </td> <td width=455 valign=top style='width:341.05pt;border:solid windowtext 1.0pt; border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:24.7pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><b><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>图形化编程块举例</span></b><b style='box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal; orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'><span style='box-sizing: border-box'><span lang=EN-US style='font-size:14.0pt;font-family:"Helvetica",sans-serif; color:black;background:white'>(</span></span></b><b style='box-sizing: border-box; font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2; widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'><span style='box-sizing: border-box'><span style='font-size:14.0pt;font-family:等线;color:black;background:white'>其他平台图形化编程块大同小异</span></span></b><b style='box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal; orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'><span style='box-sizing: border-box'><span lang=EN-US style='font-size:14.0pt;font-family:"Helvetica",sans-serif; color:black;background:white'>)</span></span></b></p> </td> </tr> <tr> <td width=244 style='width:183.3pt;border:solid windowtext 1.0pt;border-top: none;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>设置雾化器工作状态</span></p> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>打开<span style='box-sizing: border-box; font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2; widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'>:开始雾化<span lang=EN-US><span style='box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal; orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'></span></span></p> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span style='font-size:14.0pt; font-family:等线;color:black;background:white'>关闭<span style='box-sizing: border-box; font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2; widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial; text-decoration-color: initial;word-spacing:0px'>:关闭雾化</span><span lang=EN-US><span style='box-sizing: border-box;font-variant-ligatures: normal; font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px; text-decoration-style: initial;text-decoration-color: initial;word-spacing: 0px'></span></p> </td> <td width=189 style='width:142.05pt;border-top:none;border-left:none; border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal'><span style='font-size:14.0pt;font-family:等线;color:black;background: white'>(<span lang=EN-US><span style='box-sizing: border-box;font-variant-ligatures: normal; font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px; text-decoration-style: initial;text-decoration-color: initial;word-spacing: 0px'>2</span></span>个参数)端口、</span>状态</span></span></p> </td> <td width=455 valign=top style='width:341.05pt;border-top:none;border-left: none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt; text-align:center;line-height:normal'><span lang=EN-US><img width=328 height=131 id="图片 1" src="lib/exe/fetch.php?media=wm_wiki:atomizer_module:pasted:20200302-162529.png"></span></p> </td> </tr> </table> </div> <p class=MsoNormal><span lang=EN-US style='color:white'> </span></p> <p class=MsoNormal style='text-indent:32.0pt'><span style='font-size:16.0pt; font-family:等线'>图形化编程示例:</span></p> </body></html> {{ :wm_wiki:atomizer_module:pasted:20200302-163243.png }} ==== 3.2. 文本代码编程指南 ==== <html><body> <p class=MsoNormal style='text-indent:32.0pt'><span style='font-size:16.0pt; font-family:等线'>Arduino编程示例:</span></p> </body></html> <sxh cpp; first-line: 1;highlight: [3,10,12]; title: we_water_atomizer_test.ino> #include "WeELF328P.h" WeWaterAtomizer atomizer(PORT_A); void setup() { } void loop() { atomizer.start(); delay(2000); atomizer.stop(); delay(3000); } </sxh>