KUAS Engineering

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
id2 [2020/06/27 15:19]
piumarta
id2 [2023/04/16 14:02] (current)
Line 1: Line 1:
-<WRAP box white round> ​+<WRAP box white round>
 <WRAP syllabus>​ <WRAP syllabus>​
 <WRAP right> <WRAP right>
Line 19: Line 19:
  
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week 10 **                                         | +| ** Week 1 ** | 
-| {{ :id2-10.pdf|Slides }}                             | +| {{ :​id2-01.pdf|Slides }} | 
-| {{ :id2-10-1.mp4?​linkonly|Seven-segment displays ​  }} | \_ ({{ :id2-10-1_en.mp4?​linkonly|subs}}) ​ | +| {{ :​id2-01-1.mp4?​linkonly|Overview }} | 
-| {{ :id2-10-2.mp4?​linkonly|Experiment set-up ​ }}       | \_ ({{ :id2-10-2_en.mp4?​linkonly|subs}}) ​ | +| {{ :​id2-01-2.mp4?​linkonly|Installing the IDE }} | 
-| {{ :id2-lab-10.pdf|Lab and reference }}               |+| {{ :​id2-01-3.mp4?​linkonly|Microcontroller programming }} | 
 +| {{ :​id2-lab-01.pdf|Lab and reference }} | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 2 ** | 
 +| {{ :​id2-02.pdf|Slides }} | 
 +| {{ :​id2-02-1.mp4?​linkonly|Overview }} | 
 +| {{ :​id2-02-2.mp4?​linkonly|Serial monitor }} | 
 +| {{ :​id2-02-3.mp4?​linkonly|Analogue input }} | 
 +| {{ :​id2-lab-02.pdf|Lab and reference }} | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 3 ** | 
 +| {{ :​id2-03.pdf|Slides }} | 
 +| {{ :​id2-03-1.mp4?​linkonly|Prototyping,​ circuits}} | 
 +| {{ :​id2-03-2.mp4?​linkonly|Electricity and Ohm's law }} | 
 +| {{ :​id2-03-3.mp4?​linkonly|Resistor colour code }} | 
 +| {{ :​id2-03-4.mp4?​linkonly|Digital output: sound }} | 
 +| {{ :​id2-lab-03.pdf|Lab and reference }} | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 4 **                                         | 
 +| {{ :id2-04.pdf|Slides }}                             | 
 +| {{ :id2-04-1.mp4?​linkonly|Diodes, LEDs}}             ​| \_ ({{ :id2-04-1_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :id2-04-2.mp4?​linkonly|Experiment set-up ​}}       | \_ ({{ :​id2-04-2_en.mp4?​linkonly|subs}}) ​ 
 +| {{ :​id2-04-3.mp4?​linkonly|Pulse Width Modulation }}  | \_ ({{ :​id2-04-3_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-lab-04.pdf|Lab and reference }}              | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 6 **                                         | 
 +| {{ :​id2-06.pdf|Slides }}                             | 
 +| {{ :​id2-06-1.mp4?​linkonly|Series/​parallel circuits }}| \_ ({{ :​id2-06-1_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-06-2.mp4?​linkonly|Measuring light }}         | \_ ({{ :​id2-06-2_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-06-3.mp4?​linkonly|Experiment set-up ​}}       | \_ ({{ :id2-06-3_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-lab-06.pdf|Lab and reference }}              | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 7 **                                          | 
 +| {{ :​id2-07.pdf|Slides }}                              | 
 +| {{ :​id2-07-1.mp4?​linkonly|Managing multiple outputs }}| \_ ({{ :​id2-07-1_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-07-2.mp4?​linkonly|Experiment set-up }}        | \_ ({{ :id2-07-2_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :id2-lab-07.pdf|Lab and reference }}               | 
 +</​WRAP>​ 
 + 
 +<WRAP baretable>​ 
 +| ** Week 8 **                                          | 
 +| {{ :​id2-08.pdf|Slides }}                              | 
 +| {{ :​id2-08-1.mp4?​linkonly|Using LED arrays ​         }}| \_ ({{ :​id2-08-1_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-08-2.mp4?​linkonly|Accessing I/O registers ​ }} | \_ ({{ :​id2-08-2_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :​id2-08-3.mp4?​linkonly|Experiment set-up ​ }}       | \_ ({{ :​id2-08-3_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :id2-lab-08.pdf|Lab and reference }}               |
 </​WRAP>​ </​WRAP>​
  
Line 37: Line 92:
  
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week **                                          +| ** Week 10 **                                         ​
-| {{ :id2-08.pdf|Slides }}                              +| {{ :id2-10.pdf|Slides }}                             ​
-| {{ :id2-08-1.mp4?​linkonly|Using LED arrays ​         ​}}| \_ ({{ :id2-08-1_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-10-1.mp4?​linkonly|Seven-segment displays ​  }} | \_ ({{ :id2-10-1_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-08-2.mp4?​linkonly|Accessing I/O registers ​ }} | \_ ({{ :​id2-08-2_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-10-2.mp4?​linkonly|Experiment set-up ​ }}       | \_ ({{ :id2-10-2_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-08-3.mp4?​linkonly|Experiment set-up ​ }}       | \_ ({{ :id2-08-3_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-lab-10.pdf|Lab and reference }}               |
-| {{ :id2-lab-08.pdf|Lab and reference }}               |+
 </​WRAP>​ </​WRAP>​
  
-/** 
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week **                                          +| ** Week 11 **                                         ​
-| {{ :id2-07.pdf|Slides }}                              | +| {{ :id2-11.pdf|Slides }}                              | 
-| {{ :id2-07-1.mp4?​linkonly|Managing multiple outputs ​}}| \_ ({{ :id2-07-1_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-11-1.mp4?​linkonly|Digital input, buttons ​  }} | \_ ({{ :id2-11-1_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-07-2.mp4?​linkonly|Experiment set-up }}        | \_ ({{ :id2-07-2_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-11-2.mp4?​linkonly|Debouncing ​              }} | \_ ({{ :​id2-11-2_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-lab-07.pdf|Lab and reference }}               |+| {{ :​id2-11-3.mp4?​linkonly|Interrupt-driven input   }} | \_ ({{ :​id2-11-3_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :id2-11-4.mp4?​linkonly|Experiment set-up ​ }}       ​| \_ ({{ :id2-11-4_en.mp4?​linkonly|subs}}) ​ | 
 +| {{ :id2-lab-11.pdf|Lab and reference }}               |
 </​WRAP>​ </​WRAP>​
  
-/** 
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week **                                         | +| ** Week 12 **                                         | 
-| {{ :id2-06.pdf|Slides }}                             ​+| {{ :id2-12.pdf|Slides }}                              
-| {{ :id2-06-1.mp4?​linkonly|Series/​parallel circuits ​}}| \_ ({{ :id2-06-1_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-12-1.mp4?​linkonly|Shift registers ​  }}        | \_ ({{ :id2-12-1_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-06-2.mp4?​linkonly|Measuring light }}         | \_ ({{ :​id2-06-2_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-12-2.mp4?​linkonly|Experiment set-up ​ }}       | \_ ({{ :id2-12-2_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-06-3.mp4?​linkonly|Experiment set-up }}       | \_ ({{ :id2-06-3_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-lab-12.pdf|Lab and reference }}              |
-| {{ :id2-lab-06.pdf|Lab and reference }}              |+
 </​WRAP>​ </​WRAP>​
  
-/** 
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week **                                         | +| ** Week 13 **                                         | 
-| {{ :id2-04.pdf|Slides }}                             ​+| {{ :id2-13.pdf|Slides }}                              
-| {{ :id2-04-1.mp4?​linkonly|Diodes, LEDs}}             ​| \_ ({{ :id2-04-1_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-13-1.mp4?​linkonly|Serial communications  ​}}   ​| \_ ({{ :id2-13-1_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-04-2.mp4?​linkonly|Experiment set-up ​}}       ​| \_ ({{ :id2-04-2_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-13-2.mp4?​linkonly|External ADC over SPI  ​}}   ​| \_ ({{ :id2-13-2_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-04-3.mp4?​linkonly|Pulse Width Modulation ​}}  | \_ ({{ :id2-04-3_en.mp4?​linkonly|subs}}) ​ | +| {{ :id2-13-3.mp4?​linkonly|Experiment set-up ​     ​}}   ​| \_ ({{ :id2-13-3_en.mp4?​linkonly|subs}}) ​ | 
-| {{ :id2-lab-04.pdf|Lab and reference }}              |+| {{ :id2-lab-13.pdf|Lab and reference }}              |
 </​WRAP>​ </​WRAP>​
  
-/** 
 <WRAP baretable>​ <WRAP baretable>​
-| ** Week ** | +| ** Week 14 **                                         ​
-| {{ :id2-03.pdf|Slides ​}} | +| {{ :id2-14.pdf|Project suggestions}}                  
-| {{ :id2-03-1.mp4?​linkonly|Prototyping,​ circuits}} | +| {{ :sine.h|sine.h file}}                  |
-| {{ :id2-03-2.mp4?​linkonly|Electricity and Ohm's law }} | +
-| {{ :​id2-03-3.mp4?​linkonly|Resistor colour code }} | +
-| {{ :​id2-03-4.mp4?​linkonly|Digital output: sound }} | +
-| {{ :​id2-lab-03.pdf|Lab and reference ​}} |+
 </​WRAP>​ </​WRAP>​
-**/ 
  
 /*  {{ ::​id2-07-lab-1.mp4?​linkonly | lab }}  /*  {{ ::​id2-07-lab-1.mp4?​linkonly | lab }} 
Line 176: Line 222:
 Course outline. Assessment methods. Office hours, course web site. Project work environment and tools. Lecture format: interrupt and ask questions! ​ Installing the IDE.  Writing microcontroller programs. Course outline. Assessment methods. Office hours, course web site. Project work environment and tools. Lecture format: interrupt and ask questions! ​ Installing the IDE.  Writing microcontroller programs.
  
-**Homework**\\+|  Slides: | {{ :​id2-01.pdf|id2-01.pdf }}  | 
 +|  Videos: | {{ :​id2-01-1.mp4?​linkonly|Overview }}, {{ :​id2-01-2.mp4?​linkonly|Installing the IDE }}, {{ :​id2-01-3.mp4?​linkonly|Microcontroller programming }}  | 
 +| Experiments:​ | {{ ::​id2-lab-01.pdf|id2-lab-01.pdf }}  | 
 + 
 +/*** 
 +**Homework** \\
 Review the {{ ::​id2-01.pdf|slides }} for this week's class.\\ Review the {{ ::​id2-01.pdf|slides }} for this week's class.\\
 Watch the videos for this week's class: ​ Watch the videos for this week's class: ​
Line 184: Line 235:
 Download and read Section 1 of the {{ ::​id2-00.pdf | Cookbook }}.\\ Download and read Section 1 of the {{ ::​id2-00.pdf | Cookbook }}.\\
 Complete the {{ ::​id2-lab-01.pdf|lab }}experiments. Complete the {{ ::​id2-lab-01.pdf|lab }}experiments.
 +***/
  
 Sample answers for week 1 experiments:​\\ Sample answers for week 1 experiments:​\\
Line 195: Line 247:
 | {{ ::​01-morse-general.ino | 01-morse-general }} | same thing extended for the entire Morse code | | {{ ::​01-morse-general.ino | 01-morse-general }} | same thing extended for the entire Morse code |
 | {{ ::​01-morse-array.ino | 01-morse-array }} | use an array instead of switch (trade data memory for code space) | | {{ ::​01-morse-array.ino | 01-morse-array }} | use an array instead of switch (trade data memory for code space) |
 +
 +**Homework**\\
 +Download and watch all week 1 videos.\\
 +Complete week 1 lab experiments.\\
 +Download and watch the week 2 videos **before** next week's class.\\
 +Complete as many lab experiments as possible **before** next week's class.
  
  
Line 227: Line 285:
 | {{ ::​02-serial-angle.ino | 02-serial-angle }} | report potentiometer angle | | {{ ::​02-serial-angle.ino | 02-serial-angle }} | report potentiometer angle |
 | {{ ::​02-serial-a0a1.ino | 02-serial-a0a1 }} | A0 and A1 values to serial monitor | | {{ ::​02-serial-a0a1.ino | 02-serial-a0a1 }} | A0 and A1 values to serial monitor |
-| {{ ::​sketch_etch.pyde | sketch_etch.py }} | etch-a-sketch with dots | +| {{ ::​sketch_etch.pyde | sketch_etch.pyde }} | etch-a-sketch with dots (for Processing 3 ONLY!) ​
-| {{ ::​sketch_line.pyde | sketch_line.py }} | etch-a-sketch with connected line segments |+| {{ ::​sketch_line.pyde | sketch_line.pyde }} | etch-a-sketch with connected line segments (for Processing 3 ONLY) | 
 +| {{ ::​sketch_etch.pde | sketch_etch.pde }} | etch-a-sketch with dots (for Processing 4) | 
 +| {{ ::​sketch_line.pde | sketch_line.pde ​}} | etch-a-sketch with connected line segments ​(for Processing 4) |
  
 **Homework**\\ **Homework**\\
Line 340: Line 400:
  
  
 +=== Week 11 — Digital input ===
 +
 +Digital input.
 +Momentary push-button '​tactile'​ switches.
 +Pull-up resistors.
 +Switch bounce and debouncing in hardware and software.
 +Capacitors and time constants.
 +Event-based interrupts for concurrency.
 +
 +|        Slides: | {{ :​id2-11.pdf|id2-11.pdf }}             |
 +|        Videos: | {{ :​id2-11-1.mp4?​linkonly|Digital inputs and buttons}}, ​   {{ :​id2-11-2.mp4?​linkonly|Debouncing ​   }}, {{ :​id2-11-3.mp4?​linkonly|Interrupt-driven input    }}, {{ :​id2-11-4.mp4?​linkonly|Experiment set-up ​   }}  |
 +|  EN subtitles: | {{ :​id2-11-1_en.mp4?​linkonly|Digital inputs and buttons}}, {{ :​id2-11-2_en.mp4?​linkonly|Debouncing }}, {{ :​id2-11-3_en.mp4?​linkonly|Interrupt-driven input }}, {{ :​id2-11-4_en.mp4?​linkonly|Experiment set-up }}  |
 +|   ​Experiments:​ | {{ ::​id2-lab-11.pdf|id2-lab-11.pdf }}    |
 +
 +
 +
 +=== Week 12 — Shift registers ===
 +
 +Serial to parallel conversion.
 +Shift registers.
 +
 +|        Slides: | {{ :​id2-12.pdf|id2-12.pdf }}             |
 +|        Videos: | {{ :​id2-12-1.mp4?​linkonly|Shift registers}}, ​   {{ :​id2-12-2.mp4?​linkonly|Experiment set-up ​   }}  |
 +|  EN subtitles: | {{ :​id2-12-1_en.mp4?​linkonly|Shift registers}},​ {{ :​id2-12-2_en.mp4?​linkonly|Experiment set-up }}  |
 +|   ​Experiments:​ | {{ ::​id2-lab-12.pdf|id2-lab-12.pdf }}    |
 +
 +
 +
 +
 +=== Week 13 — Serial communication:​ I2C and SPI ===
 +
 +Serial communication.
 +I2C and SPI protocols.
 +Using the MCP3204 analogue to digital converter with SPI.
 +
 +|        Slides: | {{ :​id2-13.pdf|id2-13.pdf }}             |
 +|        Videos: | {{ :​id2-13-1.mp4?​linkonly|Serial communication}}, ​   {{ :​id2-13-2.mp4?​linkonly|External ADC over SPI    }},    {{ :​id2-13-3.mp4?​linkonly|Experiment set-up ​   }}  |
 +|  EN subtitles: | {{ :​id2-13-1_en.mp4?​linkonly|Serial communication}},​ {{ :​id2-13-2_en.mp4?​linkonly|External ADC over SPI }}, {{ :​id2-13-3_en.mp4?​linkonly|Experiment set-up }}  |
 +|   ​Experiments:​ | {{ ::​id2-lab-13.pdf|id2-lab-13.pdf }}    |
 +
 +
 +
 +
 +=== Week 14 — Project ===
 +
 +|        Project suggestions:​ | {{ :​id2-14.pdf|id2-14.pdf }}             |
 +|        Support files: | {{ :​sine.h|sine.h }}             |
 +
 +
 +
 +
 +===== License =====
 +
 +The content of this page and all materials linked from it are\\
 +Copyright © 2015--2021 by Ian Piumarta.\\
 +All rights reserved.
 +
 +The author hereby grants a perpetual, non-transferable license to
 +Kyoto University of Advanced Science and its directly affiliated high schools
 +to use this material in original or modified form for classrom and/or
 +online teaching.
  
 /​************* /​*************