adafruit_vc0706

VC0706 serial TTL camera module. Allows basic image capture and download of image data from the camera over a serial connection. See examples for demo of saving image to a SD card (must be wired up separately).

  • Author(s): Tony DiCola

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_vc0706.VC0706(uart: UART, *, buffer_size: int = 100)[source]

Driver for VC0706 serial TTL camera module.

Parameters:
  • uart (UART) – uart serial or compatible interface

  • buffer_size (int) – Receive buffer size

property baudrate: Literal[9600, 19200, 38400, 57600, 115200]

Return the currently configured baud rate.

property frame_length: int

Return the length in bytes of the currently captured frame/picture.

property image_size: int

Get the current image size, will return a value of IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, or IMAGE_SIZE_160x120.

property motion_detected: bool

Whether a gesture was detected

property motion_detection: bool

The gesture detection status

read_picture_into(buf: array | bytearray | memoryview | rgbmatrix.RGBMatrix | ulab.numpy.ndarray) int[source]

Read the next bytes of frame/picture data into the provided buffer. Returns the number of bytes written to the buffer (might be less than the size of the buffer). Buffer MUST be a multiple of 4 and 100 or less. Suggested buffer size is 32.

resume_video() bool[source]

Tell the camera to resume being a camera after the video has stopped (Such as what happens when a picture is taken).

take_picture() bool[source]

Tell the camera to take a picture. Returns True if successful.

property version: str

Return camera version byte string.