Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// image data
int imgdata [250] =
{
0, 200, 200,
1, 200, 200,
1, 400, 200,
1, 400, 400,
1, 200, 400,
1, 200, 200,
0, -400, 200,
2, -400, 200,
2, -200, 200,
2, -200, 400,
2, -400, 400,
2, -400, 200,
etc ........
analogWrite(DAC1, valx * zoom + midx);
analogWrite(DAC0, valy * zoom + midy);
@ Laserlightguy
I am not exactly sure what you mean by pincushion.
I just reread through the entire thread, and I guess I'm not seeing what the final performance figures were with the improved performance of the Duemilanove. Is an Arduino Due necessary for decent performance?
I just thought about a fair test.
1. I will put 10 values in the image data array.
(Or more or less. See if the scope can pick up the return to the beginning of the data array.)
2. I will let the DAC-s put out a square wave from 0 to 4.88V
(DAC numerical value 4000.)
3. I will set the color to white so 3 lasers have to be switched on.
(Using a simple digitalWrite command, no direct port manipulation.)
4. I will put the white color as last CASE in the SWITCH loop.
(So all cases need to be examined.)
5. I will delete all delay commands.
(To get the maximum speed)
That would be the worst case scenario I think.
Then hook it up to the scope at the galvo connectors on the PCB.
See what frequency I can get.
Anyone more items?