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.
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
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- SD Card
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.
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.
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
Test Your Project:
Program the Pioneer kit with the code and then press the button to take a picture.
I hope this example can help you in your design.