STEAM DISCOVERY LAB
  • About
  • Tools
  • Projects
  • Resources
  • Product
  • About
  • Tools
  • Projects
  • Resources
  • Product
Search

MicroPython on the Huzzah (ESP8266)

Picture
Getting started / setup
​To set up your Adafruit Feather Huzzah with MicroPython, check out the multi-part instructions.
​
"Tutorial 1: Getting Micropython on your Board" is for deploying the MicroPython firmware onto your Huzzah.
"Tutorial 2: Using MicroPython on the Adafruit Feather Huzzah" explains how to use the MicroPython command line and Serial monitor, automatically connect to WiFi upon bootup, and transfer scripts between the board and your computer.

Additionally, there are Thingworx Tutorials and Thingworx Example Projects.
tips AND RESOURCES
FILE TRANSFER:
  1. Use the MicroPython IDE (available here) to interact with code on the device.
    ​THIS IS BETTER THAN THE "AMPY" OPTION EXPLAINED BELOW!!!
  2. "ampy" is a command line tool useful for accessing and manipulating the files on your HUZZAH. More information for how to install ampy and use it are included in "Tutorial 1: Getting Micropython on your Board".
"ampy --help" results

    

PIN INFO:​
For pin info on the Huzzah (and most other ESP8266 boards), refer to the Adafruit Feather Huzzah Pinout Guide.

​
MICROPYTHON:
For MicroPython information, use the MicroPython Documentation for all ESP-8266 Boards (including the Huzzah). Particularly useful sections:
  • Quick Reference for the ESP8266
  • MicroPython libraries/modules
    • "​​math" - mathermatical functions
    • "machine" - functions related to the board
    • "utime" - time-related functions
  • Tips for running MicroPython on a microcontroller efficiently
  • Glossary of terms
CHALLENGES
HINT: Check out the Tips and Resources. They're all really  important.

  1. Get the board to print "Hello, World!" to the serial monitor using the built-in "print()" command.
  2. Connect a button to the board and rapidly record the state/value of the button to the serial monitor using a loop.
  3. Connect an LED and get it to turn on when you press the button.
  4. Run a Servo motor using the PWM capabilities of MicroPython / Huzzah.
  5. Control the Servo motor using various sensors, buttons, or other controls.
Picture
200 Boston Ave, Medford, MA 02155
steamdiscoverylab@gmail.com
Center for Engineering Education and Outreach
​Tufts University
About
Tools
Projects
Resources
​
Contact
LEGO®, the LEGO® logo, the Brick, MINDSTORMS®, and the Minifigure are trademarks of ©The LEGO® Group. On some parts of this site  you will get access to so-called “developer software”, which offers documentation on different ways to operate the LEGO® Education SPIKE™ Prime Hub and technology. Whatever use you make of the developer software, bear in mind that the results are not experiences that the LEGO Group endorses, is with or will be liable for. No rights in or to trademarks of the LEGO Group are implied or given, and you may not apply to or register any protection anywhere in the world for intellectual property or industrial rights or similar in respect of any developer software, derivative or other result achieved through its use. The developer software is made available “as is” and, to the extent possible, no warranties or representations are implied or given in relation to it by the LEGO Group. It’s your responsibility to ensure all uses that you make and enable others to make comply with all applicable laws and best practices. By accessing the developer software, you acknowledge that the terms and conditions set out above and in LEGO Education’s terms of use for SPIKE Prime apply.
  • About
  • Tools
  • Projects
  • Resources
  • Product