# Title: Opto Encoder Click Board™ ## Description: The Opto Encoder Click Board™ is a linear incremental optical sensor/encoder click 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 Othe Opto Encoder Click Board™. The Opto Encoder Click Board™ features an optical sensor in a tall dome design, which allows more physical space, even for a vertical signal encoding. 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 Click Board™ Work? The optical sensor used on the Opto Encoder Click Board™ is the TCUT1600X01, a tall dome dual channel transmissive optical sensor with phototransistor outputs from Vishay. This sensor is equipped with one infrared LED with the wavelength of 950nm, and two phototransistors. These phototransistors are positioned behind two small slits on the sensor, on the opposite side of the LED. They form two separate channels. When the transistors get illuminated by the LED, they become conductive. The collectors of these transistors are connected to the same pin, while their emitters are routed to two separate output pins of the TCUT1600X01 - E1 and E2. This allows the activity on both channels to be detected by the host MCU. Since the signals of these two output channels are not enough to drive pins on a host MCU, the Click board™ features two additional MOSFETs. These MOSFETs are also used to drive two additional LEDs, which indicate activity of each channel. E1 and E2 pins are routed to the MOSFET gate pins, while the MOSFET drains are routed to the mikroBUS™ PWM and INT pins. These pins are pulled to a LOW logic level by the pull-down resistors, to avoid floating. Signal encoding itself is done by the host MCU. Having two optical sensing channels, the Opto Encoder 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 phototransistors only through these slits. 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. The Opto Encoder Click Board™ can operate with either 3.3V or 5V, allowing to be operated on both 3.3V and 5V MCUs. The onboard SMD jumper, labeled as the VCC SEL is used to select the operating voltage of the Opto Encoder click. Provided Click board™ library offers easy to use functions that can be used to get the encoder position. The provided example application demonstrates the usage of these functions and can be used for further custom development. SPECIFICATIONS Type Optical Applications Automotive optical sensors, accurate position sensor for encoder, sensor for motion, speed, and direction, etc. On-board modules TCUT1600X01 Tall Dome Dual Channel Transmissive Optical Sensor with Phototransistor Outputs Key Features The Opto Encoder 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 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Opto Encoder Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 O1 O1 Output NC 2 RST INT 15 O2 O2 Output NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC Power supply +3.3V 7 3.3V 5V 10 +5V Power supply Ground GND 8 GND GND 9 GND Ground OPTO ENCODER CLICK SPECIFICATIONS Description Min Typ Max Unit IR LED forward voltage 1 1.2 1.4 V Switching Rise Time (5V) - 9 150 µs Switching Fall Time (5V) - 16 150 µs ONBOARD SETTINGS AND INDICATORS Label Name Default Description JP1 - Left Power Supply Voltage Selection: Left position 3V3, right position 5V LD1 PWR Power indication LED O1 O1 Channel 1 activity indication LED O2 O2 Channel 2 activity indication LED ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Optical, Sensor ## Price range: 7.7 - 7.7 GBP ## Link: https://thedebugstore.com/products/opto-encoder-click-board-mikroe-2549-uk ## Compare-at price range: 11.0 - 11.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) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [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-2549, Available: yes, Inventory: 2 ## Metafields - full_description:

The Opto Encoder Click Board™ is a linear incremental optical sensor/encoder click 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 Othe Opto Encoder Click Board™.

The Opto Encoder Click Board™ features an optical sensor in a tall dome design, which allows more physical space, even for a vertical signal encoding. 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 Click Board™ Work?

The optical sensor used on the Opto Encoder Click Board™ is the TCUT1600X01, a tall dome dual channel transmissive optical sensor with phototransistor outputs from Vishay. This sensor is equipped with one infrared LED with the wavelength of 950nm, and two phototransistors. These phototransistors are positioned behind two small slits on the sensor, on the opposite side of the LED. They form two separate channels. When the transistors get illuminated by the LED, they become conductive. The collectors of these transistors are connected to the same pin, while their emitters are routed to two separate output pins of the TCUT1600X01 - E1 and E2. This allows the activity on both channels to be detected by the host MCU.

Since the signals of these two output channels are not enough to drive pins on a host MCU, the Click board™ features two additional MOSFETs. These MOSFETs are also used to drive two additional LEDs, which indicate activity of each channel. E1 and E2 pins are routed to the MOSFET gate pins, while the MOSFET drains are routed to the mikroBUS™ PWM and INT pins. These pins are pulled to a LOW logic level by the pull-down resistors, to avoid floating.

Signal encoding itself is done by the host MCU. Having two optical sensing channels, the Opto Encoder 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 phototransistors only through these slits. 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.

The Opto Encoder Click Board™ can operate with either 3.3V or 5V, allowing to be operated on both 3.3V and 5V MCUs. The onboard SMD jumper, labeled as the VCC SEL is used to select the operating voltage of the Opto Encoder click.

Provided Click board™ library offers easy to use functions that can be used to get the encoder position. The provided example application demonstrates the usage of these functions and can be used for further custom development.

SPECIFICATIONS

Type Optical
Applications Automotive optical sensors, accurate position sensor for encoder, sensor for motion, speed, and direction, etc.
On-board modules TCUT1600X01 Tall Dome Dual Channel Transmissive Optical Sensor with Phototransistor Outputs
Key Features The Opto Encoder 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 3.3V or 5V

PINOUT DIAGRAM

This table shows how the pinout of the Opto Encoder Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

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

OPTO ENCODER CLICK SPECIFICATIONS

Description Min Typ Max Unit
IR LED forward voltage 1 1.2 1.4 V
Switching Rise Time (5V) - 9 150 µs
Switching Fall Time (5V) - 16 150 µs

ONBOARD SETTINGS AND INDICATORS

