Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Using C Instructor: Chien-Ho Ko. General Information Course website: 數位學習平台 18 sessions Office hours: 10:10-12:00 Tuesdays & by appointment.

Similar presentations


Presentation on theme: "Programming Using C Instructor: Chien-Ho Ko. General Information Course website: 數位學習平台 18 sessions Office hours: 10:10-12:00 Tuesdays & by appointment."— Presentation transcript:

1 Programming Using C Instructor: Chien-Ho Ko

2 General Information Course website: 數位學習平台 18 sessions Office hours: 10:10-12:00 Tuesdays & by appointment RE 3013 ko@mail.npust.edu.tw

3 Objectives Students understand how to program using C language and know how to use it to solve problems. –C language –Solving problems using C

4 Grading Class attendance 10% Quizzes 10% Mid-term project 20% Final-project 20% Mid-term exam 20% Final exam 20%

5 Milestones 04/09-Quiz (Paper) –Class materials before the day 04/12 & 04/16-Mid-term exam (Machine) –Class materials before the day 04/19 & 04/23-Mid-term presentation –How to solve the final project

6 Milestones 06/11-Quiz (Paper) –Class materials before the day 06/14 & 06/18-Final Exam (Machine) –Class materials before the day 06/25-Final project –Robot programming competition

7 Project Description LEGO NXT robot Distance sensor NXT Touch sensor Servo motors Sound sensor

8 Project Description Useful Links –TWLUG Forums http://www.twlug.info/forums/ –NXC http://bricxcc.sourceforge.net/nbc/

9 Project Description Mid-term presentation –How to solve the final project Strategy Procedure –Four people a group Oral presentation Power point (See pictures)

10 Project Description Final project –Robot competition –Challenge 1.Drive toward to goods 2.Pick up goods 3.Drive toward to storage 4.Put down goods 卸貨區 存貨區 機器人 出發位置

11 Project Description Final project –Competition platform

12 Project Description Final project –Scoring

13 Project Description Grading policies –Complete the mission in 2 minutes –Participators 60 –Within 80% +10 –Within 50% +10 –Within 10% +10 –Depend on status +10 Awards and prize

14 User programs Firmware (machine code) NXT Software Architecture PC NXT Code Spirit.ocx USB/Serial port Wire NXT brick Hardware routines RAM ROM 1. NXT code Bytecode C, C++, JAVA, etc. 2. Compiled bytecode 3. Translate bytecode AI Blue tooth Wireless

15 Previous Developments Robot show Previous robot competitions –2006 –2007 –2008 –2009 –2010 –2011

16 Contents System development process –How to develop software systems Introduction to C –Why C, How C works Selections –if, then Repetitions –while, do loop, for

17 Contents Arithmetic calculations –Arithmetic operators & priorities Modular programming and functions –Function calls Formatted input and output –Formats for inputs and outputs Pointer –Pass values by pointers Array –Array structures

18 Teaching Style Example of drawing triangle and rectangle –A regular example in C Example of LEGO robot


Download ppt "Programming Using C Instructor: Chien-Ho Ko. General Information Course website: 數位學習平台 18 sessions Office hours: 10:10-12:00 Tuesdays & by appointment."

Similar presentations


Ads by Google