GGIT Summer Camp - Exploding Star Lamp - 3D Fusion Modeling & Arduino

by cojocarud2004 in Circuits > LEDs

186 Views, 4 Favorites, 0 Comments

GGIT Summer Camp - Exploding Star Lamp - 3D Fusion Modeling & Arduino

rended_MAINview.PNG

We had the opportunity to do this project in the GirlsGoIT summer camp, July - August 2021. The purpose was to learn how to work in Fusion 360 and Arduino circuits. Therefore this project is designed by some begineers and I hope it will be taken as such.

The concept was to make a decorative lamp (with LED bulbs), putting in practice what we've learned. As I said, we used Fusion 360 to design the carcase and solid components of the lamp, which to be printed on a 3D printer.

In Tinkercad we had the opportunity to understand and to see how it works, LEDs, resistors, Arduino UNO and a lot of another staff. Also we had the opportunity to make with it a virtual plan of how all electronic components of the lamp will work. By the way, thanks to Tinkercad we could also see how all this components would work after inputing the Arduino code.

This project was a pleasure and with its help we learned a lot of new things. The project is one hundred percent our idea and we hope you'll enjoy it!

Supplies

  • Fusion 360 (on Mac or Windows) [link]
  • Arduino simulator | Tinkercad [link]
  • 3D Printer
  • PLA plastic
  • Arduino UNO board [link]
  • Push Button [link]
  • White LED bulbs
  • Cables

Sketch

schita001.jpg
schita002.jpg

Firstly, I made the lamp sketch. The sketch is essential to define the idea, the concept that you have in your mind. Just put it on paper and visualize, analyze what you have to do. And don't worry. What you drew in sketch may change in time, along the project takes shape.

My sketch was also an aproximate representation of the idea from my head and didn't exactly match with the final result. In the first image I represented the whole lamp, with three main views. In the second - I drew the centroid sphere, which gave me the most headaches :)) .

3D Modeling in Fusion 360

ESL GGIT2021 - Dana si Anghelina
rended_MAINview.PNG
rended -FRONTview.PNG
rended_TOPview.PNG
IMG_1.png
IMG_2.png
IMG_3.png
IMG_04.png
IMG_05.png
IMG_06.png

The modeling of this lamp can't be a problem for a beginner/ intermediate designer in Fusion 360. But anyway, there's some tricks and tips that you need to know when you'll design the lamp components. For example, don't forget to reserve a place for Arduino board, with an USB port and charger. It will also need a stand and some constructions to fix it. (It would be easy if you download a 3D model of the board from sites like Grabcad or others.)

Secondly, in the case of the tubes and how it should fit into the sphere, i used a little bit lower tolerance, of 0.1mm, in the case of the 3D printer that we used. For another printer, the tolerance can be different.

And, not least, the centroid sphere is divided in two hemispheres such that it can be printed. And, of course, these two hemispheres should be fixed somehow. Personally I used the constructions that you could see above.

In the final, I rended the model and I got 3 realistic images of the lamp.

There's also a short video of the designed lamp in Fusion, with its main views and details. Enjoy!

The Electronic Scheme

Electronics - Tinkercard.jpg

The electronic scheme was made with the help of Arduino simulator Tinkercad, with an Arduino UNO board (for begineers). The scheme can be find above.

Here we used 18 leds, 17 for all 17 tubes and one more so as not using the resistors.

We thought about how will work the lamp, and we decided to create around 3 regimes, 1 when all leds are on, 2 when all leds slowly are putting on and slowly putting off, 3 when a half of them is one and another off and this halfs are changing between them, and of course 4 when the lamp is off. The changing of regime is made by pushing more time the push button.

The Code

Arduino Code (1).PNG
Arduino Code (2).jpg
Arduino Code (3).jpg

Below you can see the entire code used in Tinkercad:

#define l1 11
#define l2 10
#define l3 9
#define l4 6
#define l5 5
#define l6 3
#define bt 8
int s = 0;
void setup()
{ pinMode(l1, OUTPUT);
  pinMode(l2, OUTPUT);
  pinMode(l3, OUTPUT);
  pinMode(l4, OUTPUT);
  pinMode(l5, OUTPUT);
  pinMode(l6, OUTPUT);
  pinMode(bt, INPUT_PULLUP);
  Serial.begin(9600);
 }
void loop()
{ if(digitalRead(bt) == LOW){
    s++;Serial.println(s);delay(100);
    if(s == 5){s = 0;}
  }
  if(s == 1){OFF();}
  if(s == 2){ON();}
  if(s == 3){AA();}
  if(s == 4){AB();}
 }
void ON(){
  digitalWrite(l1, HIGH);
  digitalWrite(l2, HIGH);
  digitalWrite(l3, HIGH);
  digitalWrite(l4, HIGH);
  digitalWrite(l5, HIGH);
  digitalWrite(l6, HIGH);}
void OFF(){
  digitalWrite(l1, LOW);
  digitalWrite(l2, LOW);
  digitalWrite(l3, LOW);
  digitalWrite(l4, LOW);
  digitalWrite(l5, LOW);
  digitalWrite(l6, LOW); }
void AA(){
  for(int i=0;i<255;i=i+1){
  analogWrite(l1, i);
  analogWrite(l2,i);
  analogWrite(l3, i);
  analogWrite(l4,i);
  analogWrite(l5, i);
  analogWrite(l6,i);delay(10);}
    for(int i=255; i>0; i=i-1){
  analogWrite(l1, i);
  analogWrite(l2,i);
  analogWrite(l3, i);
  analogWrite(l4, i);
  analogWrite(l5,i);
  analogWrite(l6, i);delay(10);
  }
}
void AB(){
  for(int i=0;i<255;i=i+1){
  analogWrite(l1, i);
  analogWrite(l2,i);
  analogWrite(l3, i);
  }
  for(int i=255; i>0; i=i-1){
    analogWrite(l1, i);
    analogWrite(l2,i);
    analogWrite(l3, i);
  }
  for(int i=0;i<255;i=i+1){
    analogWrite(l4,i);
    analogWrite(l5, i);
    analogWrite(l6,i);
  }
  for(int i=255; i>0; i=i-1){
  analogWrite(l4, i);
  analogWrite(l5,i);
  analogWrite(l6, i);
  }
}<br>