2291125b 295b 44f6 a00a d068947a6194

invention

LittleBits Arduino MIDI master clock with tap tempo

by DieterVDW

Published on December 7, 2015

This Arduino code will send a MIDI master clock signal, and let you set the tempo by tapping!

Extra functionality:
  • Connect a dimmer to A0 to set the tempo by twisting the knob!
  • Tempo blinking LED on pin A5
  • Sync signal on pin A9 (for example to sync with Korg Monotribe...)
  • MIDI real-time start/stop is sent when button press is detected on A1 port
  • Stores the BPM value and restores it on power up
Code also available here:
https://github.com/DieterVDW/arduino-midi-clock

Duration: 1 hour

Credits:

Kudos to the EXCELLENT tutorial on how to send and receive MIDI with an Arduino @ Instructables: http://www.instructables.com/id/Send-and-Receive-MIDI-with-Arduino/

Also thanks to Paul Stoffregen for the super-easy TimerOne library! https://github.com/PaulStoffregen/TimerOne

How To Make It

1

Create a MIDI connector See excellent information here:
http://www.instructables.com/id/Send-and-Receive-MIDI-with-Arduino/step3/Send-MIDI-Messages-with-Ard...

I bought a male-to-female MIDI extension cable, and cut it in half. Then I stripped the cable and added the 220 ohm resistor. The resistor is in the green electrical tap you see on the picture. I used a proto module to connect the MIDI adapter to the littlebits Arduino.

2

Make the littleBits setup Power module -> button -> D0 port of the little
Bits Arduino D1 port of littleBits Arduino -> proto module -> MIDI adapter cable -> Your MIDI device

3

Add the TimerOne library in the Arduino application In the Arduino application:
Menu -> Sketch -> Include library -> Manage libraries ...

 Search for 'TimerOne' . Install the library!

4

Upload the code to the littleBits Arduino Use the Arduino application to upload the code to your littleBits Arduino.

5

Start tapping! ... and see the BPM change in your connected MIDI equipment! (Make sure to set your gear to 'external clock source')

Related Projects

StormTrooper Laser Game #BitWars

Laser Pointers are not just for our cats and dogs, it's also for our little StormTroopers. This is a Laser Game to earn ...

Cookie Cupboard Alert

How to keep the children (of all ages) out of the cookie cupboard ? Use the lightsensor and the number module to know when the coo...

Party Fan

Light up fan with sound!