devam_parmar
Published © CC BY

Create Shades With Sierpinski's Triangle and Smart Phone❗❗

Shades using leds are just mind blowing and eye soothing It becomes even more interesting when we control it with smart pho ne.

IntermediateFull instructions provided257
Create Shades With Sierpinski's Triangle and Smart Phone❗❗

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Through Hole Resistor, 150 ohm
Through Hole Resistor, 150 ohm
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Wire, Hook Up
Wire, Hook Up
×1
RGB Diffused Common Cathode
RGB Diffused Common Cathode
×1

Software apps and online services

HTML

Hand tools and fabrication machines

3mm plywood
hand saw
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

ARRANGEMNT OF WHITE LEDS

Now the white leds goes in the inverse triangles

ARRANGEMNT OF RGB LEDS

RGB leds goes everywhere else as shown in the plan .

this makes our triangle look more lively and creative.

BLUETOOTH APP

Now Firstly at the top side you can see a Bluetooth logo and a label called not connected and when you click on the Bluetooth logo you can see a track of nearby Bluetooth devices

CONNECTING TO BLUETOOTH MODULE

We use a BLUETOOTH MODULE HC-05 so when we click on HC-05 the text NOT CONNECTED turns to connected with the red color . And now when we click on different shades the sierpinski's triangle displays it .

soothing shade 1

soothing shade 2

soothing shade 3

Many more shades shown in the video on my YOUTUBE channel so if you like the project please support me by subscribing to my YouTube channel

Schematics

schematic

SO its simple to interpret the rgb pins are connected to different pins of Arduino individually . As the plan was complete now I started placing all the leds in place and soldering them together .For white leds the Positive terminal of all leds and and negative terminal of all leds were connected together . But for rgb leds I used Red wire for red pins blue for blue pins and green for green pins . SO that we don't mess up in the end . And after placing all the RGB leds I started the tedious as well as long process of Soldering .

Code

CODE

Arduino
Code is basically self explanatory if you want more details watch my video on YOUTUBE : GO ELECTRONICS
const int redPin = 3;
const int bluePin = 6;
const int greenPin = 5;
char color = 0;

void setup() {
  // put your setup code here, to run once:
  pinMode(redPin,OUTPUT);
  pinMode(bluePin,OUTPUT);
  pinMode(greenPin,OUTPUT);
  Serial.begin(9600);

  analogWrite(redPin,0);
  analogWrite(bluePin,0);
  analogWrite(greenPin,0);

}

void loop() {
  // put your main code here, to run repeatedly:
  if(Serial.available()>0){
    color = Serial.read();
    char value = char(color);
    if(value != '0')
    { 
      Serial.println(value);
    }
  }
  if(color == 'Y'){
    analogWrite(redPin,0);
    analogWrite(bluePin,255);
    analogWrite(greenPin,0);
  }
  if(color == 'W'){
    analogWrite(redPin,0);
    analogWrite(bluePin,0);
    analogWrite(greenPin,0);
  }
  if(color == 'R'){
    analogWrite(redPin,0);
    analogWrite(bluePin,255);
    analogWrite(greenPin,255);
  }
  if(color == 'P'){
    analogWrite(redPin,0);
    analogWrite(bluePin,80);
    analogWrite(greenPin,70);
  }
  if(color == 'O'){
    analogWrite(redPin,0);
    analogWrite(bluePin,255);
    analogWrite(greenPin,90);
  }
  if(color == 'M'){
    analogWrite(redPin,0);
    analogWrite(bluePin,0);
    analogWrite(greenPin,255);
  }
  if(color == 'C'){
    analogWrite(redPin,255);
    analogWrite(bluePin,0);
    analogWrite(greenPin,0);
  }
  if(color == 'G'){
    analogWrite(redPin,255);
    analogWrite(bluePin,255);
    analogWrite(greenPin,0);
  }
  if(color == 'B'){
    analogWrite(redPin,255);
    analogWrite(bluePin,0);
    analogWrite(greenPin,255);
  }
}

Credits

devam_parmar
1 project • 0 followers

Comments