Things used in this project

Hardware components:
102110017%206
MediaTek Labs LinkIt Smart 7688 Duo
×1
rgb led (genaric)
×1
266 04
Female/Female Jumper Wires
×1
Software apps and online services:
Ide web
Arduino Arduino IDE

Schematics

img_0048_nr6zK9GBCB.JPG
Img 0048 nr6zk9gbcb
img_0046_hRYAzBjSmj.JPG
Img 0046 hryazbjsmj
img_0051_8aJFlqYePt.JPG
Img 0051 8ajflqyept

Code

color fade codeArduino
const int r = 9;
const int g = 10;
const int b = 11;

int re = 0;
int ge = 255;
int be = 0;


void setup() {
  pinMode(r, OUTPUT);
  pinMode(g, OUTPUT);
  pinMode(b, OUTPUT);

  analogWrite(r, 0);
  analogWrite(g, 0);
  analogWrite(b, 255);

  while (re < 255) {
    re++;
    ge--;
    analogWrite(r, re);
    analogWrite(g, ge);
    analogWrite(b, be);
    delay(20);
  }

}

void loop() {
  
  while (ge < 255) {
    ge++;
    re--;
    analogWrite(r, re);
    analogWrite(g, ge);
    analogWrite(b, be);
    delay(20);
  }

  while (be < 255) {
    be++;
    ge--;
    analogWrite(r, re);
    analogWrite(g, ge);
    analogWrite(b, be);
    delay(20);
  }

  while (re < 255) {
    re++;
    be--;
    analogWrite(r, re);
    analogWrite(g, ge);
    analogWrite(b, be);
    delay(20);
  }

}

Credits

Arduinopi2 ofkefo1gyq
Grant

DIY technology hobbyist

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Getting Started with Linkit Smart 7688 DUO
Easy
  • 60
  • 2

Protip

In this video, we will see the specs of the module, configure using the web interface, and access the terminal using SSH.

Unboxing the LinkIt ONE
Easy
  • 541
  • 9

Protip

So you got yourself a LinkIt ONE, and you’re trying to figure it out. Everything on paper looks pretty cool, but it’s a little intimidating.

Dorothy – a project for those away from home
Easy
  • 1,126
  • 24

Full instructions

Show colour-coded distances from a location marker with a portable microcontroller system

NubChat - chat app for devices (and humans) with PubNub
Easy
  • 994
  • 20

Full instructions

NubChat is an app that let communicate with human and devices using pubnub APIs.

Animatronic Horse Mask
Easy
  • 276
  • 6

Full instructions

This project will take your awesome Halloween costume to the next level!! Have a horse mask that can open/close its mouth!!

Program a Linkit Smart 7688 Duo with Arduino IDE
Easy
  • 105
  • 4

Protip

Tutorial for programming the Linkit Smart 7688 Duo.

Add projectSign up / Login