Multicolored Light Fringe Device
by prayag nao in Circuits > Arduino
1212 Views, 11 Favorites, 0 Comments
Multicolored Light Fringe Device
Hello everyone
all of you have ever heard about light fringes or you must have done some practical on it in your college/school.as we know fringes are made by the interference of light from as a result we get maxima and minima.These maxima and minima are called fringes.
Today we are going to make a finger maker device from very basic materials.i hope you will like it.lets start....
Things You Will Need..........
=> A cardboard box(you can use any material's box).
=> A cutter.
Buy from here:
http://www.ebay.in/itm/ACRYLIC-CUTTER-WITH-3BLADES...
=> A cello tap.
=> An aluminum foil.
Buy from here:
http://www.ebay.in/itm/FOOD-PACKING-ALUMINIUM-FOIL...
=> An Arduino UNO.
Buy from here:
http://www.mouser.com/new/arduino/arduino-uno/
=> A Bluetooth module(HC-05).
Buy from here:
http://www.rhydolabz.com/wireless-bluetooth-ble-c-...
=> An RGB LED module.
Buy from here
https://www.sunfounder.com/rgb-led-module.html
=> Some male to female connecting wires.
=> A pen (Transparent recommend because it will never absorb any light) .
=> A power source (I am using my MacBook as the power source ,you can use anything).
Step-1
=>Firstly remove refill of pen and cover whole the pen with aluminum foil except both openings.
=> now make a rectangular hole and a circular hole of the size of Arduino power connector and pen respectively as shown in pictures.
=> Now insert LED module's LED into back opening of the pen as shown in pictures and fix it with the help of tape.
=> Now insert the pen into the circular hole as shown picture and fix it with tape.
Connections...
=>Now just connect Bluetooth and RGB LED module to Arduino Uno as shown in the figure.
Connections..........
Arduino Rx => Bluetooth Tx
Arduino Tx => Bluetooth Rx
Arduino 5v => Bluetooth VCC
Arduino GND => Bluetooth GND
Arduino pin 2 => LED R
Arduino pin 3 => LED G
Arduino pin 4 => LED B
Arduino GND => LED GND
Programming......
=> Open Arduino IDE,if you don't have you can download from here
=> Now copy and paste this program into Arduino IDE and upload to Arduino or you can download code from here.
https://drive.google.com/open?id=0B4OACSDu386YX3RB...
void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW); }
void loop() {
while (Serial.available())
{
char c=(char)
Serial.read();
Serial.write(c);
delay(300);
if(c=='R')
{
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
}
if(c=='W')
{ digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
}
if(c=='B')
{
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,HIGH); }
if(c=='G') {
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,LOW); }
if(c=='o') {
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW); }
if(c=='O') {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
}
}
}
Mobile App
You don't need to worry about app development. Just download the app from given link below
(If you want to develop app then comments below i will send you app code).
Final Step
Just close the box and connect Arduino to the power source and pair Bluetooth HC-05 with app and enjoy.....