CxD Archive
Internet of Things Project
Internet of Things Project
  • IoT Project Background
  • IoT Project Challenge
  • IoT Project Outline
    • 1-1 Smartphone Research
    • 1-2 Smart Thermostat Research
    • 1-3 Smart Device Research
    • 1-4 Introduction to Photon Kit
    • 1-5 Build Smart Lightbulb
    • 1-6 Generate Project Ideas
    • 1-7 Build Smart Thermostat
    • 2-1 Evaluate Project Ideas
    • 2-2 Plan User Research
    • 2-3 Compile Research Data
    • 2-4 Construct Personas
    • 2-5 Construct Journey Map
    • 2-6 Define Value Proposition
    • 2-7 Define Design Requirements
    • 3-1 Generate Solution Ideas
    • 3-2 Evaluate and Refine Solution Ideas
    • 3-3 Create System Model of Solution
    • 3-4 Create Wireflow for Web App
    • 3-5 Create Storyboard for Solution
    • 3-6 Evaluate Solution Design
    • 3-7 Present Project Proposal
    • 4-1 Track Progress and Issues
    • 4-2 Build Smart Device
    • 4-3 Create Photon App
    • 4-4 Create Web App
    • 4-5 Conduct Integration Testing
    • 4-6 Create Product Demo Video
    • 4-7 Create Product Marketing Website
    • 5-1 Evaluate Smart Device and Web App
    • 5-2 Evaluate Product Marketing Website
    • 5-3 Improve Solution Based on Evaluations
    • 6-1 Create Project Poster
    • 6-2 Present Project to Public
    • 6-3 Write Personal Reflection
  • References for Wiring & Coding
    • Creating Circuits
    • Wiring Programming Language
    • Particle Cloud
    • Hello World App for Photon
    • LED Light
    • Push Button
    • Micro OLED Display
    • Humidity and Temp Sensor
    • Speaker
    • Servo Motor
    • Motion Sensor
    • Magnetic Switch
    • Potentiometer
    • Photocell
    • Moisture Sensor
    • Accelerometer
    • RFID Reader
    • Fingerprint Scanner
    • GPS Receiver
    • Camera
    • Microphone
    • Force Sensitive Resistor
    • Keypad
    • Continuous Rotation Servo Motor
  • Glossary
  • Updated Project Guidebook
  • Updated Code Guidebok
Powered by GitBook
On this page
  • Code for Camera
  • Library
  • Global Variables
  • setup( ) function
  • Take Picture
Export as PDF
  1. References for Wiring & Coding

Camera

PreviousGPS ReceiverNextMicrophone

Last updated 6 years ago

The 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.)

Camera

Photon Pin

Red - RX

TX

Brown - TX

RX

Purple - GND

GND

Gray - Power (3.3V or 5V)

3.3V

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)

Code for Camera

Library

Coming soon...

Global Variables

Coming soon...

setup( ) function

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.

Serial1.begin(38400);
More coming soon...

Take Picture

Coming soon...
LinkSprite JPEG Color Camera Serial Interface with Infrared
JPEG Color Camera with Infrared