# Camera driver support package  

Example implementation of camera driver and export of images from OV2640 camera.  
Data from camera are read from camera into MCU memory and the transmitted via CLI UART and RS-485  
New image is captured every 2-3 seconds, format is JPEG and resolution 320x240 pixels.  
If frame is broken (image cannot be open, JPeg corrupted) first frame must be cached,  

## Image capture on computer  
- Connect Serial adapter to CLI of FC  
- Connect OV2640 to camera port of FC  
- Power up FC from stable power source  
- Reroute serial line into file `(stty raw; cat > received.jpeg) < /dev/ttyUSB0`  
    -  replace interface name  
- Wait for image capture (until red LED change state)  
- Open image or edit it in okteta  

## Example image  
Image of FC taken by OV2640 connected to same FC  

![](example_image.jpeg)
