GirlsGoIT - 3D & Arduino - BT21 Lamp

by Anghelina_Otilia in Workshop > 3D Printing

109 Views, 1 Favorites, 0 Comments

GirlsGoIT - 3D & Arduino - BT21 Lamp

BT21 final 2.png

This lamp was made during the GirlsGoIT Summer Camp 2021 at the 3D prototyping & Arduino track. GirlsGoIT is a community program empowering girls in the IT field in Moldova.

In this project, we will show you how we created this lamp with the help of Autodesk Fusion 360 and Arduino.

In this lamp we introduced a breadboard, on it will be placed 18 red LEDs and 4 RGB. These LEDs will illuminate one after another, so that the red LEDs will illuminate 5 seconds, and then the RGB LEDs will light up,and will illuminate with the colors (red, purple, blue, turquoise, green and yellow).

Let's begin!

The Electronics You'll Need and Where You Can Order Them

ELEGOO-Upgraded-Electronics-Fun-Kit.jpg

Arduino Uno and Usb Cable - Order on Aliexpress

Resistors 220 ohm (8) - Order on Aliexpress

Red Leds (18) - Order on Aliexpress

RGB Leds (4) - Order on Aliexpress

Wires - Order on Aliexpress

Breadboard - Order on Aliexpress

3D Printer
PLA plastic

The Applications What You'll Need

a7729528df971f275c586853064cab7d.jpg
3e87cf4b3a6a124a4e1666e498e598f3.jpg

1) Autodesk Fusion 360 - Autodesk

2)The Latest Version of Arduino IDE - Download

The Making of the Sketch

223181959_1170573406802102_3885636408126965845_n.jpg
225392515_4663278360382933_8070341701099182113_n.jpg
222846954_1929885473858908_583234640624395197_n.jpg
pgABXyJjNdc.jpg
jpbIZ8vwtIw.jpg

To develop our ideas, we did some brainstorming, to see how our lamp approximately will look. In the end, we decided that the lamp will have the form of a box, where inside it, the electronic components will be located.

Designing the Lamp in Fusion 360

1.jpg
2.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg
12.jpg
14.jpg
15.jpg
16.jpg
17.jpg
față.jpg

Before you start designing the lamp, you need to save your project, so all the changes that you will make are going to be auto-saved. Also, you need to create a new component. Next what do you need to do is to follow these instructions:

1) Insert the photo reference (last photo)

2) Calibrate the canvas to 210 mm (vertical)

3) Create a new sketch on the front plane

4) Use the spline tool to make the outline of the lamp (photo 1)

5) Finish the sketch and extrude it at 91 mm

6) Create a new component, then make a new sketch on the plane of the base that you've created

7) Use the project tool, and project the outline of the base. Then do an offset of these lines with -2 mm (photo2)

8) Create a new sketch and trace the face, arms and feet. Then do an offset of the lines that belong to arms and feet 1mm (photo 3)

9) Extrude the sketch (2mm) (with the join option)

10) Choose the split body tool and then select the base as the body to split and the 2nd component as the splitting tool. This is the box lid.

11) Make invisible the lid, then choose the shell tool and do a shell on the base with 2 mm(photo4)

BreadBoard

Arduino Uno

12) Download the models, and position them like in photo 5. You can create some help points at the base of the box throughout the sketch option. (photo 6)

13) Use the Split Body tool to create the holes for USB and charging. (Body to split - the box, Tools to split - the USB and charging output from Arduino)

14) Create a new sketch on the base of the box. Then project the lines that you've created in the previous step. Do an offset (-0,2mm) of these lines. (photo 7)

15) Extrude the sketch (with the cut option). The holes need to look like in photo 8 (back view)

16) Go back to your sketch and project the outline of some Arduino components (photo 9). Then draw these bars for the support (photo 10). Throughout the sketch dimensions, set the dimension of 0,1 mm between the sketch and project lines. (photo 11). Extrude them with 30 mm (Join option).

17) Create a new sketch and choose the plane where the breadboard is sitting. Draw the rectangles like in photo 12 (width - 4 mm, length - doesn't matter). Then extrude them with 5 mm.

18) Choose the bottom lines of the all rectangles that you've created and do a fillet with 2 mm.
19) Make the lid visible again. Create a new sketch on the back of it. Project the lines from photo 12. Then do an offset (-0,2 mm) of the projected lines. Delete the first projected lines, then do an offset of the remained lines with 2 mm. The sketch needs to look like in photo 13.
20) Move the lid a little bit and make the extrude of the previous sketch. (2 mm). The back needs to look like in photo 14.
21) Color the face parts and the outline with the Appearance tool. (photo 15)

Now the design is done!

Wiring Diagram

Schema_Proiect_ArduinoUno.png

Here you can see the wiring diagram of the lamp. On the breadboard we placed 18 red leds and 4 rgb leds, so that for the red leds - at each pin to be connected 3 leds, and to the rgb leds - at each pin to be connected 2 colors.

Arduino Programing

1.png
2.png
3.png
4.png
5.png
last.png

1)First

  #define give a name to pin - repeat this for every pin
  #define prag 1 - write this and you will be able to reset at any time the number by which the color of the RGB LEDs will decrease and increase
  #define timp 1000 - write this and you will be able to reset the pause in which the LEDs will be off at any time
  #define number 200 - write this and you will be able to set the maximum color of the rgb leds at any time

2)In void setup() Write -

   pinMode(Name of Pin, OUTPUT);- reapeat this to every Pin

3)in void loop() Write -

   digitalWrite(name of pin, HIGH); - repeat this for every (pin for simpleleds)
   delay(5000); - the time when the LEDs will light up
   digitalWrite(name of pin, LOW); - repeat this for every (pin for simpleleds)
   RGB();
   RGB();
   digitalWrite(name of pin,LOW); - repeat this for every (pin for RGB LEDs)

4)Now, create a function for RGB LEDs -

   for (int i = 0; i<number; i+=prag){
   analogWrite(name of first (color) pin, i);
   analogWrite(name of second (color) pin, i);
   delay(20);
   } 
  for (int i = numer; i>0; i-=prag){
  analogWrite(name of first (color) pin,i);
  analogWrite(name of second (color) pin,i);
  delay(20);
  } - reapeat all this for every color you want

5)The last step will be to using this scheme - (select " " - select " " - ...) -

"Tools" - "Arduino Uno Board" - "Arduino AVR Boards" - " Arduino Uno"

Overview

BT21 RENDER 11.png
bt21 render 22.png
bt21 render 33.png
bt21 render 44.png
BT21 Otilia si Anghelina

You can watch the original fusion 360 model Here

RESULTS!

IMG_20210813_134728.jpg
IMG_20210813_134740.jpg
qDOfR1B1Hc4.jpg

We worked very hard on this project, and we hope that the lamp will look amazing in reality. Unfortunately, now, we can't show you how it looks all printed and assembled, but soon, all objects will be delivered and we will make an update about this. Now all that we can provide, is the photos that we've used as references :)


We hope you enjoyed our journey on making this BT21 lamp and managed to make easy all the steps. See you soon!