Label Name Default Description
JP1 - Left Power Supply Voltage Selection: Left position 3V3, right position 5V
LD1 PWR Power indication LED
O1 O1 Channel 1 activity indication LED
O2 O2 Channel 2 activity indication LED

 

- description_tag: The Opto Encoder 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 Click Board™ (MIKROE-2549) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Opto encoder Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 7.92 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 8.9496 - amazon_fr_currency: EUR - amazon_fr_price: 8.9496 - amazon_es_currency: EUR - amazon_es_price: 8.9496 - amazon_nl_currency: EUR - amazon_nl_price: 8.9496 - amazon_it_currency: EUR - amazon_it_price: 8.9496 - amazon_se_curency: SEK - amazon_se_price: 90.288 - amazon_product_id: 8606018712601 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Opto Encoder 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 encoded knob controller or a rotation encoder on a motor shaft, the principle is the same - it includes an optical sensor, just like the one found on Opto Encoder Click Board™. - amazon_long_description:

The Opto Encoder 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 encoded knob controller or a rotation encoder on a motor shaft, the principle is the same - it includes an optical sensor, just like the one found on Opto Encoder Click Board™.

- amazon_main_image: https://www.thedebugstore.com/images/product/lg-opto-encoder-click-board.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-2549 - backorder_label: If no stock shown above, check availability - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- google_product_category: 222 - examples:

We provide a library for the Opto Encoder Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.

Library Description

This library contains basic functions that will allow you to read the sensor.

Key Functions

void optoencoder_init();  - Initialization for the click board.

uint8_t optoencoder_getO1();  - Read the state of encoder channel 1.

uint8_t optoencoder_getO2();  - Read the state of the encoder channel 2.

int16_t optoencoder_getPosition();  - Return's the current position.

Example Description

void applicationTask()
{
 newStep = optoencoder_getPosition();

 if(oldStep != newStep)
 {
 IntToStr(newStep, text);
 mikrobus_logWrite(" Step: ", _LOG_TEXT);
 mikrobus_logWrite(text, _LOG_LINE);
 oldStep = newStep;
 }
}

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, USB UART 2 click or RS232 click 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 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 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Vishay TCUT1600X01 Optical Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-2549 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Vishay Semiconductor Opto Division - device_type: TCUT1600X01 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - 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":"The"},{"type":"text","value":" Opto Encoder Click Board™","bold":true},{"type":"text","value":" is a linear incremental optical sensor/encoder click 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 Othe "},{"type":"text","value":"Opto Encoder Click Board™","bold":true},{"type":"text","value":"."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Opto Encoder Click Board™","bold":true},{"type":"text","value":" features an optical sensor in a tall dome design, which allows more physical space, even for a vertical signal encoding. 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 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The optical sensor used on the "},{"type":"text","value":"Opto Encoder Click Board™","bold":true},{"type":"text","value":" is the TCUT1600X01, a tall dome dual channel transmissive optical sensor with phototransistor outputs from Vishay. This sensor is equipped with one infrared LED with the wavelength of 950nm, and two phototransistors. These phototransistors are positioned behind two small slits on the sensor, on the opposite side of the LED. They form two separate channels. When the transistors get illuminated by the LED, they become conductive. The collectors of these transistors are connected to the same pin, while their emitters are routed to two separate output pins of the TCUT1600X01 - E1 and E2. This allows the activity on both channels to be detected by the host MCU."},{"type":"text","value":""},{"type":"text","value":""},{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Since the signals of these two output channels are not enough to drive pins on a host MCU, the Click board™ features two additional MOSFETs. These MOSFETs are also used to drive two additional LEDs, which indicate activity of each channel. E1 and E2 pins are routed to the MOSFET gate pins, while the MOSFET drains are routed to the mikroBUS™ PWM and INT pins. These pins are pulled to a LOW logic level by the pull-down resistors, to avoid floating."}]},{"type":"paragraph","children":[{"type":"text","value":"Signal encoding itself is done by the host MCU. Having two optical sensing channels, the "},{"type":"text","value":"Opto Encoder Click Board™","bold":true},{"type":"text","value":" 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 phototransistors only through these slits. 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":"The "},{"type":"text","value":"Opto Encoder Click Board™","bold":true},{"type":"text","value":" can operate with either 3.3V or 5V, allowing to be operated on both 3.3V and 5V MCUs. The onboard SMD jumper, labeled as the VCC SEL is used to select the operating voltage of the Opto Encoder click."}]},{"type":"paragraph","children":[{"type":"text","value":"Provided Click board™ library offers easy to use functions that can be used to get the encoder position. The provided example application demonstrates the usage of these functions and can be used for further custom development."}]},{"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\nTCUT1600X01 Tall Dome Dual Channel Transmissive Optical Sensor with Phototransistor Outputs\nKey Features\nThe Opto Encoder 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\n3.3V or 5V"}]},{"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 Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nO1\nO1 Output\nNC\n2\nRST\nINT\n15\nO2\nO2 Output\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nNC\n6\nMOSI\nSDA\n11\nNC\nPower supply\n+3.3V\n7\n3.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 CLICK SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nIR LED forward voltage\n1\n1.2\n1.4\nV\nSwitching Rise Time (5V)\n-\n9\n150\nµs\nSwitching Fall Time (5V)\n-\n16\n150\nµs"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nJP1\n-\nLeft\nPower Supply Voltage Selection: Left position 3V3, right position 5V\nLD1\nPWR\nPower indication LED\nO1\nO1\nChannel 1 activity indication LED\nO2\nO2\nChannel 2 activity indication LED"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Opto Encoder 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 encoded knob controller or a rotation encoder on a motor shaft, the principle is the same - it includes an optical sensor, just like the one found on the Opto Encoder Click Board™.