KD4008 Computer Programming BEng/MEng Electrical Engineering
| Question # 50200 | Engineering | 9 months ago |
|---|
| $ 60 |
|---|
Assessment Brief
1 | KD4008 | Arduino Assignment | 2024-2025
Programme: BEng/MEng Electrical Engineering
Module Code: KD4008
Module Title: Computer Programming
Distributed on: 25-03-2025
Submission Time
and Date: To be submitted by 23:59 GMT on [19-05-2025]
Word Limit: 1000 Words (+10% tolerance; see also additional instructions below)
Weighting This coursework accounts for 50% of the total mark for this module
Submission of
Assessment
Electronic Management of Assessment (EMA): Please note if your assignment is
submitted electronically it will be submitted online via Turnitin by the given deadline.
You will find a Turnitin link on the module’s eLP site.
Important: You must also complete and submit the provided Assignment Coversheet
with AI Declaration, clearly indicating your use of AI tools, if any, as outlined.
The assessment also includes a demonstration of the working of your hardware.
Details of the arrangement of this session will be provided during the workshops.
It is your responsibility to ensure that your assignment arrives before the submission
deadline stated above. See the University policy on late submission of work.
Instructions on Assessment:
You are designing solutions for a smart home security system and are responsible for developing a proof-ofconcept prototype. This burglar alarm system should be able to detect motion and control various security
features in a smart home, such as activating a sound alarm, flashing lights, and activating a motorized
security feature. Additionally, the system should use serial communication to inform people about a breach
and ask for input to take specific actions.
You are provided with an Arduino UNO or an UNO WiFi Rev2 board, a PIR motion sensor, a buzzer, a DC
motor (with a transistor and flyback diode), a push button, a single RGB LED (or three individual LEDs), and
resistors (330 , 1K and 10K).
You are expected to detect motion and control alarms as follows:
Requirement
Motion Detection Use the PIR motion sensor to detect movement.
When motion is detected, activate the buzzer to simulate a sound alarm and
the DC motor to simulate activating a security feature (door lock, vault
mechanism, window shutter)
Light Control Use the RGB LED or three individual LEDs to indicate system status as
follows:
o Red for "activated” alarm system
o Flashing Blue (every 0.5 seconds) for "motion/breach detected"
o Green for "deactivated" alarm system
System Control Use the push button to reset and deactivate the security system
Serial Communication Use the serial port to inform people about a breach
Ask for input via the serial monitor to take specific actions:
o Reset the system (r)
o Deactivate the alarm (d)
Assessment Brief
2 | KD4008 | Arduino Assignment | 2024-2025
Your specific tasks:
detected.
flashing Blue for motion detection).
second), and reactivate/re-arm (single press after deactivation) the alarm system.
activated", “No motion”, "Motion detected!”, "System reset", and "Alarm deactivated".
commands.
Notes on PIR Motion Sensor
Wiring instructions:
VCC (Red wire): Connect to Arduino 5V.
GND (Black wire): Connect to Arduino GND.
OUT (Green wire): Connect to a digital pin.
detection.
Notes on Buzzer
whenever the PIR sensor detects motion.
powered. You will therefore need to use the Arduino tone() function to generate sound signals.
Notes on Serial Commands
turning off the buzzer and motor, returning the system to the armed (Red LED) state, and printing
"System reset" on the serial monitor. Usage: Type r in the serial monitor and press Enter.
DC motor, stops the RGB LED from flashing Blue and turns on Green LED, and prints "Alarm
deactivated" to the serial monitor. Usage: Type d in the serial monitor and press Enter.
will re-arm the system (turning the Red LED back on). Usage: Type r in the serial monitor and press
Enter.
Additional Instructions to students:
You will be expected to produce a short report on this project explaining your methodology and the key
elements of your code. Your submission for this module should contain:
1) A well-formatted flow chart, which shows the key concepts of the code (1 side of A4).
2) A circuit diagram using Fritzing or TinkerCAD.
3) A short report (maximum 1100 words including the tolerance) which explains the main points of your
code and how you developed it.
4) A complete code listing with annotated and commented code. Please insert the code as text, do
not insert a screenshot of the code. The code should go in an Appendix section at the end of the
report and will not be counted towards the above word limit.
You will also have to demonstrate the working of the device in person on Monday 19 May 2025. Further
details about the demonstration arrangements will be provided closer to the date.
Marks will be awarded for presenting a working device and a clear report showing understanding of the main
concepts (see assessment criteria). Please note that this is an individual coursework.
Assessment Brief
3 | KD4008 | Arduino Assignment | 2024-2025
Student Checklist (before submission):
Flowchart (one A4 page clearly indicating logic flow)
Circuit diagram (Fritzing or TinkerCAD clearly labeled)
Short report (max 1100 words clearly explaining methodology and code sections)
Fully annotated and commented Arduino code in appendix (text format)
Completed and attached the Assignment Coversheet with AI Declaration clearly indicating AI tool
usage.
Ensure the code works and meets all specified functional criteria (PIR sensor, buzzer, motor, RGB
LED, push button)
Prepared for in-person demonstration on Monday, 19 May 2025.
Learning Outcomes assessed in this assessment:
Knowledge & Understanding
1. Select and apply appropriate computational and analytical techniques to model complex problems,
discussing the limitations of the techniques employed (C3, M3)
Intellectual / Professional skills & abilities
2. Develop a computer program to solve a given engineering problem (C5,M5)
Personal Values Attributes (Global / Cultural awareness, Ethics, Curiosity) (PVA)
3. Use practical laboratory and workshop skills to investigate complex problems (C12, M12)
Assessment Brief
4 | KD4008 | Arduino Assignment | 2024-2025
Assessment Criteria
Achievement Maximum Mark
Execution of Program (50)
Running program meets requirements (These should be evidenced in
the report)
changes LED status (from Red to flashing Blue), and prints a
confirmation message about motion detection on the serial
monitor.
with status updates on the serial monitor.
(active), green (disabled), flashing blue (motion detected).
reset/deactivate/reactivate the alarm system.
commands or button pushes (single for reset, double for
deactivate) with appropriate actions and confirmation messages,
including turning off the buzzer and DC motor, changing LED
status (red for reset, green for deactivate).
Code and Report Style (50)
Good flow chart outlining the main flow of the program 10
Good clear circuit diagram showing all the components and connections 10
Good use of comments to clarify intent
10
Code is easy to follow and maintain a simple design
10
The report
sections of the flow chart.
10
Assessment Brief
5 | KD4008 | Arduino Assignment | 2024-2025
ASSESSMENT REGULATIONS
You are advised to read the guidance for students regarding assessment policies. They are available online
here.
Students can use AI tools as per the statements in the Assignment Coversheet with AI declaration and
declare usage therein, by using the checkboxes and completing the designated spaces therein.
Late submission of work
Where coursework is submitted without approval, after the published hand-in deadline, the following
penalties will apply.
For coursework submitted up to 1 working day (24 hours) after the published hand-in deadline without
approval, 10% of the total marks available for the assessment (i.e.100%) shall be deducted from the
assessment mark.
Coursework submitted more than 1 working day (24 hours) after the published hand-in deadline without
approval will be regarded as not having been completed. A mark of zero will be awarded for the
assessment and the module will be failed, irrespective of the overall module mark.
These provisions apply to all assessments, including those assessed on a Pass/Fail basis.
The full policy can be found here.
Word limits and penalties
If the assignment exceeds word limit of 1000 words +10% (1100 maximum), the part beyond the limit will not
be read/considered for marking.
The word count is to be declared on the front page of your assignment and the assignment cover sheet. The
word count does not include: appendices, glossary, footnotes, tables and codes.
Please note, in text citations [e.g. (Smith, 2011)] and direct secondary quotations [e.g. “dib-dab nonsense
analysis” (Smith, 2011 p.123)] are INCLUDED in the word count.
Students must retain an electronic copy of this assignment (including ALL appendices) and it must be
made available within 24hours of them requesting it be submitted.
The full Word Limit Policy is available here.
Group Work
The group work policy can be found here
Academic Misconduct
The Assessment Regulations for Taught Awards (ARTA) contain the Regulations and procedures
applying to cheating, plagiarism and other forms of academic misconduct. The full policy is available at
here. You should take particular attention to the Academic Misconduct Policy document in section 3.6, with
regards to using Artificial Intelligence Systems in your assignments.
You are reminded that plagiarism, collusion and other forms of academic misconduct as referred to in the
Academic Misconduct procedure of the assessment regulations are taken very seriously. Assignments in
which evidence of plagiarism or other forms of academic misconduct is found may receive a mark of zero.
Attachments: