Difference between revisions of "ME 333 Readings, Videos, and Sample Code"

From Mech
Jump to navigationJump to search
Line 34: Line 34:


===Chapter 1: Quickstart===
===Chapter 1: Quickstart===
*'''Section 1.3''':

* [[Media:NU32test.hex|NU32test.hex]]
----
** [[Media:simplePIC.c|simplePIC.c]]
** [[Media:NU32bootloaded.ld|NU32bootloaded.ld]]
** [[Media:simplePIC_standalone.c|simplePIC_standalone.c]]
** [[Media:talkingPIC.c|talkingPIC.c]]
** [[Media:NU32.c|NU32.c]]
** [[Media:NU32.h|NU32.h]]


===Chapter 2: Looking Under the Hood: Hardware===
===Chapter 2: Looking Under the Hood: Hardware===
Line 46: Line 52:


===Chapter 4: Using Libraries===
===Chapter 4: Using Libraries===
*'''Section 4.5''':
** [[Media:LCD.c|LCD.c]]
** [[Media:LCD.h|LCD.h]]
** [[Media:LCDwrite.c|LCDwrite.c]]

===Chapter 5: Time and Space===
*'''Section 5.1''':
** [[Media:timing.c|timing.c]]

===Chapter 6: Interrupts===
*'''Section 6.1''':
** [[Media:INT_core_timer.c|INT_core_timer.c]]
** [[Media:INT_ext_int.c|INT_ext_int.c]]
** [[Media:INT_timing.c|INT_timing.c]]

===Chapter 7: Digital Input and Output===


----
----


===Chapter 5: Time and Space===
===Chapter 8: Counters / Timers===


----
----


===Chapter 6: Interrupts===
===Chapter 9: Output Compare===

----

===Chapter 10: Analog Input===

----

===Chapter 11: UART===
** [[Media:UART_loopback.c|UART_loopback.c]]
** [[Media:UART_pic_to_pic.c|UART_pic_to_pic.c]]
** [[Media:UART_hfc_to_pc.c|UART_hfc_to_pc.c]]
** [[Media:UART_xbee.c|UART_xbee.c]]
** [[Media:UART_pic_to_matlab.c|UART_pic_to_matlab.c]]
** [[Media:UART_pic_to_matlab.m|UART_pic_to_matlab.m]]
** [[Media:UART_pic_to_processing.c|UART_pic_to_processing.c]]
** [[Media:UART_pic_to_processing.pde|UART_pic_to_processing.pde]]
** [[Media:UART_pic_to_html5.zip|UART_pic_to_html5.zip]]

===Chapter 12: SPI Communication===

----

===Chapter 13: I2C Communication===

----

===Chapter 14: USB===

----

===Chapter 15: Input Capture===

----

===Chapter 16: Comparator===

----

===Chapter 17: Watchdog Timer===

----

===Chapter 18: Storing Data in Flash Memory===

----

===Chapter 19: Power Saving===

----

===Chapter 20: Real-time Clock and Calendar===

----

===Chapter 21: Controller Area Network (CAN)===

----

===Chapter 22: Direct Memory Access===

----

===Chapter 23: Sensors and Signal Conditioning===

----

===Chapter 24: Digital Signal Processing===

----

===Chapter 25: Brushed Permanent Magnet DC Motors===

----

===Chapter 26: DC Motor Control===

----

===Chapter 27: Brushless Motor Control===

----

===Chapter 28: Stepper Motors and RC Servos===

----

===Chapter 29: Connecting to an Android Device===

----

Revision as of 14:56, 13 December 2013

Readings, videos, exercises, and sample code for ME 333 Introduction to Mechatronics.

Appendix: A Crash Course in C

Reading: A Crash Course in C

Videos:

  1. Writing your first program in C, HelloWorld.c (5:09). Chapter A.1. Exercises: 1.
  2. Differences between C and MATLAB (7:30). Chapter A.2. Exercises: 2, 3.
  3. Binary and hexadecimal (Base 2 and 16) (4:47). Chapter A.3.1. Exercises: 4, 6.
  4. Data types (5:30). Chapter A.3.1. Exercises: 8, 10.
  5. Using the data types (3:49). Chapter A.3.1. Exercises: 11.
  6. Representations of data types (5:15). Chapter A.3.1. Exercises: 12, 13.
  7. Pointer basics (5:54). Chapter A.3.2. Exercises: 14, 15.
  8. Sample program: printout.c (5:55). Chapter A.4. Exercises: 16 (not covered in video, reading only) 17, 18.
  9. Sample program: datasizes.c (2:57). Chapter A.4. Exercises: 9.
  10. Sample program: overflow.c (2:43). Chapter A.4. Exercises: 19.
  11. Sample program: typecast.c (5:43). Chapter A.4. Exercises: 20.
  12. invest.c, part 1/5: intro to a typical C program (4:18). Chapter A.4. Exercises: 23.
  13. invest.c, part 2/5: overview (3:58). Chapter A.4. Exercises: 24, 25.
  14. invest.c, part 3/5: sections 1-4: program comments, preprocessor commands, new data type definitions, and global variables (4:48). Chapter A.4. Exercises: 26.
  15. invest.c, part 4/5: sections 5-6: helper function prototypes and the main function (4:40). Chapter A.4.
  16. invest.c, part 5/5: section 7: helper functions (7:42). Chapter A.4. Exercises: 28-30, 32, 33 (some material covered in reading only).

Sample Code:



Chapter 1: Quickstart

Chapter 2: Looking Under the Hood: Hardware


Chapter 3: Looking Under the Hood: Software


Chapter 4: Using Libraries

Chapter 5: Time and Space

Chapter 6: Interrupts

Chapter 7: Digital Input and Output


Chapter 8: Counters / Timers


Chapter 9: Output Compare


Chapter 10: Analog Input


Chapter 11: UART

Chapter 12: SPI Communication


Chapter 13: I2C Communication


Chapter 14: USB


Chapter 15: Input Capture


Chapter 16: Comparator


Chapter 17: Watchdog Timer


Chapter 18: Storing Data in Flash Memory


Chapter 19: Power Saving


Chapter 20: Real-time Clock and Calendar


Chapter 21: Controller Area Network (CAN)


Chapter 22: Direct Memory Access


Chapter 23: Sensors and Signal Conditioning


Chapter 24: Digital Signal Processing


Chapter 25: Brushed Permanent Magnet DC Motors


Chapter 26: DC Motor Control


Chapter 27: Brushless Motor Control


Chapter 28: Stepper Motors and RC Servos


Chapter 29: Connecting to an Android Device