Pages: [1]   Go Down
Author Topic: Arduino Ethernet and TVOut?  (Read 1638 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduinos are cranky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've successfully implemented the DemoNTSC sketch using later versions of the TVOut libraries on an Arduino Uno.

However, the same sketch and circuitry does not display video when uploaded to an Arduino Ethernet board, regardless which version of the TVOut library I use. I can detect some sort of signal from the Arduino Ethernet, but the analog TV I'm using is not able to render it into video.

Does anyone know what changes might be required to implement any version of TVOut libraries to work with an Arduino Ethernet board?
« Last Edit: May 14, 2012, 09:04:34 am by uberhund » Logged

Santanyana was only half right. We are doomed to repeat history with impunity, whether we choose to remember it or not

Offline Offline
Sr. Member
****
Karma: 1
Posts: 322
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know if this is the problem because I have not looked at the Ethernet libraries.  But the TVOut libraries take over Timer1 and possibly Timer 2.  This can play hell with PWM, Tone and other things.  It may be that your Ethernet is one of those things.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduinos are cranky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the observation, RandallR. I've been looking at conflicts and notice potential others as well (e.g., pin 11 on the Arduino Ethernet card may be in use by both the ethernet and TVOut libraries).

I've been trying to avoid it, but it looks like I will have to implement ethernet on a separate Arduino from the TV driver, and communicate between the two using I2C, which doubles the cost and complexity of the project.

Either that, or wait a year to get my hands on a Raspberry Pi.
Logged

Santanyana was only half right. We are doomed to repeat history with impunity, whether we choose to remember it or not

Offline Offline
Sr. Member
****
Karma: 1
Posts: 322
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you can program, you might want to look at the libraries and see if you can resolve the conflict.  For example, TVOut uses Timer 2 for audio generation.  If that is the conflict and you don't need audio, then disable that part of the TVOut library.  You can download the Datasheet for the processor from ATMEL.  This gives a very good description of the various timers. 
I was thinking of writing my own version of TVOut to use only timer 2 and use less memory.  However, it has not been a priority.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey! I had the same troubble, so I started reading the TVout library and in the main .cpp there are some audio functions (someone sais that both libraries Eth and TVout use the pin 11) interfering with the Eth lib, so I deleted them. Now, the TVout works great at the same time that Eth, but the sound is unavailable.

I upload the .zip with the modified lib

* TVoutEther.zip (38.9 KB - downloaded 22 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there!

I'm in a very similar situation - but I have an Arduino Uno with an Ethernet shield added. What I want to do is display text from the web using the tvout library. I've found that it will not work with the Arduino ethernet.h library included... nothing gets displayed. If I remove it, it will display text.

I have tried compiling using the ethtvout library included in the previous post (thanks!) but it had the same result.

Is there anything else I could try or should be looking at?
Logged

Pages: [1]   Go Up
Jump to: