Using Atmega328 microprocessor and C programming, students will learn and pratice serial connection protocols (UART, I2C, SPI) that are widely used in digital sensors. Datasheet search and interpretation is also included in this course.
Prerequisite(s)
Corequisite(s)
Special Requisite(s)
Instructor(s)
Course Assistant(s)
Schedule
Office Hour(s)
Teaching Methods and Techniques
Principle Sources
Other Sources
Course Schedules
Week
Contents
Learning Methods
1. Week
Introduction to course.
2. Week
Introduction to Arduino; history, board layout and “Blink” code examinations. Function declarations, input arguments and variable type selection
3. Week
Port registers of Atmega328, using digital inputs and outputs.
4. Week
Using analog inputs. The ADC module.
5. Week
Using PWM module: the analogWrite() function.
6. Week
Using UART module. RS232 Waveform verification via oscilloscope
7. Week
LCD Menu design using LCD library.
8. Week
Midterm
9. Week
Using I2C module. I2C protocol details. Wire library and waveform verification.
10. Week
Using HMC5883L Digital Magnetometer: Datasheet inspection and coding
11. Week
Using ADXL345 digital accelerometer: Datasheet inspection and coding.
12. Week
Using SPI module. SPI protocol details. SPI library and waveform verification.
13. Week
Using EEPROM of Atmega Family
14. Week
Review
15. Week
16. Week
17. Week
Assessments
Evaluation tools
Quantity
Weight(%)
Midterm(s)
1
50
Homework / Term Projects / Presentations
10
0
Attendance
10
0
Final Exam
1
50
Program Outcomes
PO-1
Adequate knowledge in mathematics, science and engineering subjects pertaining to the relevant discipline; ability to use theoretical and applied information in these areas to model and solve engineering problems.
PO-2
Ability to identify, formulate, and solve complex engineering problems; ability to select and apply proper analysis and modeling methods for this purpose.
PO-3
Ability to design a complex system, process, device or product under realistic constraints and conditions, in such a way so as to meet the desired result; ability to apply modern design methods for this purpose. (Realistic constraints and conditions may include factors such as economic and environmental issues, sustainability, manufacturability, ethics, health, safety issues, and social and political issues according to the nature of the design.)
PO-4
Ability to devise, select, and use modern techniques and tools needed for engineering practice; ability to employ information technologies effectively.
PO-5
Ability to design and conduct experiments, gather data, analyze and interpret results for investigating engineering problems.
PO-6
Ability to work efficiently in intra-disciplinary and multi-disciplinary teams; ability to work individually.
PO-7
Ability to communicate effectively, both orally and in writing; knowledge of a minimum of one foreign language.
PO-8
Recognition of the need for lifelong learning; ability to access information, to follow developments in science and technology, and to continue to educate him/herself.
PO-9
Awareness of professional and ethical responsibility.
PO-10
Information about business life practices such as project management, risk management, and change management; awareness of entrepreneurship, innovation, and sustainable development.
PO-11
Knowledge about contemporary issues and the global and societal effects of engineering practices on health, environment, and safety; awareness of the legal consequences of engineering solutions.
Learning Outcomes
LO-1
Determine number and types of I/O pins in a practical embedded system application.
LO-2
Design and program a basic embedded system interface based on numerical displays e.g. (LCD)
LO-3
Know and discriminate communication protocols RS232, I2C and SPI in terms of number of wires requied, waveforms and data rate.
LO-4
Develop proper codes for an embedded system that can communicate with PC.
LO-5
Understand and use EEPROM commands.
LO-6
Inspect and understand the data and control registers of a sensor using its (technical) datasheet.