guides:button
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:button [2023/10/04 21:01] – admin | guides:button [2023/10/05 19:19] (current) – [External links] osnr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Let's make a button! ====== | ====== Let's make a button! ====== | ||
- | Let's start with a printable template and a Folk program we want to turn into a button. | + | We'll start with the printable template and then make a Folk program |
- | ===== 1. The printable template ===== | + | ===== 0. The printable template ===== |
- | This template makes 4 buttons on a standard 8.5" x 11" piece of paper. Print it out, ideally on a piece of cardstock or tagboard | + | This template makes 4 buttons on a standard 8.5" x 11" piece of paper. Print it out, ideally on a piece of card stock (we like [[https:// |
- | Right click on this image to save it to you computer. | + | Right-click on this image to save it to your computer: |
- | {{guides: | + | {{guides: |
- | ===== 2. A Folk program to button-ize: ===== | + | ===== 1. A Folk program to buttonify: ===== |
- | What is our button going to do? With Folk we can program our button to do anything we want but let's keep this one simple | + | With Folk, we can program our button to do anything we want, but let's keep this one simple. We' |
- | Go to your editor (either in your browser or via a physical | + | Go to your editor (either in your browser or grab a keyboard editor on your Folk system) and write this 1-line program: |
'' | '' | ||
Line 23: | Line 23: | ||
</ | </ | ||
- | ===== 3. Printing ===== | + | Save and print this; we'll cut it up later. |
+ | |||
+ | ===== 2. Printing ===== | ||
Print out the template: | Print out the template: | ||
- | Print it out: | + | {{guides:button-template-printing.gif? |
- | {{guides: | + | ===== 3. Folding and cutting |
- | + | ||
- | ===== 4. Folding and cutting ===== | + | |
Let's fold and cut up the button like so: | Let's fold and cut up the button like so: | ||
1. Cut out one of the quadrants. | 1. Cut out one of the quadrants. | ||
- | 2. Starting at one of end of the paper fold the first solid black line into a valley fold so it forms a little " | ||
- | * Fold the inner two solid lines in a mountain fold | ||
- | * Cut out the middle section bounded by the dashed line, this will be the cleared area where you cut AprilTag will go! | ||
- | {{https://cdn.glitch.global/ | + | {{guides:3_1_cut_the_template.gif}} |
- | ===== 5. Taping ===== | + | 2. Starting at one end of the paper, fold the first solid black line into a valley fold (like a " |
- | * Cut out the code. If it's one-or-two lines and can fit on the top of the button tape it there. Otherwise tape it to the top flap of the button. | + | {{guides: |
- | | + | |
- | * Take the top half of your cut AprilTag, align its bottom | + | 3. Fold the next line in a mountain fold (inverse |
- | * Using your hand or a small object press the button down and keep it held down. This is important so you can accurately align the top-edge of the button to the top edge of the bottom half of the cleared area of your button. | + | {{guides: |
+ | |||
+ | 4. Fold the next edge as a mountain fold as well: | ||
+ | {{guides: | ||
+ | |||
+ | 5. Fold the final edge as a valley fold again, forming another little " | ||
+ | {{guides: | ||
+ | ----- | ||
+ | |||
+ | You should now have a basic button: | ||
+ | |||
+ | {{guides: | ||
+ | {{guides: | ||
+ | |||
+ | 6. Cut out the section surrounded by the dashed line. This is where you'll place the AprilTag | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | |||
+ | Your button should now look like this: | ||
+ | |||
+ | {{guides: | ||
+ | {{guides: | ||
+ | |||
+ | ==== 5. Cutting and taping the AprilTag ===== | ||
+ | |||
+ | 1. Grab your program and cut out the AprilTag from it like so (make sure to preserve the program number and date data for future reference): | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | Cut the AprilTag in half so you have two pieces, a top and a bottom. | ||
+ | |||
+ | 2.Place two pieces of tape on the top and bottom | ||
+ | {{guides: | ||
+ | |||
+ | 3. Start by taping | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | 4. Cut out the code: | ||
+ | *{{guides: | ||
+ | |||
+ | 5. Tape the code onto the body of your button: | ||
+ | |||
+ | {{guides: | ||
===== 6. Testing out your button ===== | ===== 6. Testing out your button ===== | ||
- | Sweet, now take of the weight and try giving the button a few presses. If it says "computer" you've just made a paper button that triggers a program in Folk, pat yourself on the shoulder! | + | Try giving the button a few presses. If it displays the word "Computer", you've just made a paper button that triggers a program in Folk! pat yourself on the shoulder! |
+ | |||
+ | {{guides: | ||
+ | |||
+ | |||
+ | ===== Extras ===== | ||
+ | |||
+ | Here's some inspiration for other kinds of buttons: | ||
+ | |||
+ | * A button that draws animating concentric circles: | ||
+ | *{{guides: | ||
+ | * A button that activates a sprite: | ||
+ | *{{guides: | ||
- | {{https:// | + | ===== External links ===== |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |
guides/button.1696453303.txt.gz · Last modified: 2023/10/04 21:01 by admin