Hendrik Langer
04ec3a9897
|
5 years ago | |
---|---|---|
bin | 5 years ago | |
include | 5 years ago | |
lib/python2.7 | 5 years ago | |
local | 5 years ago | |
src | 5 years ago | |
test | 5 years ago | |
.gitignore | 5 years ago | |
.travis.yml | 5 years ago | |
Bizet Carmen Prelude.mid | 5 years ago | |
MapleLeafRag.mid | 5 years ago | |
OMFG-Hello by Bagio.mid | 5 years ago | |
Pirates of the Caribbean - He's a Pirate (2).mid | 5 years ago | |
Pirates of the Caribbean - He's a Pirate (3).mid | 5 years ago | |
README.md | 5 years ago | |
Super Mario Bros - Overworld.mid | 5 years ago | |
axelf.mid | 5 years ago | |
foggy3.mid | 5 years ago | |
foggymtn3.mid | 5 years ago | |
knightrider3.mid | 5 years ago | |
lestoreadorscl.mid | 5 years ago | |
mario64-medley.mid | 5 years ago | |
platformio.ini | 5 years ago | |
send.py | 5 years ago | |
send2.py | 5 years ago | |
shakira-medley.mid | 5 years ago | |
starwarsmedley.mid | 5 years ago | |
toto-africa.mid | 5 years ago | |
wannabe05.mid | 5 years ago | |
william_tell_overture.mid | 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