Show Posts
Pages: [1] 2 3
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Mega Midi Shield Problem on: January 19, 2011, 11:37:40 pm
Its a 8 Volt Li-Po Battery with 3 Amps.. it is used for Strong RC Cars, so i think it will drive the arduino mega..
Well i gave up on the Arduino Mega, its a piece of crap... No Midi Stuff seems to work on it, i tried arduinoboy it has same issues.. i ordered a Arduino Nano and i will use the Arduino Mega as a paper weight..
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Mega Midi Shield Problem on: January 12, 2011, 10:59:27 pm
I am doomed.. i ripped everything apart.. Trying to run it with the Arduino Duemilanove again. It works, but only when connected via USB. It doesnt work with the Battery (the battery is more than strong enough so its not a power issue). Also if the Arduino runs on battery and i plug in USB for some seconds (for as long as the Data LED flashes) and then disconnect it, it will work in battery mode?

I got to realize my project wont work.. sad that i got the Hardware part all ready and spend all my money on it.

Have a nice day all
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Mega Midi Shield Problem on: January 12, 2011, 09:29:29 am
I did change the SPI Pins going from 10,11,12,13 to the corresponding right ones 50,51,52,53. I jumpered from 10 to 53, 11 to 51, 12 to 50, 13 to 52 like i should.

The Shield doesnt work at all that means i receive no incoming midi data, no data led flashes, no sound comes out on the Audio Out.

It worked on the Duemillanove. The Mega Board is OK as it is my second one, because i replaced it already.

Maybe there has to be changes to the Hardware.pde. I looked everything up but dont really get behind it well. Thats the Code
Code:
// Hardware Setup

extern uint16_t SynthEngine_ProcessSample() ;
void Hardware_Setup(){

  //Timer2 setup  This is the audio rate timer, fires an interrupt at 15625 Hz sampling rate

  TIMSK2 = 1<<OCIE2A;  // interrupt enable audio timer
  OCR2A = 127;
  TCCR2A = 2;               // CTC mode, counts up to 127 then resets
  TCCR2B = 0<<CS22 | 1<<CS21 | 0<<CS20;   // different for atmega8 (no 'B' i think)
    
  SPCR = 0x50;   // set up SPI port  SPCR = 01010000,
  SPSR = 0x01;  //
  DDRB |= 0x2E;       // PB output for DAC CS, and SPI port
  PORTB |= (1<<1);   // CS high
  
  sei();                  // global interrupt enable
}

uint8_t dacSPI0;            // the two bytes that go to the DAC over SPI
uint8_t dacSPI1;

// Timer 2 interrupt routine calling the synth engine for every sample
ISR(TIMER2_COMPA_vect) {

  OCR2A = 127;
  
  //PORTB &= ~(1<<1); // Frame sync low for SPI (making it low here so that we can measure length of interrupt with scope)
 
  uint16_t sample = SynthEngine_ProcessSample();
  
  // format sample for SPI port
  dacSPI0 = sample >> 8;
  dacSPI0 >>= 4;
  //dacSPI0 |= 0x30; // Write to DAC-A, unbuffered VREF, gain=1x, Output Power Down Control bit (low impedence out?),
  dacSPI0 |= 0x70;  //buffered VRef
  dacSPI1 = sample >> 4;  

  // transmit value out the SPI port
  PORTB &= ~(1<<1); // Frame sync low
  SPDR = dacSPI0;  //The SPI Data Register - Writing to the register initiates data transmission.
  while (!(SPSR & (1<<SPIF))); //Wait for data to be sent over SPI, flag raised
  SPDR = dacSPI1;
  while (!(SPSR & (1<<SPIF)));
  PORTB |= (1<<1); // Frame sync high
}





I dont really know if Port Registers and so on are 1:1 compatible from Duemillanove to Mega?

Hope someone can help
Thanks
Patrick
4  Forum 2005-2010 (read only) / Troubleshooting / Arduino Mega Midi Shield Problem on: January 12, 2011, 12:24:40 am
Hey!
It seems the MidiVoX SHield i bought doesnt work with Arduino Mega. It is fine with my Duemillanove.
I dont receive any midi data with the Mega, what could be the problem ?

I already found a thread that tells to change the SPI Pins to 50,51,52,53.. I did that and it still doesnt work. Maybe something in the code has to be rewritten ?

Here is the link to the shields code and specs: http://www.narbotic.com/kits/midivox/

Please help a fella out ...

Greets from Austria
5  Forum 2005-2010 (read only) / Deutsch / Re: Arduino Midi Möglichkeiten on: November 19, 2010, 07:51:00 pm
Habe soweit einige Fragen klären können.. möchte jetzt aber evtl. in eine andere richtung gehen. Ist es möglich MIDI Dateien auf eine speicherkarte zu speichern und sie dann über das Arduino abzuspielen (sodas er sie bei einem MIDI Out ausgibt und ich dabei die BPM regeln kann ?)
Ich würde auch gerne am Anfang eine Art Auswahlmenü haben wo ich die Funktion des Gerätes auswählen kann z.b.
1. MIDI Player
2. System Monitor (Versionsnr und Akkuspannung)
3. Sequencer
4. .......

Leider hab ich ja keine Ahnung noch von C/C++ und habe mir zwar das Arduino Physical Computing geholt, jedoch denke ich das ich erstmal ne lange zeit brauche bis ich die Grundlagen checke.

Wäre für jede hilfe dankbar


