Show Posts
Pages: [1]
1  Using Arduino / General Electronics / Re: Thoughts on an Audio Control of RGB LEDs on: January 03, 2013, 07:36:51 am
Hello !
  You may connect the IN pins of the unused AOP's to avoid electrostatic shock (but not the OUT pins !).
  Then I cannot figure out how the AOP's are wired, maybe you can use this kind of circuit :
  -http://electronique.aop.free.fr/AOP_lineaire_F/Filtre_PHaut_1.html
  -http://electronique.aop.free.fr/AOP_lineaire_F/Filtre_PBas_1.html

  Or these (I think you used these) :
  -http://electronique.aop.free.fr/AOP_lineaire_F/Filtre_PBas_2.html
 
  In those last ones, you can modify the gain without modifying the cutoff frequency


  For the limitation you should use diode like this (D1 and D2):
  http://www.sonelec-musique.com/images2/electronique_detecteur_impulsion_meca_001.gif

Sorry for the french links  smiley-confuse
2  Using Arduino / Audio / Re: audio input thoughts... on: January 02, 2013, 06:51:41 am
Hi,
  Take a look here http://interface.khm.de/index.php/lab/experiments/arduino-realtime-audio-processing/ there are some schematics and sketchs to sample audio signal. Then you can use these sketchs and instead of the output part you may substract the offset, calculate some power values, and output the values on the light. The function analogWrite() might be disabled in this sketch but PWM works on pin 11 (pin 11 is used to output audio cf sketch).

Hope I have been helpful smiley
3  Using Arduino / Audio / Re: Communication Arduino/MIDI Software on: January 02, 2013, 06:11:44 am
Hello, sorry for the eternity to answer but I have a lot of projects in parallel.

  First, I prefer a software solution even if I am sure that the hardware one works well.
  I tried to use the Firmata protocol with the associated PureData patch : it works but I did'nt manage to send MIDI data because the patch is already complicated.

  I have also tried with a simple PureData patch using "comport" to receive datas from arduino (Serial.print()), and which send MIDI datas : I receive an integer from the arduino which is translated in a velocity/note value, or both if some sort of coding is used. The patch works but there is some big latency.
4  Using Arduino / Audio / Communication Arduino/MIDI Software on: June 13, 2012, 06:16:27 am
Hi everybody !

  I would like to make an electronic drum kit but I have problems to send MIDI data from my Arduino Uno REV3 to some MIDI software like Ableton live, Fruity Loop or Guitar pro.
  I tried to use Serial-midi converter and s2midi to convert serial data from my arduino to MIDI data with MidiYoke/Loopbe1 to create a virtual MIDI port.
 
 I tried to configure different Baud Rate (31250, 57600), but my software does not receive data, except Fruity Loop which detect a MIDI input activity in green (unhandled). So it is impossible to get a drum sound  smiley-confuse
 

  Here is my test sketch :

Quote
//  *****************************************************************************************************************
//  *                                                                                                               *
//  *                                         SpikenzieLabs.com                                                     *
//  *                                                                                                               *
//  *                                   Very Simple Serial to MIDI DEMO                                             *
//  *                                                                                                               *
//  *****************************************************************************************************************
//
// BY: MARK DEMERS 
// May 2009
// VERSION: 0.1
//
// DESCRIPTION:
// Demo sketch to play notes from middle C in the 4th octave up to B in the 5th octave and then back down.
//
//
// HOOK-UP:
// 1. Plug USB cable from Arduino into your computer.
//  
//
// USAGE:
// 1. Install and Set-up Serial MIDI Converter from SpikenzieLabs
// 2. Open, compile, and upload this sketch into your Arduino.
// 3. Run Serial MIDI Converter in the background.
// 4. Launch your music software such as Garage Band or Ableton Live, choose a software instrument and listen to the music.
//
//
// LEGAL:
// This code is provided as is. No guaranties or warranties are given in any form. It is up to you to determine
// this codes suitability for your application.
//

int note = 0;     

void setup()
{
  Serial.begin(57600);                                       // Default speed of the Serial to MIDI Converter serial port
}

void loop()
{

  for(int note=60; note<=83; note++)                        // Going Up
  {
    MIDI_TX(144,note,127);                                  // NOTE ON
    delay(100);

    MIDI_TX(128,note,127);                                  // NOTE OFF
    delay(100);
  }

  for(int note=82; note>=61; note--)                       // Coming Down
  {
    MIDI_TX(144,note,127);                                  // NOTE ON
    delay(250);

    MIDI_TX(128,note,127);                                  // NOTE OFF
    delay(250);
  }

}


void MIDI_TX(unsigned char MESSAGE, unsigned char PITCH, unsigned char VELOCITY)
{
  Serial.write(MESSAGE);
  Serial.write(PITCH);
  Serial.write(VELOCITY);
}





I think I need some help  smiley. Thanks in advance !
Pages: [1]