Make sure you have the 75() resistor correct or else you may not see anything on your tv! also check the voltages with a multi meter can save your tv from more current then nesserary or worse! Have fun

Hello, I am working on an interface that converts midi signals into visuals. I based this on the arduino pong code. Now I am on the end of my ideas. the 2 parts: Midi Input Signal and Arduino pong works seperately perfekt but its so hard for me to connect them. I hope there is someone out who can help meI did the midi input shown here: it works

here is now my code that I build :-(The midi request doesn 't work. My goal is to show different pictures with different midi nots from my drumcomputer. If Midi Note 1 and Velocity 1 arrives show Picture 1 If Midi Note 1 and Velocity 1 arrives show Picture 12its important that the programm asks the whole time if there is a new Midi note.....here is the code mixed with the arduino pong code. Now I can just see 2 does because the programm steps in the following else if part

// the video frameBufferbyte frameBuffer[WIDTH][HEIGHT];// loop indicesbyte index, index2;// pal video line loopbyte line;// current drawing line in framebufferbyte newLine;// loop counter to for the main loop delayint waitingCount = 0;// if we should be waiting for something to happenboolean waiting=true;// value of the counter controlling the freq of updatesbyte updateCounter=0;

if (MIDI.read()) { switch(MIDI.getType()) { // Get the type of the message we caught case PC: midi_type = MIDI.getData1(); return midi; //BlinkLed(MIDI.getData1()); // Blink the LED a number of times // correponding to the program number // (0 to 127, it can last a while..) break; // See the online reference for other types default: break; } }}void drawVisualisation(){ int midi = 0; midi = readMidi();

I have made this project and I have used (TIP!) two variable resistors for pin 8 (synch) and instead of the 75 Ohm. That makes it easier to reach those values.

The game works in part:- startup is crystal (clear)- playing is very bad, the problem is with the updates (they should fall between scanlines but they don't making the screen flicker)- between two rounds (after a 'ball' is missed) the screen is nice again.

putting UPDATE_INTERVAL to 100 helps (although it flickers after that), but the games is unplayable then...

I use CLI so that should be ok. I have a duemilanove with an 328 uC.

[UPDATE:]It was caused by delayMicroseconds(10); around line 558. removing that made my game work at least .

I don't think it's neccesary for most TVs. The 75ohm resistor is implied as being in the TV.See this thread at AVRFreaks for probably more information than you wanted (note that the resistor values are slightly different because of the inline diodes).