<?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=Microduino_Hall_sensor_to_measure_DC_motor_RPM</id>
		<title>Microduino Hall sensor to measure DC motor RPM - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino_Hall_sensor_to_measure_DC_motor_RPM"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_Hall_sensor_to_measure_DC_motor_RPM&amp;action=history"/>
		<updated>2026-04-21T11:33:31Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_Hall_sensor_to_measure_DC_motor_RPM&amp;diff=1888&amp;oldid=prev</id>
		<title>Jasonsheng：Created page with &quot;{{Language | Microduino 霍尔传感器测量直流电机RPM}} {| style=&quot;width: 800px;&quot; |- | ==Objective== This lesson will teach you use the hall sensor to measure the RPM(Re...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_Hall_sensor_to_measure_DC_motor_RPM&amp;diff=1888&amp;oldid=prev"/>
				<updated>2014-04-11T05:12:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language | Microduino 霍尔传感器测量直流电机RPM}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== This lesson will teach you use the hall sensor to measure the RPM(Re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language | Microduino 霍尔传感器测量直流电机RPM}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
This lesson will teach you use the hall sensor to measure the RPM(Revolution(s) Per Minute) of DC motor, and display the value on OLED.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
*'''[[Microduino-OLED]]'''&lt;br /&gt;
*'''[[Microduino-Cube-S1]]'''&lt;br /&gt;
*Other equipment&lt;br /&gt;
**USB cable           one &lt;br /&gt;
**Breadboard Jumper   one box&lt;br /&gt;
**NPN triode          one&lt;br /&gt;
**Breadboard          one &lt;br /&gt;
**2.2kΩ registor      one&lt;br /&gt;
**220Ω registor       one&lt;br /&gt;
**Diode               one       &lt;br /&gt;
**Hall sensor         one&lt;br /&gt;
**DC motor            one&lt;br /&gt;
**Potentiometer       one&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File:Microduino霍尔传感器测量电机RPM原理图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/HallSensorSpeedMeasurement&lt;br /&gt;
&lt;br /&gt;
Function description：&lt;br /&gt;
&lt;br /&gt;
attachInterrupt(0, rpm, RISING);  //Bind the interrupt to pin 0 which corresponding to port D2 in microduino. When interrupt happened, invoke function rpm(), the trigger condition is that voltage changed from low to high.&lt;br /&gt;
&lt;br /&gt;
sei(); //Enable the interrupt&lt;br /&gt;
&lt;br /&gt;
cli(); //Disable the interrupt&lt;br /&gt;
&lt;br /&gt;
==Debug==&lt;br /&gt;
Step 1：Copy the code to IDE and compile it.&lt;br /&gt;
&lt;br /&gt;
Step 2：Set up circuit, as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Microduino霍尔传感器测量电机RPM连接图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
Note：&lt;br /&gt;
1：Duing setting up circuit, we will use Microduino-Cube-S1 board. This extension board was designed for OLED, only need plug in the Microduino-Core and Microduino-FT232R to slot and then connect the OLED to corresponding slot on Microduino-Cube-S1.&lt;br /&gt;
                                                                                                     &lt;br /&gt;
2：As far as possible close hall sensor to DB motor, and easy to detect magnetic field changes.&lt;br /&gt;
&lt;br /&gt;
Step 3：Run program.&lt;br /&gt;
&lt;br /&gt;
Step 4：Rotate the potentiometer, observe the value on OLED.&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Rotate the potentiometer, motor will rotate. Hall sensor will induct motor's magnetic field changes regularly, to determine the frequency in one second and calculate the RPM, and then displayed on the OLED.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
http://v.youku.com/v_show/id_XNjkyNzk0MTQw.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jasonsheng</name></author>	</entry>

	</feed>