-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
62 lines (41 loc) · 2.4 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
echo = FALSE,
warning = FALSE,
message = FALSE,
comment = "#>",
out.width = "100%"
)
source("build.R")
```
# Baby Yoda
This repository contains the detailed brick requirements and building instructions for creating your own Baby Yoda Lego model. The model was built using the [`brickr`](https://github.com/ryantimpe/brickr) R package, and was adapted from the Baby Yoda model originally designed by [Ryan Timpe](https://github.com/ryantimpe) (see [here](https://gist.github.com/ryantimpe/3893fdd0f94138d027bae35bf38b57c7) for the code for that model). The adaption was necessary, as the original model contained a number of "floating bricks" (i.e. bricks that are not supported by another brick from either above or below), which work fine when rendering the model in R but cannot be used in a physical version.
This version was designed to work with a electromagnetic levitation display to give it a true-to-life feel. I used the [Hongzer Magnetic Levitation Platform](https://www.amazon.co.uk/gp/product/B07YKY6K8J/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) (£6-7 pounds from Amazon), but it will (/should!) work with any display where the diameter of the floating magnet is <5.5cm.
# Finished model
``` {r}
knitr::include_graphics("finished_model/babyyoda.gif")
```
More photos of the finished model from different angles can be found [here](/finished_model).
# Build pieces and instructions
## Build pieces
These are the pieces you will need to build your own Baby Yoda. These can be acquired from the Pick A Brick service on the Lego store website. The total cost for all pieces included in this model was ~£30 pounds.
``` {r}
knitr::include_graphics("babyyoda_pieces.png")
```
Here is the same information as a table:
``` {r}
babyyoda %>%
build_pieces_table() %>%
dplyr::select(-Piece) %>%
knitr::kable()
```
## Instructions
The instructions below will guide you through building your own Baby Yoda, using the pieces detailed above. It can be awkward to get some of the pieces to work together when building from the bottom up, as they are supported by a brick on the next level. In this case, a useful tip is to try building down (i.e. descending through the steps).
``` {r}
knitr::include_graphics("babyyoda_instructions.png")
```