# Title: Opto Encoder 2 Click Board™ ## Description: This Opto Encoder 2 Click Board™ features a very small optical encoder employing reflective technology for motion control purposes. The encoder houses an LED light source and a photo-detecting circuitry in a single package. It can be used as an optical sensor in automotive applications, motion, speed, and direction sensor, for precise motor shaft positioning applications, knob encoder applications, and similar applications, where dual channel optical sensing can be utilized. How Does The Opto Encoder 2 Click Board™ Work? The optical sensor used on the Opto Encoder 2 Click Board™ is the AEDR-8300, reflective Surface Mount Optical Encoder from Avago Technologies. This sensor combines an emitter and a detector in a single surface mount leadless package. the AEDR-8300 consists of three major components: a light emitting diode (LED) light source, a detector IC consisting photodiodes and lens to focus light beam from the emitter as well as light falling on the detector. The operation of the encoder is based on the principle of optics where the detector photodiodes sense the absence and presence of light. In this case, the rotary/linear motion of an object being monitored is converted to equivalent light pattern via the use of codewheel/codestrip. The Opto Encoder 2 Click Board™ offers options of either single channel or two-channel quadrature digital outputs. Being TTL compatible, the outputs of the AEDR-8300 series can be interfaced directly with MCU. Hence the Opto Encoder 2 Click Board™ provides great design-in flexibility and easy integration into existing systems. A and B pins are routed to the routed to the mikroBUS PWM and INT pins, thus providing the quadrature digital signal. Signal encoding itself is done by the host MCU. Having two optical sensing channels, Opto Encoder 2 Click Board™ has the ability of both speed and direction encoding. The most common usage is encoding of the step motor position: a cylinder with slits is physically mounted above the sensor so that the LED can illuminate the photodiodes only when light hits the reflective surface of the codewheel. By rotating this cylinder, the light beam will be blocked periodically. The single sensor output will be a pulse train, while the cylinder is rotating. Having two photo sensors physically distanced by a small amount, allows the pulse signal of the first sensor to be either delayed or expedited with respect to the pulse on the second sensor, depending on the rotational direction. Since the sensors recommended operating voltage is 5V, the Opto Encoder 2 Click Board™ uses the 5V rail for power supply. The other pins it utilizes are the, before mentioned, Interrupt and PWM pins on mikroBUS socket. This Click Board™ also has a Power LED indicator. The Opto Encoder 2 Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click Board™ is used with MCUs with logic levels of 3.3V. SPECIFICATIONS Type Optical Applications Automotive optical sensors, accurate position sensor for encoder, sensor for motion, speed, and direction, etc. On-board modules Reflective Surface Mount Optical Encoder from Avago Technologies Key Features The Opto Encoder 2 Click Board™ features a precise detection of the position, speed, or rotational angle of an object. It is able to detect the direction of the movement since it features two photo-sensing elements. Interface GPIO Compatibility mikroBUS Click Board™ size S (28.6 x 25.4 mm) Input Voltage 5V PINOUT DIAGRAM This table shows how the pinout of the Opto Encoder 2 Click Board™ s Pin Pin Notes NC 1 AN PWM 16 B Output B NC 2 RST INT 15 A Output A NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC NC 7 +3.3V 5V 10 +5V Power Supply Ground GND 8 GND GND 9 GND Ground OPTO ENCODER 2 Click Board™ SPECIFICATIONS Description Min Typ Max Unit Supply Voltage 4.5 5 5.5 V LED Current 13 15 18 µs Count Frequency - - 30 kHZ Resolution - 75 - LPI ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Optical, Sensor ## Price range: 21.7 - 21.7 GBP ## Link: https://thedebugstore.com/products/opto-encoder-2-click-board-mikroe-3634-uk ## Compare-at price range: 31.0 - 31.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Optical Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/optical-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-3634, Available: yes, Inventory: 2 ## Metafields - full_description:

This Opto Encoder 2 Click Board™ features a very small optical encoder employing reflective technology for motion control purposes. The encoder houses an LED light source and a photo-detecting circuitry in a single package. It can be used as an optical sensor in automotive applications, motion, speed, and direction sensor, for precise motor shaft positioning applications, knob encoder applications, and similar applications, where dual channel optical sensing can be utilized.

How Does The Opto Encoder 2 Click Board™ Work?

The optical sensor used on the Opto Encoder 2 Click Board™ is the AEDR-8300, reflective Surface Mount Optical Encoder from Avago Technologies. This sensor combines an emitter and a detector in a single surface mount leadless package. the AEDR-8300 consists of three major components: a light emitting diode (LED) light source, a detector IC consisting photodiodes and lens to focus light beam from the emitter as well as light falling on the detector. The operation of the encoder is based on the principle of optics where the detector photodiodes sense the absence and presence of light. In this case, the rotary/linear motion of an object being monitored is converted to equivalent light pattern via the use of codewheel/codestrip.

Opto Encoder 2 Click Board™

