guides:button
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
guides:button [2023/09/11 21:57] – created admin | guides:button [2023/10/05 19:19] (current) – [External links] osnr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | btn | + | ====== Let's make a button! ====== |
+ | |||
+ | We'll start with the printable template and then make a Folk program that we want to turn into a button. | ||
+ | |||
+ | ===== 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 card stock (we like [[https:// | ||
+ | |||
+ | Right-click on this image to save it to your computer: | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | ===== 1. A Folk program to buttonify: ===== | ||
+ | |||
+ | With Folk, we can program our button to do anything we want, but let's keep this one simple. We'll just make our button display the word " | ||
+ | |||
+ | Go to your editor (either in your browser or grab a keyboard editor on your Folk system) and write this 1-line program: | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | Wish $this is labelled Computer | ||
+ | </ | ||
+ | |||
+ | Save and print this; we'll cut it up later. | ||
+ | |||
+ | ===== 2. Printing ===== | ||
+ | |||
+ | Print out the template: | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | ===== 3. Folding and cutting the button ===== | ||
+ | |||
+ | Let's fold and cut up the button like so: | ||
+ | |||
+ | 1. Cut out one of the quadrants. | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | 2. Starting at one end of the paper, fold the first solid black line into a valley fold (like a " | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | 3. Fold the next line in a mountain fold (inverse of a " | ||
+ | {{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 for your program: | ||
+ | |||
+ | {{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 of the protruding bits of your button | ||
+ | {{guides: | ||
+ | |||
+ | 3. Start by taping the top piece in position, then hold the button closed. While it's closed, line up the other half and tape it in place: | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | 4. Cut out the code: | ||
+ | *{{guides: | ||
+ | |||
+ | 5. Tape the code onto the body of your button: | ||
+ | |||
+ | {{guides: | ||
+ | |||
+ | ===== 6. Testing out your button ===== | ||
+ | |||
+ | Try giving the button a few presses. If it displays the word " | ||
+ | |||
+ | {{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: | ||
+ | |||
+ | |||
+ | ===== External links ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |
guides/button.1694469444.txt.gz · Last modified: 2023/09/11 21:57 by admin