GGIT Summer Camp,rainbow Led Lamp Project Made by Maria Mereuța&Maria Cojocaru

by schyungneed in Workshop > 3D Printing

118 Views, 0 Favorites, 0 Comments

GGIT Summer Camp,rainbow Led Lamp Project Made by Maria Mereuța&Maria Cojocaru

curcubeu versiunea noua v10.png
Maria Mereuta si Maria Cojocaru

This lamp project is inside on Girls Go IT Summercamp project,where girls can grow in IT field.

Inside this summercamp our project is to make a led lamp,to make it happen we were divided by two for each project

Me with my teammate selected the main idea of our project,which is a rainbow and did things to make it happen

I am responsible for 3D modeling part,and my teammate for arduino.

Supplies

Fusion 360,3D printer,and Tinkercad

https://www.tinkercad.com/login

Step 1:First Idea & Schetch

led lamp.jpg
5.jpg
photo_2021-07-30_23-02-27.jpg
curcubeu versiunea noua v10.png

Our first idea was to make a half-rounded rainbow as a lamp as in the image above,but our idea was very hard to make on 3D printer so we decided to make it as an usual cloud with a straight but with some melted edges,as is presented in the 3rd photo in description

Step 2:Modeling in Fusion360

curcubeu versiunea noua v10.png
32e8c12a-0991-4b92-b584-39b62258c17c.PNG
proiect final curcubeu.png
r2.PNG
r3.PNG
r4.PNG
r5.PNG
r6.PNG
r7.PNG
r8.png
r9.png
Maria Mereuta si Maria Cojocaru

I made a 3D model of a cloud and a rainbow as is showed in the images above,our model has enough holes for arduino&stands for breadboard,also it has holes for 3 leds,and another 3 leds which will be in the corp of the cloud and positioned right on the breadboard

Step 3: Arduino Scheme

image (1).png

The 3rd step was made by my partner so,she made a scheme on Ardonuino board simulator,and showed how the eltronic part of our project will work.In the photo we can see more connections for less, resistor,and one touch button, we will have a few modes of lightening,and 3 tipes of coulors

Step 4 : Programing the Arduino

As I wrote above,our lamp will have a few modes to be turned on or off and etc. to do so my partner uses a code,so here it is

#define rosu 9

#define verde 10

#define albastru 11

#define ledrosu 5

#define alb 3

#define B1 6

int state = 0;

void setup(){

pinMode(rosu, OUTPUT);

pinMode(verde, OUTPUT);

pinMode(albastru, OUTPUT);

pinMode(ledrosu, OUTPUT);

pinMode(alb, OUTPUT);

pinMode(B1, INPUT_PULLUP);

Serial.begin(9600);

}

void loop ()

{

if(digitalRead(B1)== LOW) {

state++;

delay (1000);

Serial.println(state);

if(state==4){

state=0;

}

}

if (state==1){

REGIM1();

}

if (state == 2) {

OFF ();

}

if (state == 3) {

RGB ();

}

}

void OFF()

{

digitalWrite(alb, LOW);

digitalWrite(rosu, LOW);

digitalWrite(ledrosu, LOW);

digitalWrite(verde, LOW);

digitalWrite(albastru,LOW);

}

void REGIM1 ()

{

OFF();

delay(500); digitalWrite(alb, HIGH);

digitalWrite(rosu, HIGH);
digitalWrite(ledrosu, HIGH);

digitalWrite(verde, LOW);

digitalWrite(albastru,LOW);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, HIGH);

digitalWrite(ledrosu, HIGH);

digitalWrite(verde, HIGH);

digitalWrite(albastru,LOW);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, LOW);

digitalWrite(ledrosu, HIGH);

digitalWrite(verde, HIGH);

digitalWrite(albastru,LOW);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, LOW);

digitalWrite(ledrosu, HIGH);

digitalWrite(verde, HIGH);

digitalWrite(albastru,HIGH);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, LOW);

digitalWrite(ledrosu, HIGH);

digitalWrite(verde, LOW);

digitalWrite(albastru,HIGH);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, HIGH);

digitalWrite(ledrosu, HIGH);

digitalWrite(verde, LOW);

digitalWrite(albastru,HIGH);

delay(500);

digitalWrite(alb, HIGH);

digitalWrite(rosu, LOW);

digitalWrite(ledrosu, LOW);

digitalWrite(verde, LOW);

digitalWrite(albastru,LOW);

delay(1000);

}

void RGB()

{

digitalWrite(ledrosu, HIGH);

for(int i=0; i<255;i++){

analogWrite(rosu,I);

delay(20);

}

for(int i=0; i<255;i++){

analogWrite(verde,I);

delay(20);

}

for(int i=0; i<255;i++){

analogWrite(albastru,I);

delay(20);

}

for(int i = 255; i>0; i--){

analogWrite(rosu,I);

delay (20);

}

for(int i = 255; i>0; i--){

analogWrite(verde,I);

delay (20);

}

for(int i = 255; i>0; i--){

analogWrite(albastru,I);

delay (20);

}

}

Step 5:The Assemnlance of Arduino,Breadboard in the Body

As soon as our project will be done and we will have printed our rainbow we will assemble our pieces and connect it to the program,and we will be to see our work.