<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geeetech.com/index.php?action=history&amp;feed=atom&amp;title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino</id>
	<title>SHARP IR Ranger Sensor GP2D12 for Arduino - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geeetech.com/index.php?action=history&amp;feed=atom&amp;title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino"/>
	<link rel="alternate" type="text/html" href="https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;action=history"/>
	<updated>2026-04-16T12:42:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1312&amp;oldid=prev</id>
		<title>Admin: /* Introduction */</title>
		<link rel="alternate" type="text/html" href="https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1312&amp;oldid=prev"/>
		<updated>2012-05-25T02:08:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Introduction&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:08, 25 May 2012&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;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[File:GP2D12 1.jpg]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[File:GP2D12 1.jpg&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|250px&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Sharp GP2D12 is an analog distance sensor that uses infrared to detect an object between 10 cm and 80 cm away. The GP2D12 provides a non-linear voltage output in relation to the distance an object is from the sensor and interfaces easily using any analog to digital converter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Sharp GP2D12 is an analog distance sensor that uses infrared to detect an object between 10 cm and 80 cm away. The GP2D12 provides a non-linear voltage output in relation to the distance an object is from the sensor and interfaces easily using any analog to digital converter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1311&amp;oldid=prev</id>
		<title>Admin: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1311&amp;oldid=prev"/>
		<updated>2012-05-25T02:07:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:07, 25 May 2012&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-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is the guide illustrates how to connect an Arduino to the ADXL335 breakout board.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is the guide illustrates how to connect an Arduino to the ADXL335 breakout board.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[File:GP2D12 wiring.jpg|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;500px&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[File:GP2D12 wiring.jpg|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;400px&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example code==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example code==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1310&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;==Introduction== File:GP2D12 1.jpg  The Sharp GP2D12 is an analog distance sensor that uses infrared to detect an object between 10 cm and 80 cm away. The GP2D12 provides ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geeetech.com/index.php?title=SHARP_IR_Ranger_Sensor_GP2D12_for_Arduino&amp;diff=1310&amp;oldid=prev"/>
		<updated>2012-05-25T02:07:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Introduction== &lt;a href=&quot;/index.php/File:GP2D12_1.jpg&quot; title=&quot;File:GP2D12 1.jpg&quot;&gt;File:GP2D12 1.jpg&lt;/a&gt;  The Sharp GP2D12 is an analog distance sensor that uses infrared to detect an object between 10 cm and 80 cm away. The GP2D12 provides ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introduction==&lt;br /&gt;
[[File:GP2D12 1.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Sharp GP2D12 is an analog distance sensor that uses infrared to detect an object between 10 cm and 80 cm away. The GP2D12 provides a non-linear voltage output in relation to the distance an object is from the sensor and interfaces easily using any analog to digital converter.&lt;br /&gt;
&lt;br /&gt;
==Specification==&lt;br /&gt;
*Measuring range : 10 to 80 cm&lt;br /&gt;
*The maximum allowable Angle : &amp;gt; 40 °&lt;br /&gt;
*The power supply voltage : 4.5 to 5.5 V&lt;br /&gt;
*The average power consumption : 35 mA&lt;br /&gt;
*Peak power consumption : about 200 mA&lt;br /&gt;
*The frequency of updates/cycle : 25 Hz/40 ms&lt;br /&gt;
*Analog output noise : &amp;lt; 200 mV&lt;br /&gt;
&lt;br /&gt;
==Document==&lt;br /&gt;
[http://www.geeetech.com/Documents/SHARP%20GPD2D12%20datasheet.PDF SHARP GPD2D12 datasheet]&lt;br /&gt;
&lt;br /&gt;
==Pinout==&lt;br /&gt;
[[File:GP2D12 pin.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Here is the guide illustrates how to connect an Arduino to the ADXL335 breakout board.&lt;br /&gt;
&lt;br /&gt;
[[File:GP2D12 wiring.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
==Example code==&lt;br /&gt;
 char GP2D12;&lt;br /&gt;
 char a,b;&lt;br /&gt;
 void setup()&lt;br /&gt;
 {&lt;br /&gt;
  Serial.begin(9600); //&lt;br /&gt;
 }&lt;br /&gt;
 void loop()&lt;br /&gt;
 {&lt;br /&gt;
  int val;&lt;br /&gt;
  GP2D12=read_gp2d12_range(0);&lt;br /&gt;
  a=GP2D12/10;&lt;br /&gt;
  b=GP2D12%10;&lt;br /&gt;
  val=a*10+b;&lt;br /&gt;
  if(val&amp;gt;10&amp;amp;&amp;amp;val&amp;lt;80)&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(a,DEC);//&lt;br /&gt;
    Serial.print(b,DEC);//&lt;br /&gt;
    Serial.println(&amp;quot;cm&amp;quot;);//&lt;br /&gt;
  }&lt;br /&gt;
  else Serial.println(&amp;quot;over&amp;quot;);//&lt;br /&gt;
  delay(50);&lt;br /&gt;
 }&lt;br /&gt;
 float read_gp2d12_range(byte pin)&lt;br /&gt;
 {&lt;br /&gt;
  int tmp;&lt;br /&gt;
  tmp = analogRead(pin);&lt;br /&gt;
  if (tmp &amp;lt; 3)return -1;&lt;br /&gt;
  return (6787.0 /((float)tmp - 3.0)) - 4.0;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to buy==&lt;br /&gt;
Click here to buy [http://www.geeetech.com/sharp-ir-ranger-sensor-gp2d12-for-arduino-p-501.html SHARP IR Ranger Sensor GP2D12 ]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>