The Opto Encoder 2 Click Board™ offers options of either single channel or two-channel quadrature digital outputs. Being TTL compatible, the outputs of the AEDR-8300 series can be interfaced directly with MCU. Hence the Opto Encoder 2 Click Board™ provides great design-in flexibility and easy integration into existing systems. A and B pins are routed to the routed to the mikroBUS PWM and INT pins, thus providing the quadrature digital signal.

Signal encoding itself is done by the host MCU. Having two optical sensing channels, Opto Encoder 2 Click Board™ has the ability of both speed and direction encoding. The most common usage is encoding of the step motor position: a cylinder with slits is physically mounted above the sensor so that the LED can illuminate the photodiodes only when light hits the reflective surface of the codewheel. By rotating this cylinder, the light beam will be blocked periodically. The single sensor output will be a pulse train, while the cylinder is rotating. Having two photo sensors physically distanced by a small amount, allows the pulse signal of the first sensor to be either delayed or expedited with respect to the pulse on the second sensor, depending on the rotational direction.

Since the sensors recommended operating voltage is 5V, the Opto Encoder 2 Click Board™ uses the 5V rail for power supply. The other pins it utilizes are the, before mentioned, Interrupt and PWM pins on mikroBUS socket. This Click Board™ also has a Power LED indicator.

The Opto Encoder 2 Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click Board™ is used with MCUs with logic levels of 3.3V.

SPECIFICATIONS

Type Optical
Applications Automotive optical sensors, accurate position sensor for encoder, sensor for motion, speed, and direction, etc.
On-board modules Reflective Surface Mount Optical Encoder from Avago Technologies
Key Features The Opto Encoder 2 Click Board™ features a precise detection of the position, speed, or rotational angle of an object. It is able to detect the direction of the movement since it features two photo-sensing elements.
Interface GPIO
Compatibility mikroBUS
Click Board™ size S (28.6 x 25.4 mm)
Input Voltage 5V

 

PINOUT DIAGRAM

This table shows how the pinout of the Opto Encoder 2 Click Board™

s Pin mikroBUS logo.png Pin Notes
  NC 1 AN PWM 16 B Output B
  NC 2 RST INT 15 A Output A
  NC 3 CS RX 14 NC  
  NC 4 SCK TX 13 NC  
  NC 5 MISO SCL 12 NC  
  NC 6 MOSI SDA 11 NC  
  NC 7 +3.3V 5V 10 +5V Power Supply
Ground GND 8 GND GND 9 GND Ground

OPTO ENCODER 2 Click Board™ SPECIFICATIONS

Description Min Typ Max Unit
Supply Voltage 4.5 5 5.5 V
LED Current 13 15 18 µs
Count Frequency - - 30 kHZ
Resolution - 75 - LPI

ONBOARD SETTINGS AND INDICATORS

Label Name Default  Description
LD1 PWR - Power LED Indicator

 

- description_tag: The Opto Encoder 2 Click Board™ is a linear incremental optical sensor/encoder Click Board™ which can be used for the movement or rotation encoding. Available from Debug Store UK. - title_tag: MikroE Opto Encoder 2 Click Board™ (MIKROE-3634) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Opto Encoder 2 Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 22.88 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 25.8544 - amazon_fr_currency: EUR - amazon_fr_price: 25.8544 - amazon_es_currency: EUR - amazon_es_price: 25.8544 - amazon_nl_currency: EUR - amazon_nl_price: 25.8544 - amazon_it_currency: EUR - amazon_it_price: 25.8544 - amazon_se_curency: SEK - amazon_se_price: 260.832 - amazon_product_id: 8606018716272 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Opto Encoder 2 Click Board™ is a linear incremental optical sensor/encoder Click Board™ which can be used for the movement or rotation encoding. Encoders of this type are widely used for many applications, which involve precise detection of the position, speed, or rotational angle of an object. Rotary encoders are often used for various types of controllers on many different devices. Whether it be a rotary encoder knob controller or an angle encoder on a motor shaft, the principle is the same - it includes an optical sensor, just like the one found on Opto Encoder 2 Click Board™. - amazon_long_description:

Opto Encoder 2 Click Board™

- amazon_main_image: https://www.thedebugstore.com/images/product/lg-opto-encoder-2-click-3634-front_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-opto-encoder-2-click-3634-back_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-opto-encoder-2-click-3634-in-use_1.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-opto-encoder-2-click-3634-in-use_1.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-3634 - backorder_label: If no stock shown above, check availability - google_product_category: 222 - examples:

We provide a library for the Opto Encoder 2 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Library Description

Library contains functions for getting INT(Channel A) and PWM (Channel B) pin states Library contains function for incrementing/decrementing encoder position Library contains function for resetting encoder position counter to 0(zero) Library contains function for getting current encoder position

Key Functions

Example Description

The application is composed of three sections :

