Hello, we are working on a project using distance sensors through MIDI and we are having troubles making it work.
We’re using polaroid SMT6500 sonar ranging module, the idea is to use the distance data collected by the sonar module and patch it to max/msp to control some sound effects and lights. The best idea will be if it the communication works via MIDI.
I have the Sonar connected to the Arduino using the following pins:
GND (1) ---------- GND
INIT(4) --------- Pin 4
V+ (9) --------- 5V
ECHO(7) ------- Pin 2 (4.7k resistor)
BINH(8) ------- GND
BLNK(2) ------ Pin 12
2 ………………… GND (220 resistor)
5………………….Pin1 (220 resistor)
We tried with this patch (MIDI_senscomp) that we got from a friend, and is not working. The script produces some errors, we have tried to fix them, but we aren’t sure if the mistake is in the code or in the libraries that we are using.
Then we tried for parts, the first just MIDI out: DONE its working so MIDI is well connected.
So then we tried the sensor with serial communication, (attached as serial1.1_smt6500) not working. We connected a simple sensor (the one that looks like eyes) and it receives distance data, but when it comes to this more complex it only outputs 0.
We are working on a project in a really cool space and will like to use this system so please any help will be great. I’m attaching also the data sheets of the sensors.
MIDI_senscomp5.ino (2.52 KB)
serial1.1_smt6500_.ino (831 Bytes)
6500 1.pdf (692 KB)
6500-ranging-modules-spec.pdf (844 KB)