PS: So habe heute wenigstens mal das Akkupack gelötet (6x AA Akkus) und mir eine simple schaltung mit einem 7805 IC rausgesucht das ich das fertige Gerät dann über USB Laden kann und es portable bleibt.
6  Forum 2005-2010 (read only) / Deutsch / Re: Arduino Midi Möglichkeiten on: November 19, 2010, 12:19:33 pm
Danke erstmal für die schnellen Antworten.. habe selbst nachrecherchiert und das gefunden:

http://www.larsby.com/johan/?p=9

Das kann ich glaube ich als Basis für mein Projekt verwenden. Ich möchte eigentlich kein fertiges shield kaufen ich habe von meinen ganzen eigenbau projekten (Midibox SID MB-6582, x0xb0x,..) noch einiges rumliegen das ich verwerten möchte.

Ich weiß das ich mich warscheinlich langsam rantasten muss und etwas zu bauen das meinen Vorstellungen entspricht, aber darum gehts ja bei Arduino denke ich ? Langsam heranzureifen smiley
Wisst ihr wo ich vielleicht auch noch günstig breadboards kaufen kann (ich komme aus österreich).

Super danke schonmal an alle, hoffe das mein Arduino bald eintrifft das ich Anfangen kann zu lernen.

Mfg
Patrick
7  Forum 2005-2010 (read only) / Deutsch / Arduino Midi Möglichkeiten on: November 19, 2010, 11:40:00 am
Hallo Leute. Bin neu hier und habe mir erstmal zum starten ein Arduino Mega 1280 und ein LCD Shield bestellt.

Was ich bauen möchte ?

Eine Art Midi Sequencer bzw ein simples Gerät das vorgespeicherte Midi Sequencen abspielt.

Ich stelle mir das so vor, entweder das ich Programm die ich zuerst irgendwo definiert habe über das LCD Display anwählen kann, diese auswähle und das Gerät dann über die Midi Buchse diese "Sequenz" spielt.

Z.b. Hab ich am LCD Display stehen:
1. Arpegiator UP DOWN
2. Smoke on the Water
3. Alle meine Entchen

usw.

Ich möchte dann z.b. sagen wir mal die 3 Anwählen. Und dann sollte das Gerät die Midi Noten abspielen. Ist das möglich ?
Wenn es möglich ist ist es möglich Zeitabstände zu definieren, bzw eine art Sequencer daraus zu basteln wo ich z.b. BPM definieren kann und der dann "Taktgenau" arbeitet ?

Ich wäre sehr froh wenn mir jemand weiterhilft bzw jemand einen Link hat wo ich mich am besten einlesen sollte.

Schönes Wochenende.
 :smiley
8  Forum 2005-2010 (read only) / Troubleshooting / Arduino Mega Problem with MidiVOX on: January 11, 2011, 10:43:03 am
Hello guys.
I bought a MidiVOX Shield for my project. As i tried it with my first Arduino Mega it didnt work. So i replaced all parts of the shield. Still not working. So i ordered a Arduino Duemillanove. It works with that.
So i thought, hey maybe only your first Mega is broken.
So i ordered another Mega.
And it just doesnt work on the Mega.
The Problem is with receiving Midi Data via RX.
Anyone got a hint how to get it to work ?
Here is the link to the shields code and specs: http://www.narbotic.com/kits/midivox/

I cant finish my project because of that mess. Please help a poor guy who spent all his money on something that he doesnt get to work  :-[

Greets from Austria
9  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 11, 2011, 01:20:33 pm
I connected the SPI Pins like in the description.
Still doesnt work. I hate it..
I also tried switching from RX to RX1 (rewriting the code to serial1 aswell)
Also doesnt work smiley-sad
10  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 11, 2011, 12:50:25 pm
Yeah everything is fine. It works on the Duemillanove with the same sketch and everything the same.. except the arduino itself
11  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 11, 2011, 12:18:18 pm
Ok i got to go to work now.. hope i will find something soon.
I use the MidiVOX shield http://www.narbotic.com/kits/midivox/
Thanks in advance.. Patrick



PS: Think i found something
Shield pin 11 -> Mega pin 51
Shield pin 12 -> Mega pin 50
Shield pin 13 -> Mega pin 52

I hope that works ? Found it on a Forum claiming the Micro SD Shield wont work

But seems because of the DAC Audio Chip and so on that the code has to be rewritten.. omg smiley-sad i dont see my project working this year
12  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 11, 2011, 11:28:11 am
Here is the sourcecode: http://narbotic.com/files/MidiVox_Healer_v2-100522a.zip

There is no Shematic.. I just put the shield on the Mega like i did on the Duemillanove. It has to be something Arduino Mega specific why this doesnt work.
Thanks for any help
13  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 11, 2011, 10:11:54 am
Hello All.. I need help please !!!

Ok i got another Arduino Mega.. uploaded the Sketch (which didnt work on the old Arduino Mega) it did work on the Arduin 2009..
The Problem still is: The Arduino Mega doesnt receive Midi IN Signals.. but the Arduino 2009 does with the same sketch, how is that possible ? I am losing my mind..
Please help me out.. i dont get it..
14  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 05, 2011, 01:54:28 pm
Cool Man.. a Masterpiece.. smiley-grin hope that my code will work too.. but well i dont think it will as i suck at coding at the moment, but the good thing of the iZZE BoX is.. once the hardware is in.. you never have to open it again  8-)
15  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Midi Questions on: January 05, 2011, 12:27:37 pm
looks cool.. whats your project about ?
I am sure you will find everything you need on ponoko.com
But for bigger Stuff it may be a little expensive for some people.
I am happy that i tried ponoko out. Next time i wouldnt take black acrylic though.. Very hard to keep clean.. but looks pretty awesome with the Blue/UV Light on...
Pages: [1] 2 3