The product number of Sensor-Color Detector is: MSDT51
Microduino-Color detector is a color detection sensor.
This module adopts TCS3414CS color chip. Based on 8×2 filtered photodiode and 16-bit analog-digital converter, you can measure light or light reflection on the surface of an object to acquire color value.
Introduction of Sensor Pins
|
- Pins of the sensor:
- PIN1: GND
- PIN2: VCC
- General signal pins:
- PIN3(IO1): digital/analog signal
- PIN4(IO2): NC(null)
- Special signal pins:
- If it is IIC: IO1/IO2 are respectively SDA/SCL.
- If it is soft serial port: IO1/IO2 are respectively tx/rx.
|
Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.
|
Features
- With high accuracy and sensitivity;
- With low consumption, long service life and high stability;
- Small and easy to install.
Specification
- Size of the sensor
- Sensor of the board: 23.5mm*13mm
- 1.27mm-spacing 4Pin interface connected to sensorhub
- The CAD drawing of the sensor: File:Sensor CAD.zip
- Technical parameter
- Working temperature: -40 ~ 85 °C
- Connection
- This sensor can be connected to pin I2C of core.
Document
Development
Preparation
Program
[MicroduinoColorSensor]
- Define variable values; RGB reading range.
#define redMax 32767
#define greenMax 32767
#define blueMax 32767
int redValue,greenValue,blueValue;
- readRGB(); Read RGB color function
- Reflect RGB value (0~32767) to (0.225);
redValue=map(red, 0, redMax, 0, 255);
greenValue=map(green, 0, greenMax, 0, 255);
blueValue=map(blue, 0, blueMax, 0, 255);
Hardware Buildup
- Connect the sensor to the IIC interface of the Sensorhub with a wire.
Microduino-Sensorhub
mCookie-Hub
- Connect the core, Sensorhub and the Color Detector to a computer with a USB cable.
- Select the right board and COM port, compile and download. You can refer to AVR Core:Getting started
- Download the program above.
- Select the right port from Tools→Serial Port in Arduino IDE and then download program.
- Open the serial monitor after download. The console will print current RGB value circularly.
Application
Microduino-Color detector is suitable for environment color detection.
Project
Purchase
History
Pictures
Microduino-Temp&Hum Front
|