Giter VIP home page Giter VIP logo

arduino-midi-clock's Introduction

Arduino MIDI clock with tap tempo

As seen on LittleBits: https://classroom.littlebits.com/inventions/littlebits-arduino-midi-master-clock-with-tap-tempo

You can also do this with a regular Arduino, but you'll have some extra work soldering the button(s)/dimmer

How to make a Arduino MIDI connector

See the excellent tutorial at this link: http://www.instructables.com/id/Send-and-Receive-MIDI-with-Arduino/step3/Send-MIDI-Messages-with-Arduino-Hardware/ .

Or check the electrical spec here: https://www.midi.org/articles/midi-electrical-specifications

Connections

For MIDI out

  • Connect MIDI ground to Arduino ground
  • Connect MIDI 5V to Arduino 5V with a 220 Ohm resistor in between
  • Connect MIDI signal line to Arduino serial input pin (D1)

For tap in

Connect a button to D2

Usage

  • Upon startup, Arduino will start sending 100 BPM MIDI clock signal (or last saved BPM value if available).
  • Tap the tempo (minimum 3 times)
  • After the last tap, clock tempo will be updated and MIDI clock signal will send new BPM

Features:

  • MIDI clock output on pin D1 TX
  • Tap tempo input
  • Dimmer input when a dimmer is connected to A0 to set the tempo by twisting the knob!
  • Tempo blinking LED on pin 5
  • Sync signal on pin 9 (for example to sync with Korg Monotribe...)
  • MIDI real-time start/stop is sent when button press is detected on A1 port
  • BPM storage in EEPROM and restores it on power up
  • MIDI forwarding if a MIDI input is present on pin D0 RX
  • Output of the BPM to a TM1637 LED display

Branches

  • master: Code for the Arduino Leonardo (or LittleBits Arduino)
  • arduino-uno: Code for Arduino Uno and compatible devices (D0/D1 RX/TX pins are used for MIDI in/out, so no debug console!)
  • olimex-midi-shield: Based on the arduino-uno branch, but with some tweaks to make the code work better with the Olimex MIDI shield (https://www.olimex.com/Products/Duino/Shields/SHIELD-MIDI/open-source-hardware) (Work in progress!)

Enjoy! :)

arduino-midi-clock's People

Contributors

dietervdw avatar hxlnt avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.