Content for ICE4M

Some Major Revisions To This Site Staring Oct 2007

Course Content

Unit #

Name

Activities / Topic / Assignment

Lessons

Concepts

Detail / Emphasis

Hard

1
Get with the Program
   
-review of pcb design and fabrication

Fabricate a Power Supply

   
   

Test the programmer to be sure it works.

 
1, 2, 9

-downloading existing code from computer into microcontroller

-breadboarding and connecting a circuit.

2
Now Assemble This
LED FLASH in Assembler

Assembler analysis

Overview of architecture, assembler, I/O, timer and prescaler, interrupts, registers
3
Get Down to the Basics

Programming in MikroBasic

(getting ready)

Your First Program in Mikrobasic

Visual Output - Connecting a LED to a PIC

4
You Can Count On It
Counting using 7 segment display
 Port Current Limits

7 segment LED display driving

Programming Using a Look Up Table

   

Data types, arrays, loops, look up table, 7 seg display, port current limitations, source and sink output, look up table

Bonus
multiplexing
multiplexing, open drain ports
5
Fabulous Fabrication

Learn how semiconductor devises work and how they are fabricated

6
PWM Servo Control Part 1
Program to Centre a Servo Motor

PWM

Oscilloscope

       
7
Build Control Circuit for Hexapod
Fabricate Test Debug
       
Testing and setting up the Hexapod
       
               
Old Lessons Below
4
Now Count This
Push Button Switch as Input
Eliminating De Bounce
   
8
using oscilloscopes
Anyone Care to Participate in a Poll?
Monitoring an Input Pin by Polling
   
9

10

flowcharts
Please Interrupt
Input control by Interrupt
   
11

12

Interrupt

Isolating problems

starting small

comment code

5
De Problem With De Bounce
Input

(count intro)

Debounce Switch and Count 5

8 LED Counting Assignment

How to Input Digital Information with a Switch

Solving the Problem of Switch Bounce

   

Isolating problems

starting small, comment out code

open collector ports -

6
Controlling the Bug

Insectronics - Servo Motor Control

Programming Hexapod to Walk in Three Modes
How a Hobby Servo Is Controlled

Servo Motor Control

seelink

Organizing Programming Using Flowcharts

see links

   

1.0 Program to Centre a Servo
   

2.0 Centre a Servo Using a Timer Interrupt
   

3.0 Servo Sequence 3 Positions
   

4.0 Servo Position Using Input
   

5.0 Running 3 Servos
   

6.0 Hexapod Walking
   

7
Controlling Power Output with a Microcontroller
Switching low voltage DC above 25 mA below 10A
Controlling small DC Currents, eg lightbulb
   

Problems Switching Inductive Loads Activity
Switching Inductive Loads
   

Switching Inductive l.oads With a Microcontroller
   

Controlling a DC Motor Speed

PWM

  • Voltage control vs PWM (simulation)
  • PWM frequency
  • Activity option - obtaining surplus DC motor

Project - Control the speed of a DC electric motor with the driver circuit used in the pneumatic circuit

Motor Speed Control
   

Basic H-Bridge Configuration
Bi-Directional Motor Control
   

Specialized Chips
   

H bridge Using a Relay
   

Switching Alternating Current
Switching Alternating Current
   

Sequence Assignment
   

Stepper Motor Control
Stepper Motor Control
   

   

Optional Units

Optional Assignment

LCD Display

dip switches and shift register input

LCD display
   

Make a tune on the PIC

Optional

Directly Driving PIC (computer) Output

Audio Output - Connecting a Piezoelectric buzzer to a PIC
   

Piezo output Circuit

Programming using timed interrupts

Pixcel Writing

Write words in air by moving 8 leds which are flashing.

   

Technological Design Home