Full Title Programming Communications and Interfacing

Short Title Programming Communications and

Code MECT06018
Level 06
Credit 05

Author Craig, Ian
Department Mechatronics

Subject Area Mechatronics
Attendence N/A%
Fee

Description

On completion, the learner will be able to design and implement a program based control unit which will make decisions based on sensor input to drive actuators.  e.g. Control unit detects temperature rise and display on an LCD.  The module encourages self-directed learning and hardware development in the learner's own environment.  An Arduino kit is needed for this module (K000007 Official Arduino Kit).

The learner will be exposed to small signal interfacing, controlling actuators such as different types of motors, using an LCD display, Internet communications between devices and data transmission.

 


Indicative Syllabus

Numbering systems (10%)

  • Bases and structure of numbering systems (base 10, base 2, base 16)
  • Conversion between binary and hexadecimal
  • Conversion between decimal and (binary/hexadecimal)

Data transmission (10%)

  • How to lookup  a simple message ('Hello') in the ASCII table in hexadecimal values
  • Convert these to a binary stream a display it in a program
  • Convert the same message to UFS format.

Evaluating sensor datasheets (10%)

  • recall the main attributes of a sensor based on a datasheet 
  • Accuracy, range, span, resolution, sensitivity, hysteresis)
  • Use a datasheet to determine if a sensor is suitable for a project.

Communciations (20%)

  • Appreciation of IP packet header operation and how packets are routed from source to destination
  • NAT, DNS, PC configuration (IP address, Subnet mask, default gateway)
  • Exposure to a network monitor such as wireshark
  • Build a simple network based on Cisco Packet Tracer

Interfacing (50%)

  • To design and implement a program based control unit which will make decisions based on sensor input to drive actuators.  e.g. Control unit detects temperature rise and turns on a fan.
  • To use straightforward documentation and a given API to interface an application program to a function (read a sensor from an adruino, send a text message or a message via bluetooth, etc).

 


Learning Outcomes
On completion of this module the learner will/should be able to
  1. Recall numbering systems (decimal, binary, hexadecimal) and to convert between them

  2. Develop data transmission programs based on a set of characters

  3. Develop programs to control actuators based on interfacing via analog and digital methods to prescribed sensors using a variety of methods such as analog to digital conversion and pulse width modulation.

  4. describe  how IP packets are transmitted on the internet and outline the main elements of a network and the meaning of the IP packet header attributes.

  5. Interface application programs to a given API with the corresponding documentation to implement automation solutions  (e.g Arduino API to control actuators based on sensor information)


Assessment Strategies
  1. Quizzes/questions on basic knowledge of communications
  2. Lab based programming assignments
  3. Prescribed programming project which will monitor some real world attribute using a sensor and drive a real world output based on a program.  (e.g. lights are turned off and an SMS is sent to a phone or send a bluetooth message)

Assessment Facilitites

An Arduino K000007 Kit or equivalent is needed by each student.

 

 


Module Dependencies
Pre Requisite Modules
Co Requisite Modules
Incompatible Modules

Coursework Assessment Breakdown %
Course Work / Continuous Assessment 60 %
End of Semester / Year Formal Examination 40 %

Coursework Assessment Breakdown

Description Outcome Assessed % of Total Assessment Week
Assignments based on subject matter 1,2,3,4,5 60 OnGoing


End Exam Assessment Breakdown

Description Outcome Assessed % of Total Assessment Week
Final exam 1,2,3,4 40 End of Term


Mode Workload

Type Location Description Hours Frequency Avg Weekly Workload
Laboratory Practical Engineering Laboratory Practical 2 Weekly 2.00
Lecture Flat Classroom Lecture 2 Weekly 2.00

Total Average Weekly Learner Workload 4.00 Hours

Mode Workload

Type Location Description Hours Frequency Avg Weekly Workload

Total Average Weekly Learner Workload 0.00 Hours

Mode Workload

Type Location Description Hours Frequency Avg Weekly Workload

Total Average Weekly Learner Workload 0.00 Hours

Mode Workload

Type Location Description Hours Frequency Avg Weekly Workload
Lecture Online Online Evening Lecture 1 Weekly 1.00
Directed Learning Online Assignments and research from lectures 1 Weekly 1.00
Laboratory Practical Online Labs - Carried out in learner's own environment 2 Weekly 2.00

Total Average Weekly Learner Workload 4.00 Hours

Resources
Book Resources

None

Suitable books and articles may be given by the lecturer at tome of delivery


Other Resources

Wireshark

Programming resources (will be given on module commencement)

Cisco Packet Tracer

 

Url Resources

none

Additional Info