xperiments / arduino-tvout

Automatically exported from code.google.com/p/arduino-tvout
0 stars 0 forks source link

Arduino Mega 2560 - no signal #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Using an Arduino Mega 2560 with the specified hardware, it doesn't show 
anything at the TV, all is well connected, i think that could be  my Arduino 
because i saw a lot of tutorials with Arduino duemilanove or Uno but any with 
Mega 2560. 

What is the expected output? What do you see instead?
The example sketch

What version of the product are you using? On what operating system?

TvoutBeta1
Windows/Ubuntu(Lastest version)

Please provide any additional information below.

I tried changing all the components but it still not working..

Thanks.

Original issue reported on code.google.com by shqu...@gmail.com on 2 Apr 2012 at 12:16

GoogleCodeExporter commented 8 years ago
I really worked as follows:

GND ----------------------- party outside of the connector
Pin 11 ---------- ------------ ------ 1k Resistance inside the connector
Pin 27 ---------- ------------ 470 ohms resistance --- inside the connector 

La solución es conectar el pin de video a la patilla 27 en vez de conectarlo 
al pin A7

Sorry for my bad English but I translate from Spanish with the google translator

Original comment by spambasu...@gmail.com on 11 May 2012 at 10:03

GoogleCodeExporter commented 8 years ago
Hola¡

gracias antes de todo jeje

Ya hice el cambio pero sigue igual, todo negro aunque percibe que hay una 
señal. 
Lo he probado en varios televisores, tanto antiguos como nuevos, pero nada.
¿para que funcionase cambiaste la librería para que lo pasase por el pin 27?
Gracias¡
un Salu2¡

Original comment by shqu...@gmail.com on 13 May 2012 at 10:12

GoogleCodeExporter commented 8 years ago
P. "¿para que funcionase cambiaste la librería para que lo pasase por el pin 
27?"
R. "No, a mí no me funcionaba y decidí probar pines hasta dar con el correcto"

¿Me pasas la sketch que usas?
¿Que modos soporta tu TV (PAL NTSC etc.)?
Si en la sketch inicia con NTSC puedes probar a cambiarlo a PAL (a ver si va 
bién)
¿No estará mal el conector RCA?

Comprueba todo esto y mira a ver si funciona.

Saludos.

PD: Estoy haciendo una interfaz gráfica con la librería: 
http://www.youtube.com/watch?v=nIfmB9VJe70
PD1: El led del pin 13 se enciende al hacer "click" en encender led y se apaga 
al hacer "click" en apagar led.
Message for English speakers: please use google translator

Original comment by spambasu...@gmail.com on 13 May 2012 at 2:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hola¡ 
El conector esta bien porque lo probé con un DVD portátil y va bien.
El sketch es el ejemplo de pal de la librería y no cambie nada de la librería 
en cuanto a pines , solo una importación que da error (Wprogram.h por 
Arduino.h)y compila bien sin fallos pero luego al conectarlo se detecta una 
señal , por que no sale "no hay señal", pero no se muestra nada.

Y a ver si mañana tengo un momento y te pongo una foto del montaje pero vamos 
es el mismo que el de la página jeje, aunque añadí unos diodos pero igual.

De todos modos voy a quitarla y volverla a poner para probar lo que hiciste tú.

Gracias por la ayuda :)

Salu2¡

Original comment by shqu...@gmail.com on 13 May 2012 at 8:16

GoogleCodeExporter commented 8 years ago
Mi sketch:

#include <SoftwareSerial.h>
#include <TVout.h>
#include <fontALL.h>

int menum=1;
int acercade=0;
TVout TV;
void setup()  {
  pinMode(13,OUTPUT);
  pinMode(7,INPUT);
  pinMode(6,INPUT);
  Serial.begin(9600);
  TV.begin(_PAL,640,480);
  TV.select_font(font6x8);
  ventana("Panel de control");
  menux("Encender led");
  menu1("Apagar led");
  menu2("Acerca de...");
  TV.println(55,125,"LED");
  TV.draw_rect(15,120,610,45,WHITE);
  TV.draw_circle(60,120,5,WHITE,WHITE);

}

