MikroElektronika
IR distance click
IR distance click
SKU:MIKROE-1991
Couldn't load pickup availability
Share
IR distance click carries Sharp’s GP2Y0A60SZ0F distance measuring sensor, which comprises of an integrated PSD (position sensitive detector), an infrared LED and a signal processing circuit. The measuring range is between 10 and 150 cm. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target MCU over RST and AN pin on the mikroBUS™ line.
Essential features
The sensor on IR distance click is not easily influenced by variations caused by the reflectivity of the object whose distance is measured (it won’t be able, however, to detect the distance of a mirror). For optimal operation the lens should be kept clean, because dust, water or oil on its surface can impact the precision of the sensor.
With these precautions in mind, the IR distance can be used for designing touch-less switches, various energy-saving devices, but it’s also suitable for robotics.
How it works
The click board outputs an analog voltage corresponding to the distance of the object (through the mikroBUS AN pin). An Enable (EN) pin is also utilized.
SMD jumpers
IR distance click features an SMD jumper (zero ohm resistor) that let’s you switch between a 3.3V or a 5V power supply.
MIKROE-1991
Specification
Type | Optical |
Applications | Touch-less switches, various energy-saving devices, robots |
On-board modules | Sharp’s GP2Y0A60SZ0F distance measuring sensor |
Key Features | 10 to 150 cm measurement range. Sensor consists of PSD, IR LED, and signal processing IC |
Key Benefits | Long range. Not easily influenced by reflectivity of object |
Interface | GPIO |
Input Voltage | 3.3V or 5V |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on IR distance click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Programming
Code examples for IR distance click, written for MikroElektronika hardware and compilers are available on Libstock.
This example initializes the ADC, UART and the IR distance board, and in an endless loop measures distance in centimetres and displays the result on the UART port.
01 void system_init() 02 { 03 ANSELA = 0x04; 04 TRISA = 0x04; 05 LATA = 0; 06 07 ADC_Init(); 08 UART1_Init( 57600 ); 09 ir_measure_init( ADC_Read, 2, RESOLUTION_10 ); 10 UART1_Write_Text( "Here and Readyrn" ); 11 } 12 13 void main() 14 { 15 char tmp_text[20]; 16 17 system_init(); 18 19 while( 1 ) 20 { 21 sprintf( tmp_text, "Distance is: %4.2frn", ir_measure_cm() ); 22 UART1_Write_Text( tmp_text ); 23 Delay_ms( 500 ); 24 } 25 }
Key features
- 10 to 150 cm measurement range
- GP2Y0A60SZ0F sensor
- Interface: AN, RST
- 3.3V or 5V power supply




New Products
-
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / perSold out -
Sold out
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / perSold out -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / perSold out -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / perSold out -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / perSold out -
Sold out
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 149.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 12" (30 cm)
Vendor:POLOLURegular price Rs. 279.00Regular priceUnit price / perSold out -
Wires with Pre-Crimped Terminals 10-Pack M-F 6"
Vendor:POLOLURegular price Rs. 339.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color M-M 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color F-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out