<?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=Lesson_1--Microduino_resistance_Meter</id>
		<title>Lesson 1--Microduino resistance Meter - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Lesson_1--Microduino_resistance_Meter"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;action=history"/>
		<updated>2026-04-21T09:43:33Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1298&amp;oldid=prev</id>
		<title>2014年3月4日 (二) 12:49 Pkj</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1298&amp;oldid=prev"/>
				<updated>2014-03-04T12:49:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年3月4日 (二) 12:49的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Language|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;第二课&lt;/del&gt;--Microduino &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OLED使用&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Language|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;第一课&lt;/ins&gt;--Microduino &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;电阻计&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Objective==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Objective==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1296&amp;oldid=prev</id>
		<title>2014年3月4日 (二) 12:46 Pkj</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1296&amp;oldid=prev"/>
				<updated>2014-03-04T12:46:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年3月4日 (二) 12:46的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Language|第二课--Microduino OLED使用}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Objective==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Objective==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1293&amp;oldid=prev</id>
		<title>Pkj：Created page with &quot;==Objective==  This lesson will teach you how to use Microduin to make a resistance meter. The basic principle is that use the reference resistor, compareing the voltage, then...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_1--Microduino_resistance_Meter&amp;diff=1293&amp;oldid=prev"/>
				<updated>2014-03-04T12:32:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Objective==  This lesson will teach you how to use Microduin to make a resistance meter. The basic principle is that use the reference resistor, compareing the voltage, then...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Objective==&lt;br /&gt;
&lt;br /&gt;
This lesson will teach you how to use Microduin to make a resistance meter. The basic principle is that use the reference resistor, compareing the voltage, then calculate the resistance value. Through testing, using 20k as the base, if the resistance value more than 1k, the result more accurate. &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
*Other hardware equipment&lt;br /&gt;
**Breadboard Jumper            one box   &lt;br /&gt;
**Breadboard  	               one piece  &lt;br /&gt;
**20kΩ resistor 	             one &lt;br /&gt;
**104 ceramic capacitor        one  &lt;br /&gt;
**USB Data cable               one&lt;br /&gt;
&lt;br /&gt;
'''Capacitor'''&lt;br /&gt;
[[File:第一课-电容.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
'''brief introduction：'''&lt;br /&gt;
&lt;br /&gt;
Ceramics is qualitative, 104 is three digits notation, the former two significant figures, the next one is the number of 0. 104 means it is 100000PF, equal to 0.1 uF. Commonly used as bypass capacitor in high frequency or low frequency circuit, and commonly used in power supply decoupling, also has a coupling effect.&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
&lt;br /&gt;
You can change the reference resistor according the measure scope, in order to get a good accurate.&lt;br /&gt;
&lt;br /&gt;
Circuit Connection:(Using 104 ceramic capacitor)：&lt;br /&gt;
&lt;br /&gt;
[[File:第一课-Microduino电阻计原理图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    #define N 12&lt;br /&gt;
    #define basis 20000.0   //Reference resistor&lt;br /&gt;
&lt;br /&gt;
    int potpin = A4;&lt;br /&gt;
    float val, r;&lt;br /&gt;
&lt;br /&gt;
    void setup()&lt;br /&gt;
    {&lt;br /&gt;
        Serial.begin(9600);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void loop()&lt;br /&gt;
    {&lt;br /&gt;
        val = analogRead(potpin);&lt;br /&gt;
        r = ((basis * 1023.0) / (1023.0 - val)) - basis;&lt;br /&gt;
        delay(100);&lt;br /&gt;
        Serial.print(&amp;quot; R:  &amp;quot;);&lt;br /&gt;
        if(filter() &amp;gt;= 1000)&lt;br /&gt;
        {&lt;br /&gt;
            if(filter() &amp;gt;= 500.0*1000.0)&lt;br /&gt;
            {&lt;br /&gt;
                Serial.println(&amp;quot;Infinity!!&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                Serial.print(filter() / 1000.0);&lt;br /&gt;
                Serial.println(&amp;quot;K ohm&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
     &lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            Serial.print(filter());&lt;br /&gt;
            Serial.println(&amp;quot; ohm&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
	//Filtering algorithm, use the average filtering algorithm &lt;br /&gt;
    float filter()&lt;br /&gt;
    {&lt;br /&gt;
        float sum = 0;&lt;br /&gt;
        for(int count = 0; count &amp;lt; N; count++)&lt;br /&gt;
        {&lt;br /&gt;
            sum += r;&lt;br /&gt;
            delay(5);&lt;br /&gt;
        }&lt;br /&gt;
        return (float)(sum / N);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Debug==&lt;br /&gt;
&lt;br /&gt;
Step 1：Copy the code to IDE, and compile it&lt;br /&gt;
&lt;br /&gt;
Step 2：Connect the circuit, as follows：&lt;br /&gt;
[[File:第一课-Microduino电阻计连接图.jpg|600px|center|thumb]]&lt;br /&gt;
In figure, the upper resistor is 20k reference resistor, and the low registor is the measured one.&lt;br /&gt;
&lt;br /&gt;
Step 3：Run program&lt;br /&gt;
&lt;br /&gt;
Step 4：As figure shows, put the yellow line and black line to both end of the resistance, serial will show the resistance value.&lt;br /&gt;
&lt;br /&gt;
[[File:第一课-Microduino电阻计串口显示电阻值.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
You also can change to other object to test the resistance, such as soap, a damp cloth and so on.&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Serial will show the resistance value.&lt;br /&gt;
==Video==&lt;br /&gt;
http://v.youku.com/v_show/id_XNjc3MzU3ODIw.html&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>