Color Sensor

From Microduino Wiki
Revision as of 04:01, 12 June 2015 by 1304410487@qq.com (talk) (Created page with " {| style="width: 800px;" |- | ==Purpose== This tutorial shows you a way to use mCookie color sensor. ==Equipment== *'''Microduino-CoreUSB''' *'''Microduino-Lantern'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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