salggarcia

Members
  • Content count

    17
  • Joined

  • Last visited

Community Reputation

0 Neutral

About salggarcia

  • Rank
    Member

Profile Information

  • Gender
    Not Telling
  1. salggarcia

    MIDI/Audio Wing

    Hello Alvie, Yes everything works great. It uploads correctly and stays upon repowering. The only thing now is that the MIDI out is not working. It seems like its not sending anything at all (control changes, program changes, etc.) even probing the tx line with a oscilloscope shows no sign of activity when attempting to send through that port. -Sal
  2. salggarcia

    MIDI/Audio Wing

    Any updates?
  3. salggarcia

    MIDI/Audio Wing

    I also noticed that on the MIDI out connector, MIDI pins 4 and 5 are still tied to ground, and after probing with an oscilloscope, their is no activity on pin C14 when a sendProgramChange is sent. Their is activity that I can see on the MIDI In C15 pin when accepting program changes to verify my oscilloscope is working. -Sal
  4. salggarcia

    MIDI/Audio Wing

    Okay, The schematic seems to match up exactly with the board after going through with a DMM, except the ground is actually on MIDI pin 3 except pin 2, but Im sure that doesn't make a difference if they are both the same on the MIDI In and Out connectors. The only thing I can think of is the UART2 TX line is not set up properly but Im not sure. -Sal
  5. salggarcia

    MIDI/Audio Wing

    Okay, After some debugging, I found that the MIDI out is not working, since MIDI in responds fine with a MIDI program changer I have. Here's the code used for debugging: #include "YM2149.h" #include "MIDI.h" //Had to change MIDI.h to use Serial1 instead of Serial #define SERIAL1RXPIN WING_C_15 //Audio-MIDI Wing connected to CH #define SERIAL1TXPIN WING_C_14 //Audio-MIDI Wing connected to CH int incomingByte = 0; char incoming = 0; void setup(){ Serial.begin(9600); //Move the second serial port pin to where we need it, this is for MIDI input. pinMode(SERIAL1RXPIN,INPUT); inputPinForFunction(SERIAL1RXPIN, 1); //Move the second serial port pin to where we need it, this is for MIDI output. pinMode(SERIAL1TXPIN,OUTPUT); outputPinForFunction(SERIAL1TXPIN, 6); //Setup the pin modes for the YMZ294 setupYM2149(); // Initiate MIDI communications, listen to all channels MIDI.begin(MIDI_CHANNEL_OMNI); MIDI.setHandleProgramChange(HandleProgramChange); } void loop(){ // Call MIDI.read the fastest you can for real-time performance. MIDI.read(); // Read in command if (Serial.available() > 0) { incomingByte = Serial.read(); enable_midi(incomingByte); } } void enable_midi(int incoming) { if(incoming == 49) { Serial.println("HIT"); MIDI.sendProgramChange(1,1); } } void HandleProgramChange(byte channel, byte number) { Serial.println("Program change received: "); Serial.println(number); } The serial monitor says HIT on sending a 1 to it, but no program change message. But when I plug in my external MIDI program changer device it says "Program change received:" and works correctly. After wiggling around the MIDI In/Out wing it printed: "Program change received: 128" and "Program change received: 64" and "Program change received: 135" and so on... My guess is I constructed the wing incorrectly. When I plug it into the papilio, I observed with a DMM that a few nodes turn to ground when I believe they shouldn't, such as the MIDI out line! Do you have a schematic so I can go through and check all the connections?
  6. salggarcia

    MIDI/Audio Wing

    Okay the MIDI In/Out was received thank you very much. After adding the code to add the TX line on the MIDI serial port like you suggested, I connected the MIDI out to a MIDI device that accepts program changes on MIDI channel 1. Im not sure how to send it a program change correctly, since after just adding this line to change it to program 1: MIDI.sendProgramChange(1,1); The device does not respond. I just may not be including something or not passing the right values in the "sendProgramChange" function. Please let me know ! -Sal
  7. salggarcia

    MIDI/Audio Wing

    Great! thank you very much -Sal
  8. salggarcia

    MIDI/Audio Wing

    Sorry let me rephrase that, The second Serial port for the MIDI for both rx and tx I understand and looks simple to integrate as you explained, but I also wanted to change the ports of which the first Serial port talks to the computer with. I see in the "papilio_one.ucf" file in the zpuino s3e250 apollo variant folder of the ZPUino hdl code that right now, the rx and tx lines are on P89 and P90, respectively. I was hoping just to change this to two external ports, say P91 and P92, to hook up my own serial bluetooth device to replace the cable and talk to the board wirelessly using Hyperterminal. I opened up the ISE project in these folders with an error right away with a few missing files. After attempting to resolve most of the missing file issues, I updated the ucf file to generate a new .bit file for the apollo variant, but I got a few errors associated with "no wishbonepkg" library found in work library. If this is the approach to doing this, could you assist me in these errors, or send me an updated version of the ISE project? That would be greatly appreciated! -Sal Garcia
  9. salggarcia

    MIDI/Audio Wing

    Great! looks like the path of least resistance for me. Now what would be the steps needed in order to change the pins of that second serial port as you say? -Sal
  10. salggarcia

    MIDI/Audio Wing

    That would be great! How can I order one? Also, I'm still trying to just get MIDI in working. How can I can I specify which port to talk to (I plugged it in the Wing 2 slot) using the AVR8 processor and the MIDI library? Thanks -Sal
  11. salggarcia

    MIDI/Audio Wing

    Also, I was looking at the MIDI Audio wing schematic and wondering if it is even set up to do MIDI out, because if I connected it to the wing 2 port on the papilio one, can I still use that same RX line pin? Thanks! -Sal
  12. salggarcia

    MIDI/Audio Wing

    Okay understood. But since I'm doing very basic functions I think i'll stick with the AVR8 processor. But now to identify which port the MIDI wing is plugged into can I still use: #define SERIAL1RXPIN WING_C_15 //Audio-MIDI Wing connected to CH or do I have to do it another way, since it says "WING_C_15 is not declared in this scope" - Sal
  13. salggarcia

    MIDI/Audio Wing

    Does the Kickstarter project you just released have any samples of the code? Im interested in how you accomplished the MIDI in, out and through thanks -Sal
  14. salggarcia

    MIDI/Audio Wing

    Great! Looking forward to seeing that kickstarter project. For using the Arduino IDE, would you suggest using the ZPUino Soft Processor or the AVR8 Soft Processor for implementing this?
  15. salggarcia

    MIDI/Audio Wing

    Hello, I'm new here and could use some guidance to see if this project is even possible. I wanted to use the Papilio One and the MIDI wing to make a MIDI controller, so the MIDI in would need to be a MIDI out, and I would use hyperterminal to issue commands to the MIDI controller (like Channel #, program change, control change messages). Please let me know if this is possible and what would be the first steps in accomplishing this project. thanks! -Sal