Lab-Report-Template (1)

docx

School

Brooklyn College, CUNY *

*We aren’t endorsed by this school

Course

CET4711

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

16

Uploaded by MagistrateResolve1044

Report
Computer Engineering Technology Department CET 4711 – Computer Controlled System Design Year & Semester: 2024 Spring Instructor Name: Professor F. Zia Lab Report: Lab# and Title: CET-4711 Lab-5: Advanced Data Communication with Processing Date: 03/11/2024 Student Name: Gurpreet Singh
Page 2 of 16 Table of Contents: 1. Objectives 2. Component List 3. Procedure 4. Diagrams 5. Source Code 6. Measurements 7. Troubleshooting 8. Discussion 9. Conclusion
Page 3 of 16 Objectives: 1. Become familiar with the Processing graphical environment, Java language, and reference site. 2. Understand the basics of data communication between Arduino and Processing. 3. Create a simple interactive system using Arduino and Processing. Background: Background Processing is an open source programming language and integrated development environment (IDE) built for the electronic art, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. The user interface of Arduino IDE is very similar to the Processing IDE user interface. Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at the MIT Media Lab, were involved in the creation of Arduino IDE as well as Processing IDE. However, please note some major differences: • Arduino IDE allows you to program Arduino boards by using a simplified version of C/C++ language, and use and control physical objects such as sensors and motors. • Whereas, Processing IDE allows you to write PC applications using a simplified version of Java language, and lets you create and control virtual objects such as circles and spheres and many other 2D and 3D graphics and shapes. One of the stated aims of Processing is to act as a tool to get non-programmers started with programming, through the instant gratification of visual feedback. The Processing language builds on the Java language, but uses a simplified syntax and graphics-programming model. 4. Component / Equipment List: Arduino Microcontroller Potentiometer USB cable Jumper M/M Breadboard LED Resistor 220ohms
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 4 of 16 5. Procedure: Analysis: 1. In a new Processing sketch, open the example MouseeCircle.pde code available in Lab- #.zip file. The MouseeCircle.pde code is shown on next page (inside the text box) for reference. 2. Run the code in Processing IDE. You should see a circle drawn inside a graphics window, that will follow the mouse pointer. 3. Go to Processing reference website and look for the following functions used in the code. size(255, 255); strokeWeight(10); framerate(16); background(100); fill(0, 121, 184); stroke(255); ellipse(X, Y, radius, radius); 4. For each of the functions shown above, copy the function description from the Reference web site and paste it inside a comment block /* … */ before each function. The purpose is to thoroughly understand how the function works. 5. Final code for Part A of the lab should include a comment for each function used in the code, indicating what each function does. 6. Save the final modified code in a file and include it in your report. 7. Take a screenshot of the graphics window with the circle, to include in the Measurements section of the lab report. Design:
Page 5 of 16 6. Diagrams and Pictures: Hardware: (Schematic diagram) Software: (UML activity diagram (flow chart) / Data-flow diagram / State diagram
Page 6 of 16 Diagrams and Pictures (cont.): Hardware: (Reference Block Diagram and list of sub-systems involved in the lab)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 7 of 16 Following sub-systems of a computer-controlled system are involved in this lab exercise: Data Input Sub-system(s): Data Processing and Data Storage Sub-systems: Microcontroller: Data Output Sub-system(s): Data Communication Sub-systems: Low Level: High Level:
Page 8 of 16 Diagrams and Pictures (cont.): Software: (Flow chart / UML activity diagram / State diagram)
Page 9 of 16 7. Source code: (Final version of the modified and tested program code) (code must be written by using the code-template.ino file) (code must be shown with monospace font, proper code block indentation and syntax color highlight according to the guidelines in Lab Code Instructions / Examples) // final version of lab code // copy from IDE v2 Editor Window and paste below this line, while preserving // monospace font, proper code block indentation and syntax color highlight
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 10 of 16 8. Measurements: (Add captions to all screen shots and pictures) Serial Monitor data values (screen shots with explanation of what data values are shown in screen shots) Serial Plotter / Oscilloscope screen shots and measurements (screen shots with explanation of what the plots and graphs represent) Electrical measurements / Functional tests (Use a multimeter or simulation software to show how the subsystem component(s) can be tested for correct operation)
Page 11 of 16 9. Troubleshooting: Symptoms of the problem: Hardware and/or software test performed to determine the cause of the problem: Solution to fix the problem:
Page 12 of 16 10. Discussion: Data Input Sub-systems: Hardware: Sensor(s) used for data input: <describe the sensor type (digital, analog or advanced), physical / electrical specifications, theory of operation> Interface circuit(s): < describe the operation of external and/or internal interface circuit(s) involved in connecting the sensor(s) to the micro-controller> Software: Data Input operation(s): <describe the library function(s) used to perform data input from sensors(s), for each function used in the lab code, include following information: Name and Description, Syntax, Parameters, Return value>
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 13 of 16 Data Processing / Data Storage Sub-systems: Hardware: Micro-controller: < describe which micro-controller is used and what are its basic hardware specifications, e.g. ATmega2560 microcontroller on MEGA board, 16 MHz clock, RAM and Flash ROM size etc…> Software: Data Processing operation(s): <describe code statement and/or library function(s) used for processing data, for each library function used in the lab code, include following information: Description, Syntax, Parameters, Return value > Data Storage operation(s): <look for the following information in the Output window of IDE v2, after successful code upload> Size of FLASH memory (used / total) for storing program code (kB): ______________ Size of RAM (used / total) for storing variables (kB): ______________
Page 14 of 16 Data Output Sub-systems: Hardware: Output device(s) used: <describe output device type (digital, analog or advanced), physical / electrical specifications and theory of operation> Interface circuit(s): < describe the operation of internal or external interface circuits involved in connecting output device(s) to micro-controller> Software: Data Output operation: <describe library function(s) used to send data/control signal to output device, for each library function used in the lab code, include following information: Description, Syntax, Parameters, Return value >
Page 15 of 16 Data Communication Sub-systems: Hardware: Data Communication interface circuits(s) used: <describe specifications and settings related to internal low-level data communication circuit (e.g. UART, SPI, I2C, PWM) and/or external high-level data communication circuit used, e.g. USB or Bluetooth etc…> Software: Data Communication operation(s): <describe library function(s) used to perform data comm, for each library function used in the lab code, include following information: Description, Syntax, Parameters, Return value >
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 16 of 16 11. Conclusion: Describe a real life application, example or project that represents a computer-controlled system and has similar types of input and output sub-systems as implemented in this lab exercise. Describe some similarities and differences between the real-life system example and this lab exercise circuit.