Webcam

 

You want to build your own webcam?
Observe your children or animals?
Also perfect for detectives and spys :-)

Overview

 

 

The original project is made by Simon Schulz. .
The Idea is to connect a mobile phone camera to the webserver and steer it by a servo-motor.


We made the nessecary changes to run it on our hardware.

(original project from Simon)

See the thread in the (german) forum here...


Software in the Download-Area...

 

Sample-Picture of our WebCam:

(Original-Size here 640x480 Pixels)

 

The Cam is a MCA25.
You can Buy it at eBay (1-3 EUR):

Search at the eBay shop...

 

The cam can be simply connected to the serial interface of our webserver.

It needs supply of 3,3- 3,6V. (5V and 2 Diodes). This is already present for the SD-card.

 

I just connected a small connector and made some wire-connections.

(In the general-purpose-section of our Webserver)

See it here :

 

 

It is also possible to connect a servo-motor to move the CAM. ....

 

 

Open the cam

 

 


Remove the screws....

 

Move the connector up and down until it breaks off.

 

...remove the rest of the connector pins with a solderiog iron!

 

Connect the cables and re-assemble the cam again

 

Connection to the Webserver

 

These are the inretesting points (coloured) :

 

Connection-Overview

Camera

Controller

Vcc

MMC/SD_4_Vcc

GND

GND

Reset

S1-5 (PD.6)

Camera Rx

S1-11 (TxD)

Camera Tx

S1-13 (RxD)

 

You can directly connect it to the Webserver PCB or through a connector ...

 

3 LEDs can be useful for debugging purpose:

Connection overview (Debug-LEDs)

LED

Controller

Status

S1-4 (PD.5)

Clock

S1-3 (PD.4)

Error

S1-2 (PD.3)

The LEDs are defined in the source code per #define

 

Connection Overview (Servo)

Servo

Controller

Vcc

S1-10 (+5V)

GND

GND

Signal

S1-6 (PD.7)

 

 

Changes to the ISA-Ctrl

 

The CAM operates with a baudrate of 460kB. Therefore we need a special (baudrate) x-tal.
We use a 14.7456 MHz x-tal. 11.0592 MHz or 7.3728 MHz are possible also (with simple changes to the software).

To use the cam parrallel to the MAX232 we changed the resistor R12 from 470R to 10k .

A small capacitor (e.g.. 47uF) between Vcc and GND of the camera will improve the picture-quality...

 

Notes to the Software

 

First you should try our HEX-Files for the webserver without CAM.

If they work fine, try the Files for the CAM ...

 

Sources and HEX-Files availible in the Download-Area.

The default IP is 192.168.0.101 on Port 3333, so you must access it by: http://192.168.0.101:3333

NOTE: The PC must be in the same subnet, e.g.. 192.168.0.99

Ports and IP-Address can be changes in the Sources easily

Check the x-tal frequencies in the main.h

Also the #define ISA_CTRL must be set for our hardware.

 

disclaimer