Hi
i know i have asked this question before but im asking again,
how can i ( With a pre written code or a tutorial on how to write the code as i do not know how to code any processing language) use the computer as a storage device for my arduino so then it can read .H files produced by the GLCD bitmap converter off of the computer as i do not have enough money to buy a sd card shield.
how can i use the computer as a storage device for my arduino so then it can read .H files produced by the GLCD bitmap converter off of the computer
I'm wondering just which part of "You can't" you don't understand? The .h extension is for files that a compiler reads. Your Arduino does not have an operating system or compiler on it, and it can not build it's own programs.
As for reading the values in a .h file at run time, from a text file on the PC, again that is not possible.
The Arduino could send some data to an application running on the PC, informing it of the need for some data. The application on the PC could then stream data back to the Arduino, which would REPLACE data in an array previously allocated, as long as the new data streamed in fit in the existing array.
However, this requires an application on the PC that can receive data from the Arduino, and send data to the Arduino, which appears to be well beyond your skills at this time.
particularly PaulS' reply #9, and come back to us with sensible questions.
Repeatedly asking the same question in the hope that eventually the answer you want to hear will come up is insane.
If it is for reading bitmap datas or things like that you can perform it by serial port.
You would have to program an protocol and create another sotfware on the pc to send datas as many time the arduino asks for it.
Exemple :
Arduino to computer -> Give me data of picture 5 by Serial
Software on pc -> Ok I will send you XXX bytes of datas, the size is X*Y pixels
Arduino to computer -> Start sending me datas please
Software on pc -> Sending datas
Software on pc -> all is done
Arduino to computer -> ok Thanks.
So from, you must do this kind of softwares to drive it. But serial may be quit slow to do it.
Each file is 5kb big and is the size of 128X64 pixels
And each pixel is how many bits?
Let us,for a moment, assume they are simply single bits.
128 x 64 is 8192 bits.
Times 30Hz is 245 760 bits per second.
Assuming a standard serial protocol overhead of two bits for every eight data bits (bare minimum, remember) you're going to have to manage well over 300 kbits per second.
Actually, that's bits per second, or 30720 bytes per second.
The 30720 bytes require 10 bits per byte to send. That's 307200 bits per second. With a maximum baud rate of 115200 bits per second, your absolute maximum frame rate for a black and white image is going to be 15 frames per second. For 8 bit color, plan on 2 frames per second. For full color, plan on doing something else.
Ok - What i really want to do is to display a video like Craft by lft - YouTube But instead of a full LCD i want to display it on my GLCD display. Whats the best way of going on to this.
From the VGA demo video you showed, assuming 320 x 200 resolution, the visible part of each line of video lasts (IIRC) about 25 microseconds (his timing was probably a bit lax, but the monitor would be a little forgiving).
That's enough to execute about 400 instructions (machine instructions, remember, not C statements) at 16MHz.
Most of those instructions will be writing stuff to the output DACs, leaving the blanking overhead of about 10-15% of the total frame time to do other stuff.
Thats impressive for an AVR. It highlights the issues with noobs and youtube videos, I consider myself a reasonably competent arduino programmer, but theres no way on earth I could produce something like that. It isn't video, its clever direct VGA signal manipulation and it is limited to low numbers of colours and straight forward mathematical algorithms. But my hats off to the guy who did the software..........
I have done CCIR video in assembler on a PIC at 1MHz instruction rate, and that was hairy.
I just about managed seven-segment style numerals to make a clock, and a simple greyscale test pattern.