Skip to content

This is the setup and steps for the workshop run at SEA-Tech High School in Castle Hayne, NC on October 14, 2024 by Lando Toothman.

Notifications You must be signed in to change notification settings

TheLandolorien/workshop-stellar-unicorn-flipbook

Repository files navigation

Stellar Unicorn Flipbook Workshop

This is the setup and steps for the workshop run at SEA-Tech High School in Castle Hayne, NC on October 14, 2024 by Lando Toothman.

⚡ Quick Start

See Pimoroni's Getting started with Raspberry Pi Pico Guide for a more detailed walkthrough for connecting Thonny to Raspberry Pi Pico.

Ensure the Thonny IDE is installed.

Open Thonny and select the "MicroPython (Raspberry Pi Pico)" device from the menu in the bottom right corner.

Thonny Device Selection

In the Thonny menu, make sure View > Files is selected so that the device files are visible.

Thonny View Files Option

Double-click the main.py file to open it in the Thonny file editor. Press the green play button to run the file on the Stellar Unicorn.

Press the green play button (or press the F5 key).

Thonny Run Script Button

Your Stellar Unicorn will start flashing 4 colorful LEDs.

Stellar Unicorn Main Flashing

Behind each LED is a button labeled A, B, C, or D.

Stellar Unicorn Main Flashing

Press one of these buttons to start an example display:

Button Effect Description
A Fire An animation of a burning fire
B Supercomputer An animation of yellow dots that look like a old-computer processing a request
C Rainbow An animation of a flowing rainbow
D Today's Date If connected to Wi-Fi a display of the day of the week and the date of the month

Pressing C will display a flowing rainbow 🌈.

Stellar Unicorn Rainbow Effect

And ta-da! You're ready to start coding a Stellar Unicorn! 🎉

🎥 Creating a Flipbook

  1. Open and run stellar_paint.py.
  2. Copy and paste the generated link in your browser.
  3. Create an image.
  4. Save the image with the format: <FLIPBOOK_NAME>_<N>, where:
    1. <FLIPBOOK_NAME> is the name of your flipbook (e.g., cross)
    2. <N> is the frame number (e.g., 2)
  5. Create another image that could would make it look like your previous frame moved. Save that image as well.
  6. Stop the script.
  7. Open and run flipbook.py
  8. Watch your animation!

Challenge

  1. (Easy) Update your flipbook to move faster or slower.
  2. (Medium) Create a flipbook with at least 5 frames.
  3. (Hard) Program your flipbook to start from the A, B, C, or D button.

About

This is the setup and steps for the workshop run at SEA-Tech High School in Castle Hayne, NC on October 14, 2024 by Lando Toothman.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published