Omron B5WC User Manual

Built-in color sensor
Hide thumbs Also See for B5WC:

Advertisement

Quick Links

Built-In Color Sensor
B5WC
User's Manual
Built-In Color Sensor
E612-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron B5WC

  • Page 1 Built-In Color Sensor B5WC User’s Manual Built-In Color Sensor E612-E1-01...
  • Page 2 Note Unauthorized copy, replication, and/or reprint of a part or all of this manual is prohibited. - The content of this manual is subject to change without notice for the purpose of improvement. - If you have any question or comments, please contact our sales representative listed at the end of this manual.
  • Page 3: Table Of Contents

    Table of Contents Safety Precautions••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••4 1 Overview••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••7 2 Structure••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••7 3 Dimensions•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••7 4 Product Features•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••8 5 Usage (Detection) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••9 6 Usage (Circuit) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••12 7 Installation Method••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••14 8 Frequently Asked Questions••••••••••••••••••••••••••••••••••••••••••••••••••16 Appendix: Color Sensor Operation Overview••••••••••••••••••••••••••••••••••• 17 B 5 W C B u i l t - I n C o l o r S e n s o r U s e r ' s M a n u a l ( E 6 1 2 - E 1 - 0 1 )
  • Page 4: Safety Precautions

    Safety Precautions Faulty Wiring To ensure safe operation, be sure to read and follow the Terms and Conditions Agreement. Do not miswire such as the polarity of the power supply ⚠WARNING voltage. Rupture or burning may occur. These products cannot be used in safety Example 1.
  • Page 5 Precautions for Correct Use ● Handling during Wiring ● Mounting Surge Prevention 1. This sensor is designed to be built into equipment. 1. If a force is applied to the connection area between the Design the equipment structure so that ambient light terminal and connector by bending or pulling the cable does not enter into the sensor.
  • Page 6 Countermeasures for Switching Power Supplies Effects of Inductive Noise Take either of the following countermeasures as required When there is inductive noise in the sensor mounting if connecting a modulated-light sensor to a switching frame (metal), the output of the sensor may be affected. power supply.
  • Page 7: Overview

    1 Overview This User's Manual describes the usage and special notes of B5WC, the color sensor to build into equipment. This document is intended to supplement the datasheet and product specifications, which should be referenced when using the sensor. 2 Structure...
  • Page 8: Product Features

    4 Product Features The color sensor is a type of reflective optical sensor that detects the color of the sensed object by the received R/G/B light intensity. These received RGB light measurements allows judgment of the color of sensed objects. Shown below is the Munsell color detection capacity diagram indicating the ratio of each voltage value to the maximum voltage value when the maximum output voltage value of the color sensor is set as 100%.
  • Page 9: Usage (Detection)

    Since this sensor is used in applications to detect various objects, the output voltage value is defined by a gray color reference board that is achromatic. Omron uses gray as its standard because gray is a color in which all RGB wavelength regions are theoretically equal.
  • Page 10 ■Sampling period and average number of times This sensor acquires RGB values at each sampling period of 1 msec. An additive average filter process is then performed in the sensor to update the output RGB values. Shown below is the relationship between the average number of times and the data update cycle.
  • Page 11 20 to 50mm. Condition (2) Reflector material and surface condition Select the reflector with as uniform a surface condition as possible. For reference, OMRON uses a reflector of "SUS430/surface polished (#240 or #320 equivalent)" in its measurements.
  • Page 12: Usage (Circuit)

    * You must determine the compatibility of the connector on the harness side and that on this sensor. Note that the connector terminal (4) of B5WC-VB2322-1 is a blank one. Since it is not connected to the internal circuit of the sensor, the operation of the sensor is not affected even if no wire is connected to the terminal (4).
  • Page 13 2. Connection example This sensor is designed for I C communication. Electrical connection examples are shown below. Case 1: 5V MCU direct connection (when microcontroller power supply voltage is the same) Case 2: 3.3V MCU (I C port is 5V tolerant) Case 3: 3.3V MCU (not 5V tolerant) For details of the components specifications, refer to the product specifications B5W-VB2322-1, Sections 10 to 12.
  • Page 14: Installation Method

    7 Installation Method 1. This sensor can be mounted in two directions, X and Y. Refer to the product specifications for details of mounting. * Use M3 screws, spring washers, and flat washers and tighten with torque of 0.54(N⋅m). 2. The structure of this sensor should be designed with equipment to prevent ambient light from entering. If the sensor's light-emitting or light-receiving block must be exposed to the outside of the equipment for application purposes, the effect of ambient light can be reduced by installing the sensor in such a way that no ambient light enters from the light-receiving path direction.
  • Page 15 * Select a reflector that can ensure the received light intensity of the color sensor. For reference, OMRON uses a reflector of "SUS430/surface polished (#240 or #320 equivalent)".
  • Page 16 For the above examples as well as other applications, if you have any questions about specific judgment methods using RGB values, please contact us for technical consultation. B 5 W C B u i l t - I n C o l o r S e n s o r U s e r ' s M a n u a l ( E 6 1 2 - E 1 - 0 1 )
  • Page 17: Frequently Asked Questions

    8 Frequently Asked Questions Q: Can the sensor detect color differences of an object with a glossy surface? If a surface of an object to be detected is glossy, some of the white LED light emitted from the sensor will reflect off the surface and enter the photosensitive area. Since this light does not contain color information of the object, it is difficult to accurately detect the color information of the object if it is glossy.
  • Page 18: Appendix: Color Sensor Operation Overview

    Appendix: Color Sensor Operation Overview ■(Reference) Setting flowchart The initial configuration example of this sensor is shown below. We recommend that you follow the flowchart below. Start Apply power to this sensor Wait for stable power supply (100ms) Write protect disable setting Write protect disabled (0x5A) to data address: 0x00 via I²C communication Average number setting Write any average number of times (1~50 times) to data address: 0x00 via I²C communication...
  • Page 19 Defining I C Bus Timing Characteristics of SDA and SCL Bus Lines symbol parameter unit SCL clock frequency hold time (repeated) START condition μs HD;STA LOW period of the SCL clock μs HIGH period of the SCL clock μs HIGH set-up time for a repeated START condition μs SU;STA...
  • Page 20 (1) Write 1. Operation is started by detecting the START condition. 2. The mode is switched to Write mode by receiving data with the Write bit ("0") added to the slave address (bits 7 to 1). 3. Set the received Write data to the received data address. (In the case of multiple consecutive Write bytes, when Write data is received in succession, Write data is set in sequence with the received data address at the top.) 4.
  • Page 21 (3) Checksum The calculated checksum is output as the final byte of the transmitted data using the following calculation method. [Calculation Method] Initial value: 0xFF Formula: XOR of all Read data [Example calculations] An example of reading 6 bytes of RGB values is shown below. Read data: data 0x02...
  • Page 22 C data address ■I The following are data address assignments and precautions for I C communication. data data summary initial remarks address block value (*2) (*1) (*4) (*3) Permit/Prohibit writing to writable data addresses 0x00 Protection Write 0x5A (*5) 0x5A:Write Protect Disabled features Protect Other than 0x5A: Write Protect enabled...
  • Page 23 Hoffman Estates, IL 60169 U.S.A. Tel: (31) 2356-81-300 Fax: (31) 2356-81-388 Tel: (1) 847-843-7900 Fax: (1) 847-843-7787 ©OMRON Corporation 2022 All Rights Reserved. OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. In the interest of product improvement, 438B Alexandra Road, #08-01/02 Alexandra Room 2211, Bank of China Tower, specifications are subject to change without notice.

Table of Contents