Main Site Documentation

Camera ERROR in the example "GadgeteerCamera" from "Getting Started"


#1

Hi,

I was running the example “GadgeteerCamera”, and codes is as follow:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

namespace GadgeteerCamera
{
public partial class Program
{
GT.Timer timer = new GT.Timer(2000);
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{

        button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
        camera.PictureCaptured += new Camera.PictureCapturedEventHandler(camera_PictureCaptured);

        timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
        timer.Stop();
        
        
        Debug.Print("Program Started");
    }

    void timer_Tick(GT.Timer timer)
    {
        camera.TakePicture();
    }
    

    void camera_PictureCaptured(Camera sender, GT.Picture picture)
    {
        display.SimpleGraphics.DisplayImage(picture,5,5);
    }

    void button_ButtonPressed(Button sender, Button.ButtonState state)
    {
        if (button.IsLedOn)
        {
            Debug.Print("Button Pressed timer.Stop();");
            timer.Stop();
        }
        else
        {
            timer.Start();
            Debug.Print("Button Pressed timer.Start();");
        }

        button.ToggleLED();
    }
}

}

I found that after pressing the buttom I could see several pictures every 2 second from LCD at the beginning, but about 10 seconds later the errors came as follow:

Using mainboard GHIElectronics-FEZSpider version 1.0
Program Started
Button Pressed timer.Start();
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.
Camera ERROR : Unable to take picture. The camera is already busy taking a picture.

why?

Does it mean that the camera runs too slowly?

How can I solve it?


#2

Please see the sticky at the top:
Camera ModuleTroubleshooting Guide

In brief, if you look atht pins on the camera, they are probably connected to the ‘b’ sockets rather than the ‘a’ ones. If they are on the ‘a’ ones, let Gus know.

They know about the problem, and are hopefully finding a solution now.

Regards…


#3

I received today my camera in the FEZ Spider Kit.
I got images from camera with FEZ Spider, using webserver sample, but sometime i get same error. My camera has b sockets connection. I’ve also a FEZ Hydra board but not yet tested with camera.
I have to contact for support ?

Regards
Dome


#4

You already have :slight_smile: Support is here on the forum.