Welcome to ELE102 Microcontroller course!¶
On this page we will publish new lecture notes every week, as the course is progressing. The lecture notes will contain the curriculum that you need to know for the exam, as well as some additional material for those of you who are eager for more in depth knowledge.
- Introduction
- Software and hardware preparations
- Lesson 1a: What is a Microcontroller
- Lesson 1b: Introduction to Arduino
- Lesson 2: Digital I/O
- Lesson 3: Use of digital I/O and timing
- Lesson 4: Analog output (PWM)
- Lesson 5: Analog to digital conversion (ADC)
- Lesson 6: Serial I/O
- Lesson 7: Timers and interrupts
- Lesson 8: LC-Display
- Lesson 9: Memory and MCU architecture
- Lesson 10: Motor drive
- Introduction to DC motors
- Brushed DC-motor drive
- Control loops
- Motor Speed Adjusting by PWM
- Simple motor drive example using single transistor
- Exercise: start and stop of motor
- LM293D H-Brigde
- A very basic example for the LM293D
- Control function for easy use of the L293D
- Exercise-1: Control motor speed with a potentiometer
- Exercise-2: Change rotation direction using a button
- A slightly more complete case with start, stop, and emergency stop
- Start/stop, forward/reverse and speed control
- Exercise: LM293D motor drive
- Exercise: motor drive with acceleration ramp
- Regenerative braking of the motor
- Feature rich motor drive example using the L293D
- Exercise: LM293D motor drive
- Exercise: motor drive with acceleration ramp
- Bibliography
- Lesson 11: Communication Protocols
- Additional material lesson 1
- Additional material lesson 2
- Additional material lesson 3
- Simple touch to If…Else
- Switch debounce methods
- Measuring switch bounce using oscilloscope
- Software solutions
- Measure the bouncing using interrupt
- Delay method
- Shift register method
- Using a timer interrupt to poll the inputs
- Pin change interrupt debounce with smoothing capacitor
- Pin change interrupt debounce software only
- Creating a library for software debounce
- Multi tasking on the microcontroller
- Additional material lesson 4
- Additional material lesson 5
- Additional material lesson 6
- Additional material lesson 7
- Additional material lesson 8
- Additional material lesson 9
- Additional material lesson 10
- Additional material lesson 11
- Additional material lesson 12
- Additional material lesson 12
- Mix
- Infrared remote
- Cool Project: RC Car (Bluetooth or Joystick)
- Cool Project: Simple Robot Arm (Bluetooth or Joystick)
Todo
Add more projects if we feel like it (and we can find the time to write them)
You need to have:¶
For the microcontroller part of ELE102 you will be needing some hardware, as well as some software.