Forum Replies Created
-
AuthorPosts
-
zhengys18Participant
Ok. Problem solved. Previously I configured pin2 as output using pinmode. Seems like then the interrupt is detached. I reattached the interrupt and now it is working. Thanks a lot.
A following question is that is there any way to put text on the corner of the video? I set it to (0,0) and it is not using the whole screen.
zhengys18ParticipantAlso, currently I only have 1 wire connected to the video input,1 wire to the gnd and use RCA video output. Do I need to connect anything to D2?
zhengys18ParticipantI buy the assembled one. I configured the digital pin 2 using the same Arduino before, will it cause any problem? If so, how can I reset to its original state?
zhengys18Participant#include <TVout.h>
#include <fontALL.h>#define W 128
#define H 72TVout tv;
unsigned char x,y;
unsigned char originx = 5;
unsigned char originy = 80;
unsigned char plotx = originx;
unsigned char ploty = 40;
char s[64];
unsigned int n = 0;
int index = 0;
int messageLen = 32;
char message[] = “…OVERLAY TEXT AND GRAPHICS ON A VIDEO SIGNAL…OVERLAY TEXT AND GRAPHICS ON A VIDEO SIGNAL”;
char saveChar;
float t=0;unsigned long time1;
unsigned long time2;void setup() {
tv.begin(NTSC, W, H);
initOverlay();
tv.select_font(font4x6);
tv.fill(0);
Serial.begin(9600);
t=0;
}
// Initialize ATMega registers for video overlay capability.
// Must be called after tv.begin().
void initOverlay() {
TCCR1A = 0;
// Enable timer1. ICES0 is set to 0 for falling edge detection on input capture pin.
TCCR1B = _BV(CS10);// Enable input capture interrupt
TIMSK1 |= _BV(ICIE1);// Enable external interrupt INT0 on pin 2 with falling edge.
EIMSK = _BV(INT0);
EICRA = _BV(ISC01);
}// Required to reset the scan line when the vertical sync occurs
ISR(INT0_vect) {
display.scanLine = 0;
}void loop() {
time1 = millis();
tv.delay_frame(1);
int int_t=int(t*1000);
sprintf(s, “%d”,int_t);t=t+0.001;
tv.fill(0);
tv.print(0, 0, s);
//tv.draw_line(-10,0,W,0,1);
//tv.draw_line(-10,0,0,H,1);time2 = millis();
delay(50-(time2-time1));
}I also use the code here: http://nootropicdesign.com/projectlab/2011/03/20/text-and-graphics-overlay/
but the number still is moving vertically.zhengys18ParticipantWe have a wire for GoPro to output AV video and ground signal, such as http://www.ebay.com/itm/5-8G-Transmitter-FPV-AV-Video-Real-time-Output-Cable-for-Gopro-Hero-3-Camera-TMR/162337711060?_trksid=p2385738.c100677.m4598&_trkparms=aid%3D222007%26algo%3DSIC.MBE%26ao%3D1%26asc%3D20160908110712%26meid%3Db10c6372155d4dd8ab35970fce28fb96%26pid%3D100677%26rk%3D3%26rkt%3D10%26sd%3D171268669043.
Can I solder the video output of Gopro to the input port directly on the Video Experimenter board instead of using another wire to convert to RCA?zhengys18ParticipantWe have a wire for GoPro to output AV video and ground signal, such as http://www.ebay.com/itm/5-8G-Transmitter-FPV-AV-Video-Real-time-Output-Cable-for-Gopro-Hero-3-Camera-TMR/162337711060?_trksid=p2385738.c100677.m4598&_trkparms=aid%3D222007%26algo%3DSIC.MBE%26ao%3D1%26asc%3D20160908110712%26meid%3Db10c6372155d4dd8ab35970fce28fb96%26pid%3D100677%26rk%3D3%26rkt%3D10%26sd%3D171268669043.
Can I solder the video output of Gopro to the input port directly on the Video Experimenter board instead of using another wire to convert to RCA?
-
AuthorPosts