Page 1
Built-in Color Sensor B5WC Sample Code Operation Manual Built-in Color Sensor E613-E1-01...
Page 2
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 without notice. B5WC Sample Code Operation Manual(E613-E1-01)
4 HOW TO USE THE APPLICATION ..........5 4.1 C ..............5 ONNECTION 4.2 D IDE ............. 5 OWNLOAD THE RDUINO 4.3 O .............. 6 AMPLE 4.4 U ............. 7 PLOAD TO RUDINO 4.5 D ............... 9 ATA ACQUISITION B5WC Sample Code Operation Manual(E613-E1-01)
(hereafter referred to as the “Sample Code”). 1 Outline The 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.
3 Operating Environment The Sample Code was tested in the environment described below. Arduino Mega 2560 R3 Arduino board Arduino Uno R3 1.8.7 Arduino IDE Windows 10 Professional 64-bit B5WC Sample Code Operation Manual(E613-E1-01)
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 B5WC Sample Code Operation Manual(E613-E1-01)
4.3 Open Sample Code Start the Arduino IDE and open the Sample Code. [File]-[Open]-[B5WC_SampleProject.ino] B5WC 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] B5WC Sample Code Operation Manual(E613-E1-01)
Page 9
Click on "Verify" to make sure there are no errors. Click "Upload" and confirm that the message "Done uploading" is displayed on the screen. B5WC Sample Code Operation Manual(E613-E1-01)
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%. B5WC Sample Code Operation Manual(E613-E1-01)
Need help?
Do you have a question about the B5WC and is the answer not in the manual?
Questions and answers