Pages: [1]   Go Down
Author Topic: Arduino TvOut  (Read 969 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 80
young engineer of the future.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I decided to try the arduinos tv out function two days ago and its cool. I now am experimenting with outputting values from potentiometers to my tv. I wrote a simple code that does so and it works. I've also now included an led as a light sensor.
heres the code.
Quote
int potPin1= A0;
int val = A5;
int val1 = A4;


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

TVout TV;

void setup(){
  TV.begin(NTSC,120,96);
  TV.select_font(font6x8);
   TV.println("Arduino Analog Read Tv");
}

void loop(){
  int sensorValue = analogRead(potPin1);
  delay(1000);
  TV.println(sensorValue, DEC);
   val = analogRead (A5);
   delay(1000);
   TV.println(val, DEC);
   val1 = analogRead(A4);
   delay(1000);
   TV.println(val1, DEC);
   
   

}
 

Logged

Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 80
young engineer of the future.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a way to make a custom logo show up behind the text. and also can I display a custom logo at the beginning.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12465
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can I display a custom logo at the beginning.

Never worked with TVout, but I assume you can do  (by means of ASCII-art )

Code:
void setup(){
  TV.begin(NTSC,120,96);
  TV.select_font(font6x8);
   TV.println("Arduino Analog Read Tv");

  //
  // print your logo here  (== many TV println()'s
  //
  delay(5000);
}

void loop()
{
  etc ...
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: