<?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=Local_Weather_Station</id>
		<title>Local Weather Station - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Local_Weather_Station"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Local_Weather_Station&amp;action=history"/>
		<updated>2026-04-21T07:58:19Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Local_Weather_Station&amp;diff=10900&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| Local Weather Station }} {| style=&quot;width: 800px;&quot; |- | ==Objective== To detect environment via a temperature &amp; humidity sensor and light-sensitve senor, then displ...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Local_Weather_Station&amp;diff=10900&amp;oldid=prev"/>
				<updated>2015-10-21T03:19:12Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| Local Weather Station }} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== To detect environment via a temperature &amp;amp; humidity sensor and light-sensitve senor, then displ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| Local Weather Station }}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
To detect environment via a temperature &amp;amp; humidity sensor and light-sensitve senor, then display the data on OLED. Users can build a weather station and give yourself a real experiment of the &amp;quot;nature&amp;quot; around you.  &lt;br /&gt;
&lt;br /&gt;
==Principle==&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;
|[[Microduino-CoreUSB]]||1||Core board&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Sensorhub]]||1||Sensor pin board &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-BM]]||1||Battery management &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-OLED]]||1||Display&lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-DUO-V]]||1||Extension board&lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Temp&amp;amp;Hum]]||1||Temperature and humidity sensor &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Light]]||1||Light-sensitive sensor &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
*Other Equipment: &lt;br /&gt;
**A battery &lt;br /&gt;
&lt;br /&gt;
 [[File: Local_weather_station.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Hardware Buildup ==&lt;br /&gt;
*Setup 1：Connect CoreUSB to the computer, open program examples, select the right board and serial port and then download the program.&lt;br /&gt;
&lt;br /&gt;
*Setup 2：Stack all modules and use DUO-V as the extension board. Sensorhub and OLED can be only stacked on the top. &lt;br /&gt;
[[File: Local_weather_station_setup_1.jpg|600px|center|thumb]]&lt;br /&gt;
*Setup3：Connect temp&amp;amp;hum sensor to Sensorhub's A4 and A5 pins and the light-sensitive sensor to A0. &lt;br /&gt;
[[file:Microduino-sensorhub_rule.JPG|thumb|800px|center]]&lt;br /&gt;
[[file: Local_weather_station_setup_2.jpg |thumb|800px|center]]&lt;br /&gt;
*Setup4：Connect the battery to BM. &lt;br /&gt;
[[file: Local_weather_station_bm.JPG|thumb|800px|center]]&lt;br /&gt;
&lt;br /&gt;
==Software Debugging==&lt;br /&gt;
*Function Description: &lt;br /&gt;
**&amp;quot; oled.h &amp;quot; controls the file displaying environment data. &lt;br /&gt;
**&amp;quot; weather.h &amp;quot;  File of environment data acquired by the sensors.  &lt;br /&gt;
&lt;br /&gt;
*Calculate temp&amp;amp;hum and light values &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
  am2321.read();&lt;br /&gt;
  sensor_tem = am2321.temperature / 10.0;&lt;br /&gt;
  sensor_hum = am2321.humidity / 10.0;&lt;br /&gt;
&lt;br /&gt;
sensor_light = map(analogRead(A0), 0, 1023, 0, 255);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The led light on OLED goes on when temperature is above a certain value. &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
  if (sensor_tem &amp;gt; 30)&lt;br /&gt;
  {&lt;br /&gt;
    s_data = 1;&lt;br /&gt;
    digitalWrite(ledPin, HIGH);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    s_data = 0;&lt;br /&gt;
    digitalWrite(ledPin, LOW);&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Sensors can acquire temperature, humidity and light intensity data from the environment and display them on OLED. By changing the environment around you, you'll find corresponding change on the screen. For this project, you can get a beautiful shell with LEGO boards which can be easily stacked with mCookie.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>