https://github.com/chfoo/scanner-stepper
Play music with a scanner stepper motor.
https://github.com/chfoo/scanner-stepper
Last synced: 4 months ago
JSON representation
Play music with a scanner stepper motor.
- Host: GitHub
- URL: https://github.com/chfoo/scanner-stepper
- Owner: chfoo
- License: mit
- Created: 2014-04-27T01:09:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-27T18:15:32.000Z (over 11 years ago)
- Last Synced: 2023-03-23T04:57:55.651Z (almost 3 years ago)
- Language: Python
- Size: 613 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
===============
scanner stepper
===============
Play music with a scanner stepper motor.
Videos:
* Attempt 1: https://www.youtube.com/watch?v=j02qTJeHWPY
Requirements
============
Hardware
--------
.. image:: schematic/ardunio_scanner_stepper_bb.png
:alt: Breadboard
.. image:: schematic/ardunio_scanner_stepper_schem.png
:alt: Schematic
Materials used:
* 1 × Arduino starter kit
* 1 × Arduino Uno Rev3
* 1 × L293D H Bridge
* 1 × 220 ohm resistor
* 2 × 1k ohm resistors
* 1 × LED
* 2 × switch buttons
* 1 × USB cable
* 4 × male header pins
* 1 × ScanJet 5100C (HP C5 190A)
* 1 × Stepper motor (STH-39D1126-02, 1.8 deg/step, 4.1 ohms)
* 1 × 9.6 volt battery (8 × AA 1.2 V NiMH cells, LEGO parts)
* 2 × header cables
Software
--------
* Arduino IDE
* Python 2.7
* aubio
* numpy
* scipy
Usage
=====
* audio2txt.py: Reads a WAV file and uses pitch detection to produce a text file.
* txt2serial.py: Writes to the serial line on the Arduino. The Arduino IDE serial monitor must be open or it locks up.
* txt2wav.py: Converts a text file to a WAV file. Used for quickly listening the text file.
* scanner_stepper.ino: The Arduino program. Adjust the voltage as necessary so it doesn't burn out the H-bridge.
Contact
=======
* Email: chris.foo@gmail.com.
* Twitter: @chfoo0