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.
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);}