|All Versions||0.0.5, 0.0.3, 0.0.2, 0.0.1|
Library to support 4DSystems uCam-III camera
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
This content is provided by the library maintainer and has not been validated or approved.
(also works with uCam-II - where features are supported)
The library implements most functions the uCamIII provides according to datasheet, only baudrate selection is omitted due to the fact that up to 115200 the autodetection works fine and higher baudrates available for the camera are usually not supported by the microcontrollers using this library.
It also supports hardware and software serial ports (e.g.
ParticleSoftSerial on the
Particle side or
NewSoftSerial for Arduino) by use of
uCamIII<USARTSerial> ucamHW(Serial1); uCamIII<ParticleSoftSerial> ucamSW(new ParticleSoftSerial(D0, D1)); // or ParticleSoftSerial pss(D0, D1); uCamIII<ParticleSoftSerial> ucamSW(pss);
This sketch demonstrates how to use the uCamIII library.
It will provide a
Particle.function("snap") that can be triggered with parameters
GRAY8 (default for wrong parameters too),
JPG to take a pic and
send it via
TCP (provided via
Particle.function("setTarget")) where it
can be dumped into a file.
For the TCP data sink you need to be running a server like the provided 'imageReceiver.js'
(run the server from its file location via
node ./imageReceiver.js) and inform the
device of the IP and port for the server. This is done via
in the form
For WiFi devices it also provides a Webserver which lets you select image format and resolution and displays the image. For non-JPG formats a BMP header is prepended to allow use in tag.
The server address can be retrieved via Particle.variale("IP")