Write an arduino program that works with the dmu dev board

Assignment Help Other Engineering
Reference no: EM132286794

1. Purpose This laboratory test is summative.

2. Operational details You should work individually for this test within your laboratory sessions.

You should write an Arduino program that works with the DMU Dev Board that takes inputs from the keypad (KP1), the analouge potentiometer (RPot), rotary encoder (AB DIGITAL ENCORDER), switches (S1) and (S2) and the gyroscope MPU6050 (U1) on the board and displays output on the LED display (SLED1), Liquid Crystal Display (LCD1), Buzzer (SG1) and the LEDs (D1, D2, D3, D5, . . . , D12).

Keypad You will use the keypad for waiking up the system from Quiet state, authenticating a user via a password and giving commands to the system once the user has been authenticated.

Notation: An upper case K stands for a single keypress or a press-and-hold keypress, a lower case k stands for a single keypress only and kh stands for a press-and-hold keypress only. A lower case n stands for a numerical keypress. Partial press is defined as a keypress with duration of less than 0.3s. Press-and-hold has a duration of at least 1.5s. A stuck key is defined as a keypress with duration of 5s.

The format of a valid input from the keypad must be {K..K}∗hnnn..n#nnn..n#, the input begins with 0 or many keystrokes, followed by a ∗h, followed by one or many keystrokes and ending with #. Once unlocked, commands in the form of nn..n# may be repeated. The ∗h is interpreted as unlock and the following numeric key is interpreted as a command number. For example, the sequence of keystrokes ###823***2138∗h1234#5# is a valid input interpreted as unlock, password 1234 followed by command number 5, i.e. the numeric keystrokes between the last pair of a leading ∗h and an ending # is interpreted as pass keys or command numbers depending on the context.

Any partially pressed or stuck key is considered a "no keypress" or empty key press and any other key combination is ignored. A keypress sequence {K..K}∗hn# that takes longer than 1 min is invalid. The numeric inputs must also be a values between 0 and 9.

Semantics: Your program must support the following features for each POT.

1. uppon an invalid key-press sequence the system must lock itself.

2. At any time, a press on the S1 push button must result in initiating repeating a sequence of RED, AMBER, GREEN on the D1, D2, D3 LEDs. A subsequent push on S1 must turn off the D1, D2, D3 LEDs.

3. S2 switch is considered a "tamper" switch, i.e. the operation of the system is only enabled if the S2 switch is in a stuck state and a special "enable password" is entered via the keypad using the keypad protocol given above.

4. password - After the enable procedure, the system enters a locked state. It will wait for a ∗h and a correct "operational password" before accepting commands.

5. commands - After authenticating the user with an "operational password" the system enters a command expectation state

6. 0# - the command 0 will make sure the motor is off, all D5 to D12 LEDs are turned off and then lock the system. If the motor is running, the system will bring the motor to 30rps and extinguish the LEDs from right to left at the rate of 2 per second.

7. 1# - run a motor sequence 1, i.e. the motor is run at 12rps and the D5 to D12 LEDs are consecutively lit at 1 LED per second from left to right. Once all LEDs are lit the motor stops.

8. 2# - run a motor sequence 2, i.e. the motor is run at 12rps and the D5 to D12 LEDs are consecutively extinguished at 1 LED per second from right to left. Once all LEDs are turned off the motor stops.

9. 3# - change the change the authentication password.
10. 4# - use the digital encoder to select and set a velocity for motor sequence
1. You will select a velocity via turning the encoder and set the value with a push on the encoder's button.

11. 5# - use the digital encoder to select and set a velocity for motor sequence
2. You will select a velocity via turning the encoder and set the value with a push on the encoder's button.

12. 6# - use the analogue POT to select the lower threshold for the temperature control. Use # to set the selected value.

13. 7# - use the analogue POT to select the upper threshold for the temperature control. Use # to set the selected value.

14. 8# - this will turn on the buzzer and it will give you an audible feedback on the velocity of the motor.

15. 9# - this will turn off the buzzer.

16. 7 segment display - the seven segment display will be used for a user feedback on the keypad. If the keypad is locked, the 7Seg will show only a dot segment. At that state, the 7seg will be only giving feedback on ∗ presses. Once the keypad has been unlocked via ∗h, then the 7seg enters a "password" state where feedback will be given on # key-press. For other keys only the G segment is giving feedback on key-presses. After the user has been authenticated, the 7seg will have a full feedback on the key-presses including normal, held and stuck key-press.

17. Your system must read the accelerometer values and detect if the board is disturbed. The system will only operate if it is stable. The system must shut down if it is shaken.

18. Your system must also read the temperature values from the accelerometer. If the temperature is higher that 22C (upper limit) the fan must cool it down. The system must display a message on the LCD if the temperature is under 18C (lower limit).

Attachment:- Embedded Systems.rar

Reference no: EM132286794

Questions Cloud

Order is on back-order and will arrive three weeks late : A message to a customer informing him that his order is on back-order and will arrive three weeks late.
Identify man-made threat on asset : Identify a man-made threat on an asset. Discuss how the threat was carried out. What steps did the attacker take prior, during, and after threat?
Conduct brief research on cultural competency in design : Conduct brief research on “cultural competency” in the design and delivery of Active Training.
Monetary policy is carried out by the federal reserve : Monetary policy is carried out by the Federal Reserve. Describe how they use the three tools, reserve requirements
Write an arduino program that works with the dmu dev board : ENGT5259 - Embedded Systems - De Montfort University - write an Arduino program that works with the DMU Dev Board that takes inputs from the keypad
Pros and cons associated with the concept of market pricing : Think about the pros and cons associated with the concept of market pricing.
What is the corresponding market price : (a) How much does each firm produce? (b) What is the corresponding market price?
Statements concerning the business modeling process : Which of the following statements concerning the business modeling process is false??
Describe the ways the organization manages changes : It the organization considered mechanistic or organic? Why? Describe the ways the organization manages changes

Reviews

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