Skip to content

lask/spin-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spinning Tree

This small project sets your miniature christmas tree (or something else) spinning! Spinning christmas tree

Step by step

1. Components

The project uses the following components:

  1. ESP32 dev board
  2. Step motor (https://www.sparkfun.com/products/9238)
  3. EasyDriver - Stepper Motor Driver (https://www.sparkfun.com/products/12779)
  4. Battery power supply (at least 7V).
  5. Something to connect everything. I used
    1. A breadboard
    2. M/M jumper cables
  6. Something to spin

2. Putting everything together

Put everything together as shown in the image. The ESP32 pin connection to the EasyDriver are as follows:

  • GPIO15 > STEP
  • GPIO16 > DIR
  • GPIO17 > MS1
  • GPIO18 > MS2
  • GPIO19 > ENABLE

Circuit schematic

3. Running the program

Prepare the open source Toit language by following the steps here.

Compile an ESP32 image from the program:

cd <path-to-toit-lang>
make esp32 ESP32_ENTRY=<path-to-spin-tree>/spin-tree/src/main.toit

Connect the ESP32 to your computer and flash the program by pasting the output from make esp32 into the terminal.

4. Enjoy the festivities

Once the program has been flashed, it will start running every time the ESP32 is powered on.

Useful links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published