Difference between revisions of "S18: Team Nemesis(SJSU Cam)"
Proj user8 (talk | contribs) (→Psuedo-code) |
Proj user8 (talk | contribs) (→) |
||
Line 162: | Line 162: | ||
A menu was designed for the LCD screen using an LCD_MENU class. The private members of this class are as shown shown below : | A menu was designed for the LCD screen using an LCD_MENU class. The private members of this class are as shown shown below : | ||
− | + | ||
private: | private: | ||
type myType; //to know if current object is itemType or menuType | type myType; //to know if current object is itemType or menuType |
Revision as of 19:41, 23 May 2018
Contents
Grading Criteria
- How well is Software & Hardware Design described?
- How well can this report be used to reproduce this project?
- Code Quality
- Overall Report Quality:
- Software Block Diagrams
- Hardware Block Diagrams
- Schematic Quality
- Quality of technical challenges and solutions adopted.
SJSU Cam
Abstract
Our project is a digital camera implemented using the SJONE board. An image is captured using a camera and is then displayed on an LCD screen. An SD card is also used to store the output of the camera as the captured image. For navigating through various options on the LCD screen, a menu is created.
The camera is mounted on a 3D printed box which contains an LCD screen behind to display the image being captured by the camera.
Objectives & Introduction
The objective for this project was to learn how timing and buffer play an important role in capturing the pixels from the camera and displaying them on the LCD screen. The following objectives were set for the project:
1. Write a driver for camera (mention what kind of camera ), which has a better rate of capturing the image with the SJONE board and integrate it.
2. Store the output of the camera to SD card.
2. Write the driver for LCD (mention the name) and integrate it by choosing the right resolution.
3. Have a menu implemented for the options available on the digital camera.
Team Members & Responsibilities
- Chhavi Mehta
- Camera Module Driver
- Deeksha Prakash Kankalale
- PCB Design, Camera driver interfacing.
- Parth Gujar
- LCD Module Driver, 3D design.
- Sagar
- LCD Module interfacing, implementing graphics library
- Saurabh Badenkal
- LCD Driver, Integration of camera and LCD on the PCB and data pipelining.
Schedule
Show a simple table or figures that show your scheduled as planned before you started working on the project. Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals. The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.
Week# | Date | Task | Actual |
---|---|---|---|
1 | 4/17 | 1. Placing order for the components required in the project. 2. Division of module development. |
Completed! Problems Encountered: Finding the right components after going through various datasheets. |
2 | 4/24 | 1. Making interface with LCD. 2. Drawing simple shapes. 3. Work on the overall design of the menu for LCD. |
Completed! Problems Encountered: Setting appropriate initial frequency for the LCD to light up. |
3 | 5/1 | 1. Interfacing the camera 2. Implementing menu class with sub-menus and items. 3. Designing hardware prototype for 3D printing. |
Completed! Problems Encountered: Not enough RAM for displaying more than 1 picture of size 100x100, Using interrupts for UART receive instead of normal function call. |
4 | 5/8 | 1. Design PCB and place order. 2. Integrating file explorer of the SD card onto LCD with GUI. 3. Capturing image from the camera, saving it on the SD card. |
Partially Completed! Problems Encountered: |
5 | 5/15 | 1. Displaying the image on the LCD. 2. Integrating the modules together with the 3D case having the LCD on one side and SJONE and camera on the other with buttons. |
Completed? Problems Encountered: |
6 | 5/22 | 1. Final testing and debugging of the system as a whole. | Completed? Problems Encountered: |
Parts List & Cost
Components | Model Number | Quantity | Cost | Notes |
---|---|---|---|---|
SJONE board | model_no1 | 1 | cost_1 | notes_1 |
LCD | model_no2 | 1 | cost_2 | notes_2 |
LCD driver | model_no3 | 1 | cost_3 | notes_3 |
Camera | model_no4 | 1 | cost_4 | notes_4 |
PCB | model_no5 | 1 | cost_5 | notes_5 |
Design & Implementation
This design section outlines the hardware and software design of the project.
Hardware Design
The two main hardware components used in the project are discussed in detail below.
LCD Screen:
Camera:
<Picture>
<System block diagram>
Hardware Interface
describe the buses and drivers in detail
<Schematic>
<PCB Design>
Software Design
Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.
The general flow of our project can be explained by the flowchart shown below:
Implementation
The camera is interfaced to the board through SPI communication protocol. The raw pixels are read from the camera to the SJONE board. There are five buttons on the camera. One of them used to capture an image and store it on the SD card. The LCD screen is interfaced again through SPI communication protocol. The raw pixels received from the camera are displayed on to the LCD screen.
MENU for the LCD : A menu was designed for the LCD screen using an LCD_MENU class. The private members of this class are as shown shown below :
private: type myType; //to know if current object is itemType or menuType str myName; //name of this object LCD_MENU *ParentMenu; //parent menu of current menu object LCD_MENU *CurrentMenu; //reference to global CurrentMenuG VECTOR<Element> all_elements; //to store all elements by Element .name .id and .type VECTOR<str> all_elements_name; //to store all elements by name to use by Find function int highlighted; //to track currently highlighted sub-element
Testing & Technical Challenges
Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.
Include sub-sections that list out a problem and solution, such as:
<Bug/issue name>
Challenge 1: Making any camera work on SJOne can be little tricky. We found SJOne to be not so compatible with camera modules.
Discuss the issue and resolution.
Conclusion
Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?
Project Video
Upload a video of your project and post the link here.
Project Source Code
References
Acknowledgement
We would like to thank our professor, Preetpal Kang for designing such a course where learning was his guidance and consistent feedback. We would also like to thank the ISA team for their valuable inputs as per their own experience of the course when taken and their support and motivation at every phase of this project. There were some unsung, selfless classmates who helped us whenever necessary, whenever any immediate hardware was required or any other guidance needed in spite of being from the rival teams. We would like to thank each one of them who forgot their differences or considered the course and project as a competition to selflessly help us when in need.
References Used
[1] Preetpal Kang's lecture notes of CMPE 244, Computer Engineering, San Jose State University, Jan-May 2018.
Appendix
You can list the references you used.