void applicationTask( )
{
 stop_flag = optoencoder2_isr(100);
 encoderPosition = optoencoder2_getPosition( );
 if (stop_flag == 0)
 {
 LongToStr( encoderPosition, text );
 mikroBUS_logWrite( "> pos : ", _LOG_TEXT );
 mikroBUS_logWrite( text, _LOG_LINE );
 }
}

The full application code, and ready to use projects can be found on our LibStock page.

Other mikroE Libraries used in the example:

Additional Notes and Information

Depending on the development board you are using, you may need a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.

MIKROSDK

The Opto Encoder 2 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click Board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.

- attachments: [{"download_file":[{"download_file":"Opto Encoder 2 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Avago Technologies AEDR-8300 Optical Encoder Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-3634 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Broadcom Limited - device_type: AEDR-8300-1K2 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- target_keyword: Opto Encoder 2 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"This "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true,"italic":true},{"type":"text","value":" features a very small optical encoder employing reflective technology for motion control purposes. The encoder houses an LED light source and a photo-detecting circuitry in a single package. It can be used as an optical sensor in automotive applications, motion, speed, and direction sensor, for precise motor shaft positioning applications, knob encoder applications, and similar applications, where dual channel optical sensing can be utilized."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Opto Encoder 2 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The optical sensor used on the "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true},{"type":"text","value":" is the AEDR-8300, reflective Surface Mount Optical Encoder from Avago Technologies. This sensor combines an emitter and a detector in a single surface mount leadless package. the AEDR-8300 consists of three major components: a light emitting diode (LED) light source, a detector IC consisting photodiodes and lens to focus light beam from the emitter as well as light falling on the detector. The operation of the encoder is based on the principle of optics where the detector photodiodes sense the absence and presence of light. In this case, the rotary/linear motion of an object being monitored is converted to equivalent light pattern via the use of codewheel/codestrip."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true},{"type":"text","value":" offers options of either single channel or two-channel quadrature digital outputs. Being TTL compatible, the outputs of the AEDR-8300 series can be interfaced directly with MCU. Hence the Opto Encoder 2 Click Board™ provides great design-in flexibility and easy integration into existing systems. A and B pins are routed to the routed to the mikroBUS PWM and INT pins, thus providing the quadrature digital signal."}]},{"type":"paragraph","children":[{"type":"text","value":"Signal encoding itself is done by the host MCU. Having two optical sensing channels, Opto Encoder 2 Click Board™ has the ability of both speed and direction encoding. The most common usage is encoding of the step motor position: a cylinder with slits is physically mounted above the sensor so that the LED can illuminate the photodiodes only when light hits the reflective surface of the codewheel. By rotating this cylinder, the light beam will be blocked periodically. The single sensor output will be a pulse train, while the cylinder is rotating. Having two photo sensors physically distanced by a small amount, allows the pulse signal of the first sensor to be either delayed or expedited with respect to the pulse on the second sensor, depending on the rotational direction."}]},{"type":"paragraph","children":[{"type":"text","value":"Since the sensors recommended operating voltage is 5V, the "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true},{"type":"text","value":" uses the 5V rail for power supply. The other pins it utilizes are the, before mentioned, Interrupt and PWM pins on mikroBUS socket. This Click Board™ also has a Power LED indicator."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true},{"type":"text","value":" is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click Board™ is used with MCUs with logic levels of 3.3V."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nOptical\nApplications\nAutomotive optical sensors, accurate position sensor for encoder, sensor for motion, speed, and direction, etc.\nOn-board modules\nReflective Surface Mount Optical Encoder from Avago Technologies\nKey Features\nThe Opto Encoder 2 Click Board™ features a precise detection of the position, speed, or rotational angle of an object. It is able to detect the direction of the movement since it features two photo-sensing elements.\nInterface\nGPIO\nCompatibility\nmikroBUS\nClick Board™ size\nS (28.6 x 25.4 mm)\nInput Voltage\n5V"}]},{"type":"paragraph","children":[{"type":"text","value":" "}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"Opto Encoder 2 Click Board™","bold":true}]},{"type":"paragraph","children":[{"type":"text","value":"s\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nB\nOutput B\nNC\n2\nRST\nINT\n15\nA\nOutput A\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nNC\n6\nMOSI\nSDA\n11\nNC\nNC\n7\n+3.3V\n5V\n10\n+5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"OPTO ENCODER 2 Click Board™ SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n4.5\n5\n5.5\nV\nLED Current\n13\n15\n18\nµs\nCount Frequency\n-\n-\n30\nkHZ\nResolution\n-\n75\n-\nLPI"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\n Description\nLD1\nPWR\n-\nPower LED Indicator"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Opto Encoder 2 Click Board™ is a linear incremental optical sensor/encoder Click Board™ which can be used for the movement or rotation encoding. Encoders of this type are widely used for many applications, which involve precise detection of the position, speed, or rotational angle of an object. Rotary encoders are often used for various types of controllers on many different devices. Whether it be a rotary encoder knob controller or an angle encoder on a motor shaft, the principle is the same - it includes an optical sensor, just like the one found on the Opto Encoder 2 Click Board™.