<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=MWatch_%28Wi-Fi%29</id>
		<title>MWatch (Wi-Fi) - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=MWatch_%28Wi-Fi%29"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=MWatch_(Wi-Fi)&amp;action=history"/>
		<updated>2026-06-13T12:54:50Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=MWatch_(Wi-Fi)&amp;diff=11146&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| mWatch (Wi-Fi)}} {| style=&quot;width: 800px;&quot; |- | ==Objective== Here we use mCookie to build a simple watch, which can synchronize the time automatically in the WiFi ...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=MWatch_(Wi-Fi)&amp;diff=11146&amp;oldid=prev"/>
				<updated>2015-10-30T06:44:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| mWatch (Wi-Fi)}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== Here we use mCookie to build a simple watch, which can synchronize the time automatically in the WiFi ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| mWatch (Wi-Fi)}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
Here we use mCookie to build a simple watch, which can synchronize the time automatically in the WiFi environment. &lt;br /&gt;
&lt;br /&gt;
[[File:mWatch-ok.jpg|400px|center]]&lt;br /&gt;
&lt;br /&gt;
==Principle==&lt;br /&gt;
We add the WIFI module in the tutorial, which can connect to the pre-set network after the power-up of the mWatch. When it is connected, the mWatch will synchronize network time automatically. And then acquiring time through the RTC module and displaying it on the OLED screen. &lt;br /&gt;
&lt;br /&gt;
[[File: mWatch-wifi-sch.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-CoreUSB]]||1||Core board &lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-RTC]]||1||Time clock module  &lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-WiFi]]||1||Networking module &lt;br /&gt;
|-&lt;br /&gt;
| [[mCookie-OLED]]||1||OLED display &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-BM]]||1||Battery management   &lt;br /&gt;
|}&lt;br /&gt;
 [[File: mWatch-wifi-module.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==Preparation==&lt;br /&gt;
*Setup 1：Connect the CoreUSB to the PC/Mac with a USB cable and then open Arduino IDE.  &lt;br /&gt;
[[File:CoreUSB_Ble_pc.jpg|600px|center]]&lt;br /&gt;
*Setup 2：Click Files &amp;gt; Examples &amp;gt; mCookie &amp;gt; _301_mWatch_WiFi, and download the program. &lt;br /&gt;
[[File: l mWatch-wifi-ino.jpg|600px|center]]&lt;br /&gt;
* Setup 3：Load the code and copy the program to IDE; Select the right board and COM port for program download; When it pops up &amp;quot;Done Uploading&amp;quot; notice, it means the program has been written into the CoreUSB. &lt;br /&gt;
[[File: mWatch-wifi-com.jpg|600px|center]]&lt;br /&gt;
==Program Description==&lt;br /&gt;
*Acquire network time function: &amp;quot; updateTimeData()&amp;quot;--Execute the statement to get the network time.  &lt;br /&gt;
*Acquire RTC time function: &amp;quot; getRTC()&amp;quot;--Execute the statement to get RTC time.  &lt;br /&gt;
*RTC time adjusting function: &amp;quot; setRTC()&amp;quot;--Execute the statement to re-set the RTC time. &lt;br /&gt;
*Notice for network connection initializing can be displayed by the OLED screen. (Inside setup() function.)&lt;br /&gt;
**Search for network: If successful, it'll pop up notice &amp;quot; softap ok &amp;quot; or it'll show &amp;quot; softap err &amp;quot;.  &lt;br /&gt;
**Join in network: If successful, it'll show notice &amp;quot; Join AP success &amp;quot; or it'll show &amp;quot; Join AP failure &amp;quot;. &lt;br /&gt;
**Note for time acquiring: If successful, it'll be displayed on the OLED.  &lt;br /&gt;
==Code Debugging ==&lt;br /&gt;
[[File: mWatch-wifi-ino.jpg|600px|center]]&lt;br /&gt;
*Find this section of code above in the main program, enter WiFi user name and password in &amp;quot;&amp;quot;. So it can connect to the internet and get precise time information. &lt;br /&gt;
*Find this section of code above from the rtc.h program, modify it as your time zone; Load the program to the CoreUSB after modifying and get precise time under WiFi environment. &lt;br /&gt;
[[File: mWatch-wifi-shiqu.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==Hardware Buildup ==&lt;br /&gt;
*Setup 1：Connect the activated battery box and BM module. &lt;br /&gt;
[[File:CoreUSB_Ble_steup2.jpg|600px|center]]&lt;br /&gt;
*Setup 2：Stack all modules together without fixed order and finish circuit buildup. &lt;br /&gt;
[[File:mWatch_steup3.jpg|600px|center]]&lt;br /&gt;
==Result==&lt;br /&gt;
Data and week is displayed on the first line; Time is displayed on the second line; Custom text is displayed on the third line. &lt;br /&gt;
[[File:legao_mWatch.jpg|600px|center]]&lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>