void loop() {

   switch (digitalRead(7)) {
    case 0:
      delay(100);
      if(digitalRead(7)) {
       if(!acercade){
         if(menum>2) {menum=0;}
         while(!digitalRead(7)) {}
         select(menum);
         menum=menum+1;
       }
      }
      break;
    case 1:
      break;
  }

   switch (digitalRead(6)) {
    case 0:
       delay(100);
       if(digitalRead(6)) {
         if(!acercade){
           while(!digitalRead(6)) {}
           sel(menum);
         } else {
           acercade=0;
           tapat();
           ventana("Panel de control");
           menux("Encender led");
           menu1("Apagar led");
           menu2("Acerca de...");
         }
       }
       break;
    case 1:
      break;
  }

  //if (Serial.available()) {
  //  TV.print((char)Serial.read());
  //}
}

void ventana(const char* titulo) {
  TV.println(15,5,titulo);
   TV.draw_rect(0,0,639,478,WHITE);
   TV.draw_rect(0,0,639,15,WHITE);
}

void menu(const char* texto) {
  TV.println(20,25,texto);
  TV.draw_rect(15,20,610,15,WHITE);
}

void menu1(const char* texto) {
  TV.println(20,45,texto);
  TV.draw_rect(15,40,610,15,WHITE);
}

void menu2(const char* texto) {
  TV.println(20,65,texto);
  TV.draw_rect(15,60,610,15,WHITE);
}

void menux(const char* texto) {
  TV.println(20,25,texto);
  TV.draw_rect(15,20,610,15,WHITE,INVERT);
}

void menu1x(const char* texto) {
  TV.println(20,45,texto);
  TV.draw_rect(15,40,610,15,WHITE,INVERT);
}

void menu2x(const char* texto) {
  TV.println(20,65,texto);
  TV.draw_rect(15,60,610,15,WHITE,INVERT);
}

void tapar() {
  TV.draw_rect(15,20,610,15,BLACK,BLACK);
}

void tapar1() {
  TV.draw_rect(15,40,610,15,BLACK,BLACK);
}

void tapar2() {
  TV.draw_rect(15,60,610,15,BLACK,BLACK);
}

void tapat() {
   TV.draw_rect(5,20,630,420,BLACK,BLACK);
}

void texto(const char* text) {
  TV.println(15,20,text);
}
void texto1(const char* text) {
  TV.println(15,40,text);
}
void texto2(const char* text) {
  TV.println(15,60,text);
}
void texto3(const char* text) {
  TV.println(15,80,text);
}
void texto4(const char* text) {
  TV.println(15,100,text);
}

void textosalir(const char* text) {
  TV.println(30,160,text);
  TV.draw_rect(15,155,610,15,WHITE,INVERT);
}

void select(int menus) {
  switch (menus) {
    case 0:
      tapar();
      menux("Encender led");
      tapar1();
      menu1("Apagar led");
      tapar2();
      menu2("Acerca de...");
      break;
    case 1:
      tapar();
      menu("Encender led");
      tapar1();
      menu1x("Apagar led");
      tapar2();
      menu2("Acerca de...");
      break;
    case 2: 
      tapar();
      menu("Encender led");
      tapar1();
      menu1("Apagar led");
      tapar2();
      menu2x("Acerca de...");
  }
}

void sel(int menu) {
  switch (menu-1) {
    case 0:

      digitalWrite(13,HIGH);
      break;
    case 1:
      digitalWrite(13,LOW);
      break;
    case 2:
    acercade=1;
    ventana("Acerca de...    ");
    tapat();
    texto("Hecho por:");
    texto1("TUX Infosystems.");
    texto2("");
    texto3("Sobre la placa:");
    texto4("Arduino");
    textosalir("Salir: [OK]");
    menum=1;
      break;
  }
}

A ver si te funciona:

Original comment by spambasu...@gmail.com on 14 May 2012 at 6:56

GoogleCodeExporter commented 8 years ago
PD: ¿Cual es el valor de las resistencias?

Original comment by spambasu...@gmail.com on 14 May 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Siento mucho la tardanza y gracias por la ayuda pero no he tenido tiempo y 
ahora tengo un rato lo pruebo y te lo comento
el valor de las resistencias es 470h y 1k, es lo que pone en la pagina inicial

Gracias¡

