Hi,
Please prepare yourself to a quite long story.
I used to install VSAT systems using handheld satellite spectrum analyzers (SSA), and one of the models which got my attention is Unaohm EP-300, it’s based on B&W analog TV with Internal OSD (On Screen Display) and spectrum analyzer interface (I think), have a look at it in this link:
I had experience with PIC and already made my own handheld SSA with GLCD, but the Idea of cloning even a basic version EP-300 is living inside my head .
I had couple of tiny85 doing nothing and I like the AVR learning so the first step was to load tiny85 with VUSB boot loader based on instructions from here:
http://anuduino.os-hardware.in/data/html_book/chapter_2.html
And here:
The IDE recognized the board and I was able to load some examples successfully .
Next was the TVout library, but all of my attempts to compile it for tiny85 went unsuccessful, too many errors, too much time spend, then I found this link:
http://www.javiervalcarce.eu/wiki/TV_Video_Signal_Generator_with_Arduino
I used that project with some modifications to timing and lines setup, and it worked.
To make life easier, I divided the project into three parts, the first was to generate flat screen with two black edges and the horizontal lines in between may switch from black to white depending on set value of variable named (X), which went well (see attached pictures showing several levels of X), then the second part is to simulate the change of sat tuner base-band level using pot, then the third part to control the sat tuner using I2C .
Next was to change the value of variable (X) using pot connected to PB2, the problem started here, when enable the code to set (X) from analogRead the sync will go crazy like been multiplied several times (picture attached), I searched a lot but so far I am unable to understand why sync is multiplied, if any of you guys have a clue please jump in, attached the INO file for reference (code seems to be too long to fit within 9000 characters limit for this message !).
Your advice is much appreciated.
Thanks
Katada
TVout_on_tiny85_-_under_test.ino (9.93 KB)