MICROCONTROLLERS

Degree course: 
Corso di First cycle degree in COMPUTER SCIENCE
Academic year when starting the degree: 
2021/2022
Year: 
3
Academic year in which the course will be held: 
2023/2024
Course type: 
Supplementary compulsory subjects
Credits: 
6
Period: 
First Semester
Standard lectures hours: 
48
Detail of lecture’s hours: 
Lesson (48 hours)
Requirements: 

No specific prerequisites are required, apart for the basic notions on programming.

Final Examination: 
Orale

This course will be based on a continuous interchange of knowledge and feedback between teacher and the students. In this way, teacher will have a real-time perception of the learning curve, keeping in mind the final goal to apply all the theoretical notions to real-world applications.
The final exam will be evaluated in thirtieth (/30). It will consist of two parts, named A and B, for a total maximum score of 30 points :
- Part A - Four theoretical questions, in written form. Each question will score 5 points, for a total maximum score of 20 points.
- Part B - Presentation and discussion of a practical project on electronics and microcontroller, scoring 4 points for the hardware and 6 points for the documentation. Alternatively, the student will be allowed to substitute the practical project with two additional questions, each scoring 5 points, on microcontrollers and sensors.
Part B will have a total maximum score of 10 points.

Assessment: 
Voto Finale

This course will be aimed to the basics of digital microcontrollers and their practical applications. At the beginning, the students will be introduced to the basic concepts of analog and digital electronics. Particular emphasis will be given to operational amplifiers (OA’s) and to the analog-to-digital (AD) and digital-to-analog (DA) conversion. Once the students will be familiar with basic electronics, the interfacing of microprocessors will be discussed, focusing to USART and most common communication protocols, as well as sensors (T, P, light, chemical.)
At the end of this course, the students :
1. Will understand the basics of analog electronics, analog-digital conversion and microcontrollers.
2. Will understand how external hardware works, as well as the principal classes of sensors, to be attached to microcontrollers.
3. Will be able to apply microcontroller-based boards (Arduino and Propeller as two typical low-cost examples) to real-world applications,
4. will combine hardware and software in an integrated approach to design simple application in the real world.
5. will gain interdisciplinary competence in different fields (IT, electronics, sensor science). The student will have the scientific competence and the knowledge of technical language to interact with colleagues from complementary disciplines and will be able to work different fields e.g. IoT or scientific instrumentation.

Theory (20 h – objective 1)
- microcontrollers – basic aspects of hardware and software (4 h)
- basic electronics (resistors, capacitors, diodes, transistors, IC, operational amplifiers) (12 h)
- ADC e DAC (4 h)

Theory (20 h – objective 2)
- controlling external devices (LED’s, light sources, optocouplers, relays) (4 h)
- USART for serial communication – USB as Virtual COM port – Serial protocols (SPI, I2C, 1-wire, Modbus) (4 h)
- physical and chemical sensors ( T, P, light, motion, chemical sensing) – how they work and how they are interfaced (8 h)
- A short introduction to industrial process control (4 h)

Design and practice in the classroom (8 h – objective 3)
- Designing simple electronic circuits.
- Use of the most common electronic instrumentation (tester, oscilloscope, power supply)
- Use and programming of microcontroller-based boards (Arduino, Propeller) for real-world applications : LED control, temperature reading, motor controls, use of buttons and analog joystick, ethanol measurement.

Please refer to "Contenuti" section.

Convenzionale

This course will be held in the classroom both for the theoretical lessons and for simple practical examples on microcontroller programming. In this way, the students will be able to understand, in a step-by-step fashion, the design of simple real-world applications combining hardware and software.
The students are strongly advised to follow the classroom lessons, followed by home study of each topics, in order to be able to fulfill the teaching objectives.

Office hours by e-mail carlo.dossi@uninsubria.it

Professors