Starduino: 8-Bit Super Mario Tree Topper - Adafruit Industries

1y ago
1 Views
2 Downloads
2.84 MB
18 Pages
Last View : 1y ago
Last Download : 3m ago
Upload by : Milena Petrie
Transcription

Starduino: 8-Bit Super Mario Tree TopperCreated by John 8-bit-mario-star-tree-topperLast updated on 2021-11-15 06:36:21 PM EST Adafruit IndustriesPage 1 of 18

Table of ContentsOverview3Print the Star4Make the Blinky Electronics8Arduino Code11CircuitPython Code15 Installing Libraries16Assemble the Awesome Starduino17 Adafruit IndustriesPage 2 of 18

OverviewThis guide was written for the Gemma v2 boards. It can also be done with theGemma M0. We recommend the Gemma M0 as it is easier to use and is morecompatible with modern computers! The wiring is the same.Let's build an 8-bit tree topper! This project uses the GEMMA to run a NeoPixel ringstuffed inside a 3D printed Mario star. You start out by printing four star model parts.Then, you'll build and program the circuit. Next comes assembly, and finally you'llpower it up and place it atop your tree! (Thanks to Artie Beavis (https://adafru.it/ken) / AtmelMakes (https://adafru.it/keo) for the name!)Before you start, you should be familiar with using your 3D printer, and read up onthese guides: Introducing GEMMA (https://adafru.it/dgH) or Adafruit Gemma M0 (https://adafru.it/BeC) NeoPixel Uberguide (https://adafru.it/dhw) Adafruit Guide to Excellent Soldering (https://adafru.it/drI)You'll need: 3D printer, such as Printrbot (http://adafru.it/1760) Translucent filament (http://adafru.it/2451) and black filament (http://adafru.it/2060) for 3D printer Adafruit Gemma M0 (https://adafru.it/ytb) or Adafruit GEMMA v2 (https://adafru.it/duB) RGB NeoPixel (http://adafru.it/1463) LEDs 16 x ring Soldering iron and solder Adafruit IndustriesPage 3 of 18

Solid core (http://adafru.it/1311) or stranded (http://adafru.it/1970) wire (20 to 26gauge) Helping third hand tool Wire strippers Flush diagonal cutters USB cable (http://adafru.it/260) - A/MiniB - 3ft 5V 1A USB port power supply (http://adafru.it/501) or USB battery pack (http://adafru.it/1959)Print the StarTime to heat and squeeze a length of humble, nondescript plastic filament into adelightful, three dimensional object! The model was built in Rhino using NURBScurves, extrusions, and solid booleans. The star has a cylindrical section designed tofit the GEMMA and NeoPixel ring, as well as a slot for the USB cable. The rectangularbase piece has a complimentary section as well as posts to snap into the holes in thestar once the electronics are in place, and a tubular section that to slide over the topof your tree. Adafruit IndustriesPage 4 of 18

First, you'll need to download the model files from the link below.Download STL fileshttps://adafru.it/kemOnce downloaded, load the first model, StarduinoBody.stl, into CURA or another 3Dprinter slicer package.Adjust the settings to suit your printer -- a fairly low resolution print with 5-10% infillworks well. Then, load natural/translucent filament into your printer and print! Adafruit IndustriesPage 5 of 18

Next, load the StarduinoBase.stl model and print it with the same settings as the body. Adafruit IndustriesPage 6 of 18

The final parts to print are the eyes. You may want to switch to black filament forthese prints. Or, you may print with the same filament as before and then simply inkthe eyes with black permanent marker. You can choose to print one eye at a time orboth in one print job. Adafruit IndustriesPage 7 of 18

Once you've completed making the eyes, go ahead and press fit them into the star.Make the Blinky ElectronicsControlling the NeoPixel ring's individual LEDs from the GEMMA is quite simple. Sincethe NeoPixels are individually addressable, the only connections needed between thering and the GEMMA are for voltage, ground, and control signal. That's just threewires! Adafruit IndustriesPage 8 of 18

This guide was written for the Gemma v2 board. The pins used are the same forthe Gemma M0. We recommend the Gemma M0 as it is easier to use and is more k 2; k--) {heat[k] (heat[k - 1] heat[k - 2] heat[k - 2] ) / 3;}// Step 3. Randomly ignite new 'sparks' of heat near the bottomif( random8() SPARKING ) {int y random8(7);heat[y] qadd8( heat[y], random8(160,255) );}// Step 4. Map from heat cells to LED colorsfor( int j 0; j NUM LEDS; j ) {CRGB color HeatColor( heat[j]);int pixelnumber;if( gReverseDirection ) {pixelnumber (NUM LEDS-1) - j;} else {pixelnumber j;}leds[pixelnumber] color;}} Adafruit IndustriesPage 13 of 18

Adafruit IndustriesPage 14 of 18

CircuitPython CodeGEMMA M0 boards can run CircuitPython — a different approach to programmingcompared to Arduino sketches. In fact, CircuitPython comes factory pre-loaded onGEMMA M0. If you’ve overwritten it with an Arduino sketch, or just want to learn thebasics of setting up and using CircuitPython, this is explained in the AdafruitGEMMA M0 guide (https://adafru.it/z1B).These directions are specific to the “M0” GEMMA board. The GEMMA v2 with an8-bit AVR microcontroller doesn’t run CircuitPython for those boards, use theArduino sketch on the “Arduino code” page of this guide.Below is CircuitPython code that works similarly (though not exactly the same) as theArduino sketch shown on a prior page. To use this, plug the GEMMA M0 into USB itshould show up on your computer as a small flash drive then edit the file “code.py”with your text editor of choice. Select and copy the code below and paste it into thatfile, entirely replacing its contents (don’t mix it in with lingering bits of old code). Whenyou save the file, the code should start running almost immediately (if not, see notesat the bottom of this page).If GEMMA M0 doesn’t show up as a drive, follow the GEMMA M0 guide link above toprepare the board for CircuitPython.import boardimport neopixelimport adafruit fancyled.adafruit fancyled as fancynum leds 16saturation 255blend True Adafruit Industries# number of LEDs per strip# 0-255, 0 is pure white, 255 is fully saturated color# color blending between palette indicesPage 15 of 18

brightness 0.8flicker 0# brightness the range is 0.0 - 1.0# flame flicker# NeoPixel objects usingleds neopixel.NeoPixel(board.D0, num leds)# Inspired by Fire2012() by Mark Kriegsman and his use of FastLED# to create a one-dimensional 'fire' simulation# the heat colors are from the heat palette that FastLED providesdef fire 2018(strip, offset):# heat colorspalette [0x330000, 0x660000, 0x990000, 0xCC0000, 0xFF0000,0xFF3300, 0xFF6600, 0xFF9900, 0xFFCC00, 0xFFFF00,0xFFFF33, 0xFFFF66, 0xFFFF99, 0xFFFFCC]for i in range(num leds):# FancyLED can handle the gamma adjustment, brightness and RGB settingscolor fancy.palette lookup(palette, offset i / num leds)color fancy.gamma adjust(color, brightness brightness)strip[i] color.pack()while True:fire 2018(leds, flicker)flicker 0.3# flame flicker, adjust value to control speedInstalling LibrariesThis code requires two libraries be installed: neopixel adafruit fancyledA factory-fresh board will have the neopixel library already installed. If you’ve justreloaded the board with CircuitPython, create the “lib” directory and then copy in theneopixel.mpy and adafruit fancyled folder from the latest release of theAdafruit CircuitPython Bundle (https://adafru.it/CeF).The FancyLED library (https://adafru.it/CeG) being using in this CircuitPython exampleis not the same as the FastLED (https://adafru.it/ezj)used for Arduino. FancyLED has asubset of FastLED features and some different syntax. The FancyLED tutorial providesan excellent overview (https://adafru.it/AKx).The file system layout on your gemma M0 should look like this: pwd/Volumes/CIRCUITPY find ./boot b./lib/neopixel.mpy Adafruit IndustriesPage 16 of 18

./lib/adafruit fancyled./lib/adafruit fancyled/adafruit fancyled.mpy./lib/adafruit fancyled/fastled helpers.mpy./main.pyAssemble the Awesome StarduinoThe final step is to put the electronics into the star. Simply place the NeoPixel/GEMMAbundle into the cylindrical recess in the star with the LEDs facing forward, plug in theUSB cable, and then place the base model onto the backside, snapping the four postsinto place. It should all hold together nicely via friction. Adafruit IndustriesPage 17 of 18

Plug the USB cable into a power source -- either a wall adapter or a battery -- andwatch it sparkle!All that's left is to top your tree with your rad 8-bit Super Mario star! Adafruit IndustriesPage 18 of 18

Let's build an 8-bit tree topper! This project uses the GEMMA to run a NeoPixel ring stuffed inside a 3D printed Mario star. You start out by printing four star model parts. Then, you'll build and program the circuit. Next comes assembly, and finally you'll power it up and place it atop your tree! (Thanks to Artie Beavis (https://adafru.it/

Related Documents:

Super Mario 64 Super Mario 64 Randomizer Super Mario Bros. 2 Super Mario Bros. 3 Super Mario Kart Super Mario RPG Super Mario World Super Mario World 2: Yoshi’s Island Super Metroid Terraria The Binding of Isaac: Afterbirth ToeJam & Earl

Super Mario 64 Super Mario 64 Randomizer Super Mario Bros. 2 Super Mario Bros. 3 Super Mario Kart Super Mario RPG Super Mario World Super Mario World 2: Yoshi’s Island Super Metroid Terraria The Binding of Isaac: Afterbirth ToeJam & Earl ToeJam & Earl: Back i

1. super mario movie maker 2. super mario movie maker 2 3. super mario 64 movie maker download EXE games you can download and the best The story of Mario. . The Warp Zone's first appearance was in the original EMB Movie. . From FANFREEGAMES, Super Mario Maker is a new game of Mario bros that we have found for you to play . super mario .

Super Mario Kart Super NES August 27, 1992 8.76M no 2. Mario Kart 64 Nintendo 64 December 14, 1996 9.87M yes 3. Mario Kart: Super Circuit Game Boy Advance July 21, 2001 5.47M no 4. Mario Kart: Double Dash!! Nintendo GameCube November 7, 2003 6.95M yes 5. Mario Kart DS Nintendo DS November 14, 2005 23.56M yes 6. Mario Kart Wii Wii April 10, 2008 .

64 and Super Mario Galaxy depict a depth of field that isn’t there in box arts for 2D games such as the New Super Mario Bros. Series and Super Mario Bros. Deluxe. In between the two are the 2.5D games Super Mario 3D Land and World, both with a slight isometric view to their respective cover arts.

AEQB Super QuickBooks-Export (i.e. Accounting-Export QuickBooks) BRW Super Browse DIA Super Dialer FF Super Field-Filler IE Super Import-Export INV Super Invoice LIM Super Limiter PCD Super Passcode QBE Super QBE SEC Super Security TAG Super Tagging MHSTF Super Stuff (a.k.a

Our final goal was achieved by creating a library exhibit about the history of Mario. “Let’s-a-Go! A Brief History of Mario” was a library exhibit that shows a brief history of the Super Mario series from Super Mario Bros. to Super Mario Sunshine. We wanted to display wha

This standard employs the principles of API 650; however, storage tank owner/operators, based on consideration of specific construction and operating details, may apply this standard to any steel tank constructed in accordance with a tank specification. This standard is intended for use by organizations that maintain or have access to engineering and inspection personnel technically trained .