3 Replies Latest reply on Aug 28, 2013 11:28 AM by bboyes

    PSoC 4 Pioneer Kit Community Project#052 – Strike A Pose! Digital Camera

    cy.wbz

      Hello!

       

      We are continuing to expand on the SD card example by interfacing a small JPEG camera. In this example we will take an image using the camera and store that image on the SD card.

       

      001 - Schematic Design 1.png

       

      003 - Kit Image 1.jpg

       

      Forum Post Attachments:

       

      At the bottom of this post we are including the following items:

      • Example Project Zip File
      • Zip File of Images
        • Project Schematic
        • Component Configurations

       

      Components Used:

       

      The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

      • SD Card
      • UART
      • CyPins

       

      The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

       

      Firmware Description:

       

      The main.c firmware is included in the example project. Please review the commented sections for more details.

       

      The firmware for this project is likely the most complex we’ve released to this day. The complexity circles around the reading of the JPEG image and the writing to the SD card. Please take some time to review the code to understand the functionality. We have included the datasheet for the JPEG camera at the bottom of this post.

       

      The PSoC4 firmware uses two serial communication protocols SPI (SD Card) and UART (JPEG Camera) to communicate with the peripheral devices. Also included in this design is a push button to trigger images. The PSoC 4 when triggered to take an image pulls the data from the JPEG camera and stores the data in the SD card. You can then view the image by taking the SD card and putting the card into your computer or an SD card reader.

       

      Hardware Connections:

       

      In this example we will be connecting the Pioneer kit to a custom breadboard that has an soldered SD breakout board. On the custom breadboard we have a connector that interfaces to the JPEG

      camera.

       

      002 - Schematic Design 2.png

       

      Test Your Project:

       

      Program the Pioneer kit with the code and then press the button to take a picture.


      011 - Sample Image from Camera 2.jpg

       

      I hope this example can help you in your design.

       

      Best,

      Matt