Introduction: Loupedeck Avec Un Arduino / Loupedeck With Arduino

About: Love robots and photography

Loupedeck est un clavier spécialisé, qui matérialise les actions de Lightroom 6 ou CC avec des touches (voir le site ).

Ce clavier est un périphérique qui relient le code d'un potentiomètre ou d'un bouton a un plugin sur Lightroom pour faire des actions.

Le Plugin MIDI2LR permet de la même manière de relier un périphérique MIDI, comme par exemple un PAD ou un contrôleur MIDI prévu pour la MAO, à des fonctionnalité Lightroom.

On va utiliser ce plugin pour créer une interface MIDI avec un Arduino.

==========ENGLISH============

Loupedeck is a specialized keyboard, which realizes actions in Lightroom 6 or CC with touch (see the site).

This keyboard is a peripheral which link the code of a potentiometer (or a button) to a plugin on Lightroom to make actions.

MIDI2LR plugin allows in the same way to connect a MIDI peripheral, as for example a PAD or a MIDI controller planned for MAO, in feature Lightroom.

We are going to use this plugin to create a MIDI interface with Arduino.

Step 1: Electronique / Electronics

6 x potentiomètres 10k (environ 8€)

6 x boutons poussoir (environ 10€)

Arduino (nano ou uno environ 5 ou 10€)

Du fil, de quoi souder et un cadre en bois (environ 10€ le cadre en bois)

Souder les potentiomètres sur les pins A0 à A5

Souder les boutons poussoir sur les pins 2 à 7

Installer le tout dans le cadre...et voila !

==========ENGLISH============

6 x potentiometer 10k (about 8€)

6 x pushbutton (about 10€)

Arduino (nano or uno about 5 or 10€)

Wires, soldering iron and a wood frame (about 10€ for a wood frame)

Solder the potentiometers on pins A0 to A5 and pushbutton on pins 2 to 7.

Install all on wood frame...and voila !

Step 2: Code Arduino / Arduino Code

le principe du code est assez simple, on lit la valeur des potentiomètres et des boutons et on les transmet sous forme de note MIDI dans l'USB.

Pour le MIDI il faut installer la librairie MIDI, téléchargeable ici

==========ENGLISH============

the code is easy, we read the potentiometers and pushbouton values and we send it as a MIDI note on USB.
For MIDI il faut installer la librairie MIDI, downloadable here

Step 3: Lier Les Éléments / Link Components

L'Arduino communique avec l'ordinateur "en série" via le port USB. Il faut faire correspondre ce signal avec le plugin MIDI2LR.

Pour cela, le logiciel Hairless, permet d'envoyer un signal du port COM vers un élément MIDI. Cet élément MIDI n'étant pas existant (l'arduino n'est pas reconnu comme périphérique MIDI sur l'ordinateur) il faut "virtualiser" un port MIDI. Pour cela on utilise le logiciel LoopBe1qui va donc simuler un port MIDI et permettre la liaison entre le signal qui sort de Hairless et le plugin MIDI2Lr

"LoopBe1 is an internal MIDI device for transferring MIDI data between
computer programs. Basically LoopBe1 is an "invisible cable" to connect a MIDI outport of an application to any other application´s MIDI inport."

==========ENGLISH============

Arduino communicates with the computer using "serial" through USB. Signal must be linked to MIDI2Lr plugin.

To do this, the software Hairless, allows to send a signal from COM port to a MIDI element. This MIDI doesn't exist (Arduino is not recognisez as a MIDI peripheral by the computer), we must to "virtualised" it .

To do this, the software LoopBe1 will simulate a MIDI port and allows to link the signal from Haireless to MIDI2Lr.

Step 4: Lancer Le Tout / Run It !

Si l'on résume, quand on tourne le potentiomètre ou si un bouton est actionné, l’Arduino va récupérer la valeur, la convertir en note et l'envoyer en Série à l'ordinateur. Le logiciel Hairless va alors transformer ce signal série en signal MIDI et envoyer cela à l'interface virtuelle de LoopBe1. Cette interface va alors communiquer avec le plugin MIDI2Lr qui va faire correspondre une touche à une action dans Lightroom.

Les logiciels ne sont pas compliqués, LooBe1 ne nécessite aucun réglage et va se cacher dans les icônes en bas a droite du PC (seule action possible de "mute" l'interface ce qui coupe l'utilisation de l’interface).

Hairless va reconnaître l'Arduino dans sa liste de "Serial port" à gauche (voir schéma) et l'interface LoopBe1 dans "MIDI OUT" à droite.

Pour la configuration du plugin MIDI2Lr reportez vous au site qui explique comment "mapper" une touche a une fonction.

NB : lorsque tout est lancé, il faut bouger les potentiomètres et bouton pour qu'ils émettent un signal et soient vu dans MIDI2Lr

==========ENGLISH============

If we summarize, when we turn the potentiometer or if a button is activated, Arduino is going to get back the value, to convert it in MIDI note and to send him using serial signal to the computer. The Hairless software is then going to transform this serial signal in MIDI signal and to send it to the virtual interface of LoopBe1. This interface is then going to communicate with the plugin MIDI2Lr which is going to make link between a button and an action in Lightroom.

The software are not complicated, LooBe1 requires no regulation and is going to hide in icons below has right of the PC (only possible action of "mute" the interface what cuts the use of the interface). Hairless is going to recognize Arduino in his list of "Serial port" to the left (see plan) and the interface LoopBe1 in "MIDI OUT" to the right.

For the configuration of the plugin MIDI2Lr postpone you in the site which explains how "to map " a touch has a function.

NB: when everything is launched, it is necessary to move potentiometers and pushbutton so that they emit a signal and are seen in MIDI2Lr.