The LinkSprite JPEG Color Camera Serial Interface with Infrared can take pictures in JPEG format and transfer the picture data over a serial data connection. The camera can take pictures in 3 different sizes: 640×480 pixels, 320×240 pixels, or 160×120 pixels.
In normal lighting, the camera takes color pictures. When it's dark, a built-in ambient light sensor automatically turns on infrared LEDs to allow the camera to take black-and-white photos ("night vision").
The camera lens has a protective cover that you will need to remove before taking pictures. The camera board has holes in three of its corners, which could be used to help mount the camera to a surface.
The camera has a 4-wire connector. The ends of these wires are too wide to insert directly into a breadboard. However, you can connect additional wires to the camera wire ends, in order to connect to a breadboard or directly to the Photon. (In fact, you can simply plug a jumper wire into each camera wire end. To make it easier to keep track of the wires, use jumper wires with matching colors.)
The camera will communicate with the Photon board over a serial data connection using the Photon RX and TX pins.
NOTE: For serial data connections, the RX pin of one device connects to the TX pin of the other device. (RX = receive, TX = transmit)
You need to include a statement within the setup()
function to start a serial data connection (which will activate both the RX and TX pins on the Photon). This will allow the Photon and the camera to send and receive data between each other. The camera communicates at a default baud rate of 38400 bps.
Camera
Photon Pin
Red - RX
TX
Brown - TX
RX
Purple - GND
GND
Gray - Power (3.3V or 5V)
3.3V