Compare commits

...

7 Commits

Author SHA1 Message Date
476ca18c7a docs Onshape 2025-02-03 16:06:33 +01:00
620afb648e more info about fusion 2025-02-03 13:43:36 +01:00
6b619199ed typos 2025-02-03 13:40:13 +01:00
e20d0695b2 docs about final project 2025-02-03 13:40:01 +01:00
e097f514b7 imagemagick batch conversion 2025-02-03 13:39:52 +01:00
e9e15e6996 fusion360 docs 2025-02-03 13:38:33 +01:00
7de364ce76 3d files 2025-02-03 13:26:37 +01:00
37 changed files with 93825 additions and 67 deletions

4990
3D-files/Drone Body v12.step Normal file

File diff suppressed because it is too large Load Diff

BIN
3D-files/Drone v8.f3z Normal file

Binary file not shown.

88581
3D-files/Drone v9.step Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -33,6 +33,13 @@ convert input.jpg -resize 20% small.jpg
```
Where 20% is placed you could also place anything else, For example 800x800 or just 800x then it will keep the aspect ratio.
### Batch conversion
For this project I take a lot of pictures and I don't wanna convert them one by one so i use this command to convert them all at the same time. Warning: It overwrites the files so make backups.
```bash
mogrify -size 800x -strip -quality 85% -format jpg *.png
```
## Rules for uploading images to git
Use jpg's instead of png. Jpg's are compressed and way smaller. Try to keep images under 200 kilobytes.

View File

@@ -227,5 +227,17 @@ what requiremnds fo these functions are
#### Design strategy
* Example: if you want to make a hole in a part you can do that in different ways. Define the structure with a hole. Or drill it through the part. The sequence affects the way it behaves.
## Freecad
You first need to create a body and a sketch
FreeCad library with parts.
Freecad has build in CAM tools
Importing SVG is difficult in freecad
### CAM
Next week maybe.
## Links
* [blender tutorial](https://feadi.de/en/tutorials/blender/)

View File

@@ -0,0 +1,154 @@
# Designing the drone
## Drawing the drone
I have a few concept images above and this is the result my drawings.
![alt text](../../assets/assets_week_2/fusion360/IMG_7688.jpg)
![alt text](../../assets/assets_week_2/fusion360/IMG_7686-min.jpg)
![alt text](../../assets/assets_week_2/fusion360/IMG_7712-min.jpg)
![alt text](../../assets/assets_week_2/fusion360/IMG_7711-min.jpg)
In the second picture you can see that I wanted to make the drone 30 cm in length. But then I looked at the prices for bigger batteries and it started to get super expansive real fast. So I decided to make it smaller. So now im planning on making a drone 10 cm in length. Im still going for the design in the third image.
## Designing the drone
When designing the drone I wanted to do everything parametric. So im going to try to use as much variables as possible and make everything depend on each other so everything automatically scales when I change one parameter.
## Fusion
I've had a little bit of experience in fusion. Mostly with making basic cases. But now I wanna learn how to design everything perfectly parametric so if I need to change a length everything will scale with it without me needing to fix some things
### Previous experience with Fusion360
I've had some expierence using fusion with my university for making cases in projects. but it was never explicitly thought to me.
### Designing parametrically
Designing parametrically is very hard because every constraint needs to be perfect. Otherwise when changing lengths the design will fold into itself like this.
![alt text](../../assets/assets_week_2/fusion360/image.jpg)
#### What is parametric design?
Parametric design is the practice of using variables in your cad software, so if you wanna change something. Other parts of the design scale with it. It is very handy if you wanna make last minute changes to your design so you don't have to redo the entire design.
### Offset planes
Offset planes are something completely new for me. After the lecture I finally knew what they where and how to use them.
#### What are offset planes?
Offset planes are a way to tell fusion where you want something to happen. For example the splice tool needs a plane to cut through. For that is a offset plane required. For example I wanna cut this design in half.
### Using the the offset planes
For simplicity im gonna start using the normal Offset Plane.
![alt text](../../assets/assets_week_2/fusion360/image-14.jpg)
Once that's selected you can select a face to create the offset from.
![alt text](../../assets/assets_week_2/fusion360/image-15.jpg)
![alt text](../../assets/assets_week_2/fusion360/image-16.jpg)
Now we can press split body and select the body and use the offset as a tool to split along to.
![alt text](../../assets/assets_week_2/fusion360/image-17.jpg)
The offset planes can be used for almost everything in fusion. You can reference sketches from them and many other stuff.
### Constraints
There are a few different constraints. When placing things Fusion360 often makes constraints by itself. But additional constraints are needed when making designs parametric.
![alt text](../../assets/assets_week_2/fusion360/image-1.jpg)
![alt text](../../assets/assets_week_2/fusion360/image-2.jpg)
You know when something is fully constrained is when all the blue lines turn black. Sometimes you don't wanna constrain some parts of the sketch because they need to move freely when changing a parameter. For example:
![alt text](../../assets/assets_week_2/fusion360/image-3.jpg)
![alt text](../../assets/assets_week_2/fusion360/image-4.jpg)
In the first image in fusion 360 you can see what happens when I over constrained it. It didn't scale well with the rest of the design. I solved this issue by removing all existing constraints and from the ground up using the basic shape.
![alt text](../../assets/assets_week_2/fusion360/image-5.jpg)
#### Center constraint
I started off centering the bottom of the design to the center point. I did that by using the Midpoint constraint. Then clicking the origin point and the bottom line.
![alt text](../../assets/assets_week_2/fusion360/image-6.jpg)
#### Lock constraint
Then I locked the bottom line so it can't change rotation or go down when scaling the sketch. When using the lock/unlock constraint the line will turn green and then you know that line is locked in place.
#### Equal constraint
After that I made both sides of the line equal because the drone always needs to be symmetrical and otherwise you get off angles and that doesn't look nice.
![alt text](../../assets/assets_week_2/fusion360/image-7.jpg)
#### Perpendicular constraint
After that I added a line from Top to bottom and added a perpendicular constraint to both sides so the sketch would always push up and down straight. Once I've made sure both the top and bottom parts of the line.
![alt text](../../assets/assets_week_2/fusion360/image-8.jpg)
#### Sketch Dimensions
Sketch dimensions are one of the most important things to use. They tell a line how long it needs to be and it makes sure it can't be any other length. I want the bottom and top of my sketch to always be a certain value. For the sides it doesn't matter because if the top and bottom are defined the rest can be calculated if everything is constrained right. I also want the height to work parametrically so that's why I added a center line with a dimensions.
![alt text](../../assets/assets_week_2/fusion360/image-9.jpg)
### Extruding
After making all the sketches it's finally time to extrude. To extrude you first need to click a face. What is a face? A face is the light blue part of a sketch or it can be a part of a body.
![alt text](../../assets/assets_week_2/fusion360/image-10.jpg)
When you've selected a face you can press `E` and then you can extrude. A new menu will pop up with all the details of the operation.
![alt text](../../assets/assets_week_2/fusion360/image-11.jpg)
In the menu you will find what type of operation you wanna do, You can join the extrude, create a new body from it, intersect or remove part of a body using extrude. You can also specify the length and how you wanna extrude.
### Adding in components
I wanted a digital reference on how the drone would look so I have looked for online components so I wouldn't have to make them myself.
I first searched for `Brushless motor 3d design` and instantly found a model on grabcad and downloaded it. After downloading it I imported it into fusion360 using the import button in the top left of the project menu.
![alt text](../../assets/assets_week_2/fusion360/image-12.jpg)
After importing it I dragged it into my design and positioned it in the right location.
![alt text](../../assets/assets_week_2/fusion360/image-13.jpg)
### Result
After some time modeling this is my result.
![alt text](../../assets/assets_week_2/fusion360/image-18.jpg)
## Onshape
Onshape is completely new for me. I've heard engineering youtubers talk about it and promote it but I've never used it myself. That's also why I took some interest in it. So im going to start off with a [tutorial](https://www.youtube.com/watch?v=2utLjjkXpIg).
The first thing im gonna say off the bat is that I like the parameter menu of Onshape way more than fusion. In Onshape it's on the side instead of a new window that you can't use while sketching or modeling like in fusion. The thing that I don't like is that the camera rotates around the center point of the project and that you can't move it freely like in fusion.
### Sketching
Another thing thats different from fusion is that you can't instantly give lines variables. You first need to define a length before being able to put in a variable.
I first created the same sketch as in fusion so I could loft the sketches together. ![alt text](../../assets/assets_week_2/Onshape/image.jpg)
The top sketch was made using a offset plane first and then defining the sketch on top of that.
![alt text](../../assets/assets_week_2/Onshape/image-2.jpg)
You can draw lines by pressing the button with the red arrow and set the dimensions using the button with the green arrow. It feels very similar to fusion360
### Extruding
With Onshape I noticed there are more extrude options available.
You can choose through how much walls it should go or you can define the dimensions yourself.
To connect the 2 sketches I used loft.
![alt text](../../assets/assets_week_2/Onshape/image-4.jpg)
What loft does is create a smooth solid surface between 2 surfaces.
![alt text](../../assets/assets_week_2/Onshape/image-1.jpg)
After that I created a sketch on the front surface with a offset so I could extrude the inside
![alt text](../../assets/assets_week_2/Onshape/image-3.jpg)
After that I sketched the motor arms and sketched holes on top to cut the holes.
### Other notes
I think Onshape is a solid to fusion360 but the part that im missing is that I can instantly assign variables to anything. On another note Onshape is a lot nicer when working parametrically because you can slide the parameter menu on the side next to the design.

View File

@@ -1,61 +1,61 @@
# Lecture notes Wednesday
## Notes regional
Parametic design - scalable objects (so that if you change one parameter everything changes with it)
Try as much design softwares as possible
Parametric design is different in every design software
## Notes global
### Constraints
equality constraints to make things the same size
dimension consraints force someting to a length
* imaprative design (click and drag)
* generative design (describe how you want something and it generatis it)
#### Freecad
Different snaps to snap to grid of verticices or edges
#### loft
2 lines on different planes that get connected by loft.
#### Parametric design
Use of spreadsheet
### Intergrate 3d view in website
https://grabcad.com/
### Video encoding
Use H.264 to encode videos with
ffmpeg -i input_video -vcodec libx264 -crf 25 -preset medium -vf scale=-2:1080 -acodec libmp3lame -3q:a output_video
#### Assigment
* model a possible final project with cad in 2d and 3d
* make photorealistic render
* make a movie
* make a simulation that it works
* compress them
* post the descroption with the design files to the class page
#### Next week
* next week paramemtric press fit construction kit.
* focus on constrains and parametric
## Regional Day 2
12 uur blender
2 uur fusion
daarna ffmpeg imagemagick
# Lecture notes Wednesday
## Notes regional
Parametic design - scalable objects (so that if you change one parameter everything changes with it)
Try as much design softwares as possible
Parametric design is different in every design software
## Notes global
### Constraints
equality constraints to make things the same size
dimension consraints force someting to a length
* imaprative design (click and drag)
* generative design (describe how you want something and it generatis it)
#### Freecad
Different snaps to snap to grid of verticices or edges
#### loft
2 lines on different planes that get connected by loft.
#### Parametric design
Use of spreadsheet
### Intergrate 3d view in website
https://grabcad.com/
### Video encoding
Use H.264 to encode videos with
ffmpeg -i input_video -vcodec libx264 -crf 25 -preset medium -vf scale=-2:1080 -acodec libmp3lame -3q:a output_video
#### Assigment
* model a possible final project with cad in 2d and 3d
* make photorealistic render
* make a movie
* make a simulation that it works
* compress them
* post the descroption with the design files to the class page
#### Next week
* next week paramemtric press fit construction kit.
* focus on constrains and parametric
## Regional Day 2
12 uur blender
2 uur fusion
daarna ffmpeg imagemagick
model project in few different programs

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

View File

@@ -9,7 +9,7 @@
## Issues
### Using the wrong library for the BNO085
First used the wrong library I used the adafruit bno0xx library instead of the sparkfun bno08x library. The Example script below this reads the BNO085 sensor and returns the values in the arduino serial console.
First used the wrong library I used the Adafruit bno0xx library instead of the Sparkfun bno08x library. The Example script below this reads the BNO085 sensor and returns the values in the arduino serial console.
??? failure
@@ -114,7 +114,7 @@ First used the wrong library I used the adafruit bno0xx library instead of the s
```
## New driver
After researching for a while and looking through other fab academy projects I found out that other people also made drones with microcontrollers and used a premade driver that they customised (https://fab.cba.mit.edu/classes/863.23/Architecture/people/Zhixing/finalproject.html). After doing some research on how to keep the drone upright I also decided to use an exisitng driver because the math required for that is way above my level.
After researching for a while and looking through other fab academy projects I found out that other people also made drones with micro controllers and used a pre-made driver that they customized (https://fab.cba.mit.edu/classes/863.23/Architecture/people/Zhixing/finalproject.html). After doing some research on how to keep the drone upright I also decided to use an existing driver because the math required for that is way above my level.
### The new driver
Im gonna be using the [dRhemFlightVTOL](https://github.com/nickrehm/dRehmFlight/tree/master) driver. The only problem is that it doesn't support my Inertial measuring unit (BNO085). So I will have to customise the driver to make it work with it.
Im gonna be using the [dRhemFlightVTOL](https://github.com/nickrehm/dRehmFlight/tree/master) driver. The only problem is that it doesn't support my Inertial measuring unit (BNO085). So I will have to customize the driver to make it work with it.

View File

@@ -6,7 +6,6 @@ I wanted to combine 2 random objects that interest me into one project. A drone
## What does the drone do?
The drone needs to be able to fly for atleast 20 minutes. It needs 2 screens on both side so it can display images or video. I wanna program the drone myself so I know how drones work and how they keep themselves upright.
## Drone Requirements
### basic requirements
* 2 screens
@@ -26,9 +25,6 @@ The drone needs to be able to fly for atleast 20 minutes. It needs 2 screens on
* Automatic pathing
* Design own electronic speed controllers
## Images
![](../assets/result.jpg)
@@ -37,3 +33,21 @@ The drone needs to be able to fly for atleast 20 minutes. It needs 2 screens on
![](../assets/result1.jpg)
[last image credits](https://gareth-morrison.squarespace.com/drg)
## Drawing the drone
I have a few concept images above and this is the result my drawings.
![alt text](IMG_7688.jpg)
![alt text](IMG_7686-min.jpg)
![alt text](IMG_7712-min.jpg)
![alt text](IMG_7711-min.jpg)
In the second picture you can see that I wanted to make the drone 30 cm in length. But then I looked at the prices for bigger batteries and it started to get super expansive real fast. So I decided to make it smaller. So now im planning on making a drone 10 cm in length. Im still going for the design in the thirth image.
## Designing the drone
When desigining the drone I wanted to do everything parametric. So im going to try to use as much variables as possible and make everything depend on each other so everything automaticly scales when I change one parameter.
## Designing paramemtricly
Designing parametricly is very hard because every constraint needs to be perfect. Otherwise when changing lengths the design will fold into itself like this.
![alt text](image.png)
I've spend one day getting the constraints perfect for the sketch so it scales well with everything.