Color Sensor

来自Microduino Wikipedia
跳转至: 导航搜索

Purpose

This tutorial shows you a way to use mCookie color sensor.

Equipment


  • Other Hardware Equipment
    • USB cable One


Program

[MicroduinoColorSensor]

Debugging

Step 1: Plug Microduino LED light to Microduino-SensorHub’s D6 pin and Microduino color sensor to IIC pin.


Step 2: Connect your PC with USB cabble, download the code and program it to Microduino-CoreUSB.


Step 3: After programming, please make sure the switch of the color sensor is on and watch the change of LED.


Step 4:: LED light changes along the sensor.


Result

You can control the color of LED light via this color sensor.

Video