Module Learning Outcomes

Module Learning Outcomes:2. Explain the operation of a basic microprocessor/microcontroller system, and interpret software used in such a system.3. Write and test simple programs using a modern programming language and an appropriate set of development tools or environment, including use of libraries, debug tools etc.4. Develop digital systems and programs for basic engineering applications.5. Design hardware and software to meet the specification for a simple processor-based system.Brief
Smart home devices are a part of the larger concept of home automation. Large smart home systems utilize a main hub or controller to provide users with a central control for all of their devices. These devices can include lighting, heating and air conditioning and security system. The other key application of smart home is to provide assistance for disabled and elderly individuals. For example, they can be equipped with additional safety features which include sensors that monitor for medical emergencies such as falls or seizures. Smart home technology can provide users with more freedom and a higher quality of life.
Your task is to implement a primary smart home system which can automatically control the heating and lighting system, detect people’s falls, and provide readings of environmental parameters, e.g. temperature, ambient light levels.
Specific requirements of the systems are as follows:1. You will use the Nucleo STM32f303RE ARM board and specially made sensor board, an application shield, shown in Figure 1.2. Automatic heating control. This is about a design of a thermostat. The state of the thermostat controller is represented by a servo. When the temperature is greater than or equal to 25 oC, the servo should be at a position of 0o degree, which means the controller is ‘off’. When the temperature is below 25 oC, the servo should be at a position of 135o degree, which means the thermostat controller is ‘on’.3. Automatic lighting control. Use the four red leds as lighting devices. There are five required levels of lighting, 1, 2, 3, 4 and off. The lighting level is controlled by the lightness/darkness detected by the LDR sensor, for example when it is very light, all the leds will be off, andEmbedded C Assignment XZ March 20182when it is very dark all the four leds will be on. All the 5 levels of lighting will becorresponded to the evenly distributed ‘ReadIn’ value from the LDR.Figure 1. Nucleo STM32f303RE ARM board and the specially made sensor board.4. Detecting falls. Use the 3 axis (X, Y, Z) accelerometer to detect fall and the three colour ledto represent an alarm. Assume that when people fall, the value of acceleration is greaterthan 2g or less than -2g in any direction of X, Y and Z. When a fall happens, light up 3 colourleds in turn and each colour duration time is 0.2s.5. Environmental parameter readings. Use the blue User Button and switches to control thecontent of readings. When the blue user button is pressed, and the switch position is ‘0001’,display the temperature on the PC screen through the on board serial port. When the blueuser button is pressed, and the switch position is ‘0010’, display the ambient light levels witha pattern of number of ‘*’ on the PC screen. When the blue user button is pressed, and theswitch position is ‘0100’, display the values of acceleration of 3 directions on the PC screen.When the blue user button is pressed, and the switch position is ‘1000’, display the outputvoltage value from the potential meter. When the switch value is others, display a messageof ‘invalid switch value’ on the PC screen. The summary of readings is as below,State of Blue User Button Value of Switch Content to Display on PCPressed 0001 Temperature ( oC )Pressed 0010 Ambient light levels as apattern of number of ‘*’Pressed 0100 Values of acceleration of 3directionsPressed 1000 Output voltage value fromthe potential meterPressed Other values ‘Invalid switch value’Not pressed Do not care Keep previous displayMarking SchemeThis assignment contributes up to 30% of the mark for the module.It is recognised that not everyone will be able to meet all of the specifications given overleaf, so theassessment scheme is designed to measure how much of the specification you can meet. You will beEmbedded C Assignment XZ March 20183required to write a short evaluative report and give a demonstration of your system by taking a 20 second selfie video. All the program with inline comments you made should be included in the report. Marks will be awarded as follows:ItemPossible Mark %Automatic heating control20Automatic lighting control20Fall detection20Environmental parameter readings20A 20 second video demonstrating your working system20

YOU MAY ALSO READ ...  Basic algorithm | COSC 1301 | Texas A&M University

Assignment status: Already Solved By Our Experts

(USA, AUS, UK & CA Ph. D. Writers)


Order from Australian Expert Writers
Best Australian Academic Writers