Original comment by shqu...@gmail.com on 29 May 2012 at 7:24

GoogleCodeExporter commented 8 years ago
Ya lo he probado y queda la pantalla en blanco, nose he probado todos los pines 
pero alguna combinación se me habrá escapado jeje
Me parece extraño ya que son las mismas cosas e igual, arduino mega 2560, dos 
resistencias de sus valores, el cable que funciona, los botones (probado sin 
pantalla enciende el led) y el mismo sketch nose si la librería tiene algo que 
ver.

Voy a seguir probando si se te ocurre algo dímelo, y si no lo consigo buscare 
mas exhaustivamente el problema :)

Gracias y un Saludo¡¡

Original comment by shqu...@gmail.com on 29 May 2012 at 8:28

GoogleCodeExporter commented 8 years ago
¿Puede ser que esté seleccionada otra entrada de vídeo en el 
televisor/pantalla?
¿Utilizas cable Euroconector --> RCA Video?
¿Que salida tienes seleccionada en la configuración de tu televisor/pantalla?
¿Has probado a cambiarla?
¿Has probado a bajar el valor de las resistencias?
¿El arduino se alimenta con 5vDC?

Mira a ver si el fallo consiste en algo de eso.

Saludos.

Original comment by spambasu...@gmail.com on 2 Jun 2012 at 3:00

GoogleCodeExporter commented 8 years ago
Olá a todos.
Estou falando português porque não sei falar espanhol, mas consegui entender 
a conversa.
O meu problema era exatamente o mesmo, Arduino Mega 2560,TvoutBeta1,Arduino 
1.0.1, com imagem preta.
Consegui resolver o problema ligando o cabo de video(resistor de 470h) no pino 
29.

Iria tentar botar no pino 27 como disseram anteriormente mas felizmente acabei 
botando errado no pino 29 e funcionou!

Obrigado por terem me ajudado a resolver o problema, espero ter ajudado também!

Original comment by flaviorbayer on 10 Sep 2012 at 12:33

GoogleCodeExporter commented 8 years ago
Muchas gracias!!!! Al final puede hacerlo funcionar con el pin 27, solo que 
tengo un problema, que el texto salen como codigos QR jajaaja pero buneno a ver 
si lo soluciono ;) 

Original comment by windows....@gmail.com on 6 Jan 2014 at 4:34

GoogleCodeExporter commented 8 years ago
Hi I wonder if I can help with a library and a circuit to have images using VGA 
with Arduino MEGA 2560 already and tried some and not e able to either.

Original comment by ronaldrg...@gmail.com on 30 Mar 2015 at 5:33

GoogleCodeExporter commented 8 years ago
hola, yo tengo el mismo problema que  shqu...@gmail.com pero al intentar probar 
con el código que metiste en el mensaje #6 me da un error:
Sketch uses 12.374 bytes (4%) of program storage space. Maximum is 253.952 
bytes.
Global variables use 441 bytes (5%) of dynamic memory, leaving 7.751 bytes for 
local variables. Maximum is 8.192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

Sabeis que puede ser?

Original comment by drba...@gmail.com on 5 Jun 2015 at 12:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Después de mucho revisar y leer he descartado que sea cosa de controladores ya 
que aunque se trate de una placa china, he conseguido el driver y el problema 
persiste, estoy casi seguro de que se trata de un problema en el bootloader de 
la placa que es una mega2560 china, aunque al no tener la estructura de la 
standard estoy teniendo problemas para encontrar la forma de Flashearla. Se 
bien como funcionan estas cosas, pero en arduino soy un poco nuevo, cualquier 
ayuda que me podáis dar os lo agradezco, la placa que tengo es esta:

http://www.dx.com/es/p/improved-2014-mega2560-r3-development-board-module-w-usb-
cable-for-arduino-blue-368279#.VXHqmkYenBY

Muchas gracias

Original comment by drba...@gmail.com on 5 Jun 2015 at 6:31

GoogleCodeExporter commented 8 years ago
Hola, nunca he utilizado una placa china. Creo que tienes que usar otro arduino 
para programarla. 
https://www.arduino.cc/en/Hacking/Bootloader?from=Tutorial.Bootloader

Original comment by spambasu...@gmail.com on 20 Aug 2015 at 12:08