✦ VidyaVerseOpen interactive version

← Programming Concepts in Mechanical Engineering (25ME34I)

About the Course

Programming Concepts in Mechanical Engineering (25ME34I) · C-25 Diploma Mechanical, Semester III

Read with diagrams, search and self-test

Course at a Glance

ItemDetails
ProgramDiploma in Mechanical Engineering
SemesterIII (C-25 scheme)
Course nameProgramming Concepts in Mechanical Engineering
Course code25ME34I
TypeIntegrated (theory + practice)
Teaching schemeL : T : P = 3 : 0 : 4 (7 hours per week)
Contact hours91 hours per semester
Credits5
CIE marks50 (minimum 20)
SEE marks50, practical examination of 3 hours (minimum 20)

Course Outcomes

COAt the end of the course the student will be able to
CO-01Apply appropriate programming syntax while writing Python programs
CO-02Utilise and apply engineering data between programming environments and spreadsheet applications
CO-03Apply Python programming to solve quality control and Finite Element problems in mechanical engineering
CO-04Integrate Raspberry Pi hardware with Python for automation, robotics, control systems and data acquisition

Week-wise Syllabus Map to this Book

We ekTopicCOChapter
1Algorithms and Flowcharts11
2Introduction to Python and Basic Constructs12
3Control Structures (Conditional Statements and Loops)13
4Functions and Modules14
5Data Structures (Lists, Tuples, Dictionaries)15
6File Handling and Exception Handling26
7Object-Oriented Programming27
8Raspberry Pi Introduction, Setup and Motor Control48
9Sensor Integration and Data Collection49
10Statistical Quality Control: Basic Concepts and Control Charts2, 310
11SQC Calculations, Process Capability Cp and Cpk2, 311
12Hypothesis Testing, DOE, Quality Tools and TQM312
13Finite Element Method: Bar Element and Stress Distribution313

Scheme of Continuous Internal Evaluation (CIE)

Sl.AssessmentW ee kDuratio nMax marks
1CIE-1 Theory test (Weeks 1–4)490 min50
2CIE-2 Practice test7180 min50
3CIE-3 Theory test1090 min50
4CIE-4 Practice test13180 min50
5CIE-5 Portfolio evaluation through rubrics1– 13–50
Average of all five, scaled to50

The Semester End Examination (SEE) is a practical examination of 180 minutes for 50 marks (minimum 20). A typical full question contains one program on Python basics or OOP (10 marks), one quality-control program with Matplotlib charts (20 marks) and one Raspberry Pi program (20 marks). Model papers with complete solutions are given in Appendix A.

Software and Hardware Used

ItemSpecification
Python editorsJupyter Notebook, Spyder (Anaconda), PyCharm, IDLE, Google Colab
Python librariesmath, random, statistics, csv, NumPy, Matplotlib, pandas, SciPy
Raspberry PiModel 3B+/4B/5 with Raspberry Pi OS (Desktop or Lite)
GPIO librariesgpiozero (recommended), RPi.GPIO (Pi 3/4) or rpi-lgpio (Pi 5)
Components830-point breadboard, jumper wires, 5 mm LEDs, 220 Ω/330 Ω/1 kΩ/10 kΩ resistors
SensorsDHT11, BMP180, PIR (HC-SR501), HC-SR04 ultrasonic
ActuatorsL298N motor driver, DC gear motors, 5 V relay module, small pump/fan
N O T E

Install Anaconda (free) to get Python, Jupyter and Spyder together with NumPy, Matplotlib, pandas and SciPy. On a computer without installation rights, use Google Colab in a web browser.