Video Experimenter on the Seeeduino Mega


The nootropic design Video Experimenter shield uses some pretty advanced features of the Arduino’s ATmega328 microcontroller. One downside of this is that you can’t use the Video Experimenter shield on an Arduino Mega. Why? Well, the designers of the Arduino Mega didn’t connect a lot of the ATmega1280/ATmega2560 pins to headers on the board so that you could use them! And, as it turns out, the pins with key features utilized by the Video Experimenter are not connected to anything!

To perform video overlay, the Video Experimenter relies on an input capture pin (to capture the exact time that the pin has changed state). Even though the ATmega1280/ATmega2560 has 4 input capture pins, none of them are connected!

Important pins not even connected!




And to capture video images in the Arduino’s memory, Video Experimenter uses the analog comparator in the chip. But the AIN0 pin for the analog comparator is not connected! What were the Arduino Mega designers thinking?

Fortunately, there is the Seeeduino Mega. The guys at Seeed Studio broke out nearly all the pins on the ATmega1280 so that you can use them. I love the Seeeduino Mega because it provides so many pins on a rather small board.

Simply make 5 connections with jumper wires and you can use the Video Experimenter on the Seeeduino Mega. No code changes necessary!

By connecting 5 jumper wires, you can use the Seeeduino Mega


 
Here are the connections to make:
11 to 9 (white wire in picture above)
7 to 29 on the Seeeduino Mega (yellow wire)
INPUT pin on the Video Experimenter to PE2 on the Seeeduino Mega (green wire)
SYNCOUT pin on the Video Experimenter to PD4 on the Seeeduino Mega (gray wire)
VSYNC pin on the Video Experimenter to 21 on the Seeeduino Mega (brown wire)

Now you can use the Video Experimenter with an Arduino that has a more powerful processor. It really helps to have 8K of SRAM instead of 2K. Now you can do text and graphics overlay with higher resolutions, like 192×128. Have fun!




Published by Michael, on July 13th, 2011 at 2:02 pm. Filed under: Arduino,Level 1,Video. | 14 Comments |





14 Responses to “Video Experimenter on the Seeeduino Mega”

  1. Agreed — the Seeedunio Mega is mega better than the Mega. Their first Mega was their second board to put on the extra row of aligned headers for D8-13+AREF+AGND. Something that the Arduino team hasn’t been able to do in what,… five tries? The Seeeduino Mega is a big win over the original.

    Glad to hear that you found them, and that you’re a fan too. That’s what happens when actual engineers engineer.

    Comment by ewertz on July 14, 2011 at 3:37 AM



  2. I am experimenting with blind sensory substitution …..The vOICe… which currently uses Android phone hardware to produce audio scapes for blind users.
    A full height video frame produces a massive chorded sound picture which with practice produces a sensory image.
    However , a restricted height image, eg 20 lines of pixels, produces a very easily learnable radar scan type of signal. This enables door location, reaching and grasping, domestic and street mobility, at a very early stage of rehabilitation.
    In actual operation, this restricted scan has been compared to the swishing of a white cane, even sounding pretty similar. This is a very worthwhile and Public Domain avenue for projects. The Video Experimenter board sounds ideal for this work.

    Comment by johnf on July 17, 2011 at 11:01 AM



  3. Score one for Open Hardware!

    Comment by Dougstrickland on July 20, 2011 at 8:08 PM



  4. To see The vOICe in action, London, 20 Nov. 2011, look up http://www.youtube.com/watch?v=ycw1cV0e7Gg
    The user is burdened with unreliable USB spy glasses , cabled to a PC tablet in backpack.
    The full height soundscape is being displayed.
    Now imagine the system pared down to a horizontal slot eg 10 lines of pixels, without much of the academic software built into the vOICe system.
    This would give collision avoidance immediately, and by nodding the user can vertically scan the whole scene.
    Try an experiment. Cut a narrow slot in a shoe box and study the world through it. Imagine this as a sonified display .
    With a NTSC camera, gated down to 10 lines output, snapshot capture and one-second sonification appears quite feasible with Arduino variants.
    The whole system could be on one board, hat or frame mounted.

    Comment by johnf on November 29, 2011 at 5:46 AM



  5. I have purchased and built the experimenter board and I am now wanting to use it with the Seeeduino R3 board. I have tried to translate your instructions for adapting the Seeeduino Mega but do not know the equivalent pins on my board. Please can you put up a guide to getting video experimenter working with the Seeeduino R3 (which I do hope is possible).
    Thanks

    Comment by JimG on July 8, 2012 at 9:43 AM



  6. I don’t know what a Seeeduino R3 is … Google did not find anything. Do you mean a Seeeduino V3.0? If so, it is Arduino compatible, so the Video Experimenter will work without having to do anything special. Any Arduino compatible board with an ATmega328 will work.

    Comment by Michael on July 8, 2012 at 9:55 AM



  7. Hi Michael,
    Thanks for your prompt reply. Yes I did mean the V3.
    Thanks to your confirmation that it has all the right connections, I shall now plug it all together with confidence and start experimenting.Cheers.

    Comment by JimG on July 9, 2012 at 4:50 AM



  8. Hi,

    What is the green wire for? I want to capture video frames and communicate over I2C at the same time, and it seem to create problems for me…

    Comment by Denis on May 31, 2013 at 10:11 AM



  9. The green wire is the input pin for sampling the voltage. I2C is going to be very hard while doing video stuff. See the forum for further discussion.

    Comment by Michael on May 31, 2013 at 10:41 AM



  10. Hi

    Thanks for the hint about visiting forum, I have read about the trick with set_vbi_hook(). However I still have a concern about I2C because of the brown wire connected to SCL. What is the brown wire for?

    Comment by Denis on June 1, 2013 at 3:35 PM



  11. Hi again,

    I’ve solved the problem by soldering the brown wire to pin D18 (TX1) and by changing

    EIMSK = _BV(INT0);
    EICRA = _BV(ISC01);

    to

    EIMSK = _BV(INT3);
    EICRA = _BV(ISC31);

    and

    ISR(INT0_vect) {

    to

    ISR(INT3_vect) {

    Now everything works fine (I2C and frame capturing). Thanks for the great product!

    Comment by Denis on June 2, 2013 at 5:23 AM



  12. Ok, makes sense. The brown wire is the vertical sync pin of the LM1881 and is connected to external interrupt 0, but you moved it to external interrupt 3 to avoid the SCL conflict. Good job!

    Comment by Michael on June 2, 2013 at 7:00 AM



  13. HI,
    Seeeduino Mega V3.0 is an Arduino board based on ATmega2560, you confirm it can work with the shield?

    Regards

    Comment by Lemorlenny on July 29, 2013 at 7:47 AM



  14. It should work, Lemorlenny.

    Comment by Michael on July 29, 2013 at 8:37 AM



Leave a Reply

*