Build your own MIDI circuits
Frequently Asked Questions.
MIDI & Music
MIDI and Music Information
Passive Infrared (PIR) to MIDI


Passive Infrared (PIR) to MIDI

This design can use from 1 up to 6 Passive Infrared  (PIR) sensors to detect the presence of somebody approaching the PIR sensors which will trigger a MIDI Note On command. These 6 Note On commands are preset to start from Middle C, Note C4 (MIDI Note 60) up to F4 (MIDI Note 65).


 The Passive Infrared (PIR) to MIDI unit can operate on any MIDI channel (1-16) depending on the 4-way DIP switch settings.


Clients have used this design in Art Installations where people move in and out of rooms to trigger and play a piece of music, or effects or an audio message or warning, using one or up to six PIR devices.


*Click to Enlarge*




PRICE:  €50.00




NOTE: This price does NOT   include the PIR sensor.



The Passive Infrared (PIR) to MIDI unit utilizes:



The Passive Infrared (PIR) to MIDI requires:

  • An external 12 volt DC power supply,
  • An external Passive Infrared (PIR) sensor, operating on a 12 Volt DC power supply.






     *Click to Enlarge*

The MIDI IN and OUT connectors use  5-Pin 180 degree DIN sockets. Note that the MIDI IN/OUT wiring is polarised and the correct pins should be used.





The unit detects  somebody approaching the PIR and can use the MIDI Note On command to trigger a MIDI Sampler which can produce a Greeting, Warning, Music etc. The relay contacts in the PIR are Normally Closed (NC) until a person triggers the PIR and then the contacts are Open Circuit. The 0 Volt (GND) connection is looped through the PIR relay contacts. Leads from the Gnd, Vin  and A0 up to A5 pin headers are connected to the PIR connectors.


Power Supply:

The  Arduino  must be powered via an external 12 volt DC power supply. This 12 volts should also be the required voltage for the PIR used. Most PIR units can operate on an external supply of 10 to 14 volts.  The recommended voltage is 12 volts.


External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. 




MIDI Channel Selection:


DIP Switch Selections



4 3 2 1
on on on on 1
on on on off 2
on  on  off on 3
on on off off 4
on off on on 5
on off on off 6
on off off on 7
on off off off 8
off on on on 9
off on on off 10
off on  off on 11
off on off off 12
off off on on 13
off off on off 14
off off off on 15
off off off off 16

Table 1 MIDI Channel