background image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E613-E1-01 

1122(1122) 

Summary of Contents for B5WC

Page 1: ...E613 E1 01 Built in Color Sensor B5WC Sample Code Operation Manual Built in Color Sensor ...

Page 2: ...t service or company names are trademarks or registered trademarks of their respective company Revision History Revision Year Month Contents A 2022 11 First Release Additional Notes You may not reproduce the contents of this document without proper written authorization from OMRON Corporation Note that the contents of this document or specifications for B5WC noted in this document may change witho...

Page 3: ... E613 E1 01 2 Contents INTRODUCTION 3 1 OUTLINE 3 2 CAUTION 3 3 OPERATING ENVIRONMENT 4 4 HOW TO USE THE APPLICATION 5 4 1 CONNECTION 5 4 2 DOWNLOAD THE ARDUINO IDE 5 4 3 OPEN SAMPLE CODE 6 4 4 UPLOAD TO ARUDINO 7 4 5 DATAACQUISITION 9 ...

Page 4: ...he Sample Code is used to evaluate the main functions of the OMRON built in Color Sensor Module B5WC hereafter referred to as the Device on an Arduino in combination with your PC 2 Caution Make sure to read the Device s data sheet before using it Make sure to read the Device s data sheet when verifying its proper operation Make sure to follow the instructions in the Device s data sheet when using ...

Page 5: ... Operation Manual E613 E1 01 4 3 Operating Environment The Sample Code was tested in the environment described below Arduino board Arduino Mega 2560 R3 Arduino Uno R3 Arduino IDE 1 8 7 OS Windows 10 Professional 64 bit ...

Page 6: ...Connect the Device to Arduino and Arduino to PC Connect the Arduino to the PC after connecting the Device to the Arduino Example of connection between the Device and Arduino UNO 4 2 Download the Arduino IDE Download the Arduino IDE from the following URL https www arduino cc en Main Software ...

Page 7: ...B5WC Sample Code Operation Manual E613 E1 01 6 4 3 Open Sample Code Start the Arduino IDE and open the Sample Code File Open B5WC_SampleProject ino ...

Page 8: ... Sample Code Operation Manual E613 E1 01 4 4 Upload to Arudino Configure connection settings Tools Board Select the Arduino board you are using Tools Port Select the USB port to which the Arduino is connected ...

Page 9: ...B5WC Sample Code Operation Manual E613 E1 01 8 Click on Verify to make sure there are no errors Click Upload and confirm that the message Done uploading is displayed on the screen ...

Page 10: ...n the Serial Monitor window The communication speed of the Serial Monitor should be 115200 baud The data display shows R voltage G voltage B voltage R ratio G ratio and B ratio in order from left to right R ratio G ratio and B ratio show the ratio of each RGB output voltage when the highest value among the RGB output voltage values is 100 ...

Page 11: ...E613 E1 01 1122 1122 ...

Reviews: