Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:sensor:ir [2009/08/06 12:16] rellermaaen:examples:sensor:ir [2010/03/29 11:05] (current) – removed raivo.sell
Line 1: Line 1:
-====== Infrared distance sensor ====== 
- 
-This sensor from Sharp is a long-distance IR module; for IR this description is 
-accurate, though at other wavelengths it could act as a mid-distance module. The 
-distance that is easily sensed is 0.2–1.5 m. 
-The output of the sensor is an analogue signal of 2.7–0.5 V (corresponding to the 
-distance). The connection of the sensor is seen in Figures 1 and 2. One interesting 
-feature is the output of the module (see figure). The output of the sensor module 
-will be the same for 9 and 30 cm. This means that it is necessary to consider both the 
-slope of the signal and the direction of motion, to be sure of which side of the peak 
-you are on. 
- 
- 
- 
-{{:examples:sensor:gp2d120xj00f.jpg|}} 
- 
-<code c> 
-/* Labor 2 näide 1 AD muunduri kasutamine 
-Mikael Hellgren/Raivo Sell (2008) 
-*/ 
-#include <avr\io.h> 
-int main(void)  
-{ 
- unsigned int adc10; 
- ADMUX = (3<<REFS0); //select ADC channel 0 with Internal 2.56V Voltage Reference 
- while(1)  
-        { 
-     ADCSRA = 0xC3;  //enable ADC, start conversion at FCPU/8 frequency 
-     adc10 = ADC;    //store ADC value in adc10 variable. 
- } 
-} 
- 
-</code> 
- 
-{{:examples:sensor:graafik.jpg|}} 
-===== External links ===== 
-  * [[http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html|Linearizing Function]] 
  
en/examples/sensor/ir.1249560994.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0