Write a program to run a DC motor

Assignment Help Other Engineering
Reference no: EM132373283

Embedded System Design Assignment - Laboratory Practicals

Q1. (a) Write a program to turn the LEDs ON in the following sequence D3→D4→D5→D6 and then turn them OFF in the following sequence D3→D4→D5→D6. This should loop infinitely. You should incorporate appropriate delay to make sure that it runs smoothly and a human eye can clearly see it.

(b) Write a program to run a DC motor connected to pins 1A and 1B in CW direction and reverse it when SW2 is pressed.

Q2. Write a program to display (on 7-segment) continuous up-counting numbers from 00 to 50 and then down-counting from 50 to 00 (in decimal system). There should be a sufficient delay between two number display status, where a human can read them. This should loop infinitely.

Q3. Write a program to read analog input from RA2 when SW5 is pressed and display the following messages on the LCD panel. "input is <= 1V" , "input is < =4V & > 1V", "input is > 4V" depending on the actual real-time analog input. (If the message goes over the first row display area, it should display on second line)

(To test your program: Use Analog out 1 in the sensor/actuator board.)

Q4. Write a program to display whatever you type on your computer key board(through TeraTerm) on the LCD display and display the message "Hello from CQU PIC Development Board" on TeraTerm terminal emulator on your Windows computer when you press switch S2. (You need to connect your PIC development board to your computer via USB to serial cable and configure TeraTerm appropriately for this. Use baud rate of 4800bps)

Assessment criteria: This assignment is based on C language programming skills. Answer to every problem should include a flowchart / NS-diagram or other similar graphical representation of the solution. All programs should have in-program comment lines and the algorithms/procedures used must be separately explained. A good working program as the answer to a question without evidence of development of it. Provide screenshots of your answers wherever applicable.

Reference no: EM132373283

Questions Cloud

Design and construction of a new two-lane two-way road : SEV254 - Road and Pavement Engineering - Pavement Design Project - Deakin University - design and construction of a new two-lane two-way road
Deadweight loss caused by the price regulation : Outline, on the same graph, the deadweight loss caused by the price regulation, shade it in, and clearly label it on your graph.
Feedback on the performance of team members : How does collecting regular feedback on the performance of team members, from relevant sources assist managers in identifying the learning needs of individuals
What is the difference between the two : What is the difference between the two? Can you please provide examples of each? Which one would you recommend as a manager? Why?
Write a program to run a DC motor : ENEX 20001 Embedded System Design Assignment - Laboratory Practicals, CQ University, Australia. Write a program to run a DC motor
How much do you need to invest today : Suppose you need to pay your air-ticket of $2400 for a European trip in 12 months. If you deposit money now, you can earn 7% per annum with a 50% probability
Create a relational schema based on your erd : HS2021 - Database Design and Use Group Assignment - Create a Relational Schema based on your ERD and List Tour Code and total payments made for all tours
What is administrative law : What is administrative law? How does administrative law affect companies?
Role in ensuring the law is fulfilling its purpose : What about businesses - do they have a role in ensuring the law is fulfilling its purpose?

Reviews

len2373283

9/20/2019 12:46:38 AM

Submission - Online as a single word file. Note: All programs should associate with appropriate flowcharts and comments, marks will be given to the explanations of your algorithms and program. You can attach screenshots of running program as well. All these questions are based on the CQU PIC Development kit and the sensor/actuator kit provided. You should use CQU_LCD_Ver2.h or CQU_LCDVer3.h without any modification to them. Your own header files for the LCD display are not allowed for this assessment. All answers should be developed in MCC18 C compiler under MPLAB X. No Assembly language sub routings are allowed. Allocation of marks: Graphical representation 0 – 20%, Working program producing expected outcomes 25 – 50%, Explanation of algorithms/procedures, in program comments 0 – 30%. No model answer will be provided as there is no unique answer to any of the questions.

len2373283

9/20/2019 12:46:32 AM

This assignment is based on C language programming skills. To obtain full marks students must provide all in detail problem solving and solution development evidences. Each student must have their unique programs developed by themselves. Answer to every problem should include a flowchart / NS-diagram or other similar graphical representation of the solution. All programs should have in-program comment lines and the algorithms/procedures used must be separately explained. A good working program as the answer to a question without evidence of development of it(ex: a soft copy of workbook pages relevant to it) will receive a maximum of 50% of the allocated marks for that question. Provide screenshots of your answers wherever applicable.

len2373283

9/20/2019 12:46:26 AM

Submission instructions: Develop your program to solve the problem in each question. When they run successfully, copy the entire program to your answer script in MS WORD. Then close your project and open a new project. Copy your listing from the answer script(WORD document) and paste it into the new project’s main c file. Build the project and run it to check whether it runs smoothly. If it does not run now, it will not run on marker’s computer as that is what the marker does.

len2373283

9/20/2019 12:46:20 AM

Hint: When you first copy from project to WORD document, WORD may auto-correct some spelling, capitalize initial words, etc. which will prevent your answer from running successfully in the marker’s computer when copy and pasted into a new project. The above exercise will highlight you if there are any such things done by WORD Auto correct feature and you can now correct them before submitting. Repeat this exercise until you get the new project run at a single click when you copy and paste from WORD document into the new project. That make sure your submitted program runs smoothly on marker’s computer. The marker will not try to correct them. Any submitted program with compilation errors will receive very low marks!

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd