music with stepper motors
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Hendrik Langer 04ec3a9897 working for now 5 years ago
bin test 5 years ago
include test 5 years ago
lib/python2.7 test 5 years ago
local test 5 years ago
src working for now 5 years ago
test test 5 years ago
.gitignore test 5 years ago
.travis.yml test 5 years ago
Bizet Carmen Prelude.mid loopstepper 5 years ago
MapleLeafRag.mid loopstepper 5 years ago
OMFG-Hello by Bagio.mid loopstepper 5 years ago
Pirates of the Caribbean - He's a Pirate (2).mid songs 5 years ago
Pirates of the Caribbean - He's a Pirate (3).mid songs 5 years ago
README.md working for now 5 years ago
Super Mario Bros - Overworld.mid songs 5 years ago
axelf.mid test 5 years ago
foggy3.mid songs 5 years ago
foggymtn3.mid songs 5 years ago
knightrider3.mid songs 5 years ago
lestoreadorscl.mid loopstepper 5 years ago
mario64-medley.mid working 5 years ago
platformio.ini working for now 5 years ago
send.py working for now 5 years ago
send2.py loopstepper 5 years ago
shakira-medley.mid loopstepper 5 years ago
starwarsmedley.mid loopstepper 5 years ago
toto-africa.mid working 5 years ago
wannabe05.mid loopstepper 5 years ago
william_tell_overture.mid loopstepper 5 years ago

README.md

MidiStepper

Made for an old (AnyCubic) Trigorilla-Board from an 3D-Printer. Also compatible with Arduino Nano and old floppy drives.

Floppy pins:

      .....j..DS.......
..G5  . ...j..GG.......

j: jumper (drive select)
D: direction
S: step
G: corresponding ground
5: 5V for the motors

Caveats:

The ATmega2560 has 6 timers, so we can use them to generate the square waves for the steps. Be aware that delay() and similar arduino-functions will not work as expected if you extend this and use Timer0. RAMPS14-compatible boards have only 5 stepper drivers, so we're fine. Other arduinos don't have enough timer peripherals, so we generate them in software. This could be done in an ISR. See: https://www.youtube.com/watch?v=fHAO7SW-SZI

Usage:

The arduino part accepts raw midi messages over its serial interface. baudrate is 115200. Use the python script send.py to send midi files over the serial port. It can also act as a virtual midi port.

Compile:

$ git clone
$ virtualenv -p python --no-site-packages .
$ source bin/activate
$ pip install -U platformio
$ pio run
$ pio run -t upload