You are on page 1of 9

INDUSTRY 4.

0 LAB REPORT

APRIL 7, 2021
HARSHIL PATEL
19BCH020
Experiment 1

Title: Basics of Python Programming.


Introduction:
Python is an interpreted, object-oriented, high-level programming language with
dynamic semantics. Its high-level built in data structures, combined with dynamic typing and
dynamic binding; make it very attractive for Rapid Application Development, as well as for
use as a scripting or glue language to connect existing components together. Python's simple,
easy to learn syntax emphasizes readability and therefore reduces the complexity of program
maintenance. Python supports modules and packages, which encourages program modularity
and code reuse. The Python interpreter and the extensive standard library are available in
source or binary form without charge for all major platforms, and can be freely distributed.
Often, programmers fall in love with Python because of the increased productivity it
provides. Since there is no compilation step, the edit-test-debug cycle is incredibly fast.
Debugging Python programs is very easy: a bug or bad input will never cause a segmentation
fault. A source level debugger allows inspection of local and global variables, evaluation of
arbitrary expressions, setting breakpoints, stepping through the code a line at a time, and so
on. The debugger is written in Python itself, testifying to Python's introspective power. On
the other hand, often the quickest way to debug a program is to add a few print statements to
the source: the fast edit-test-debug cycle makes this simple approach very effective.

Procedure
INDUSTRY 4.0 LAB REPORT

Steps to install spyder IDE (used for Python Programming):


 Step1: go to the home page of the official website of spyder IDE and then go to the
download menu and click on the download with windows button.

1|Page
INDUSTRY 4.0 LAB REPORT

 Step2: Read and agree all the conditions and click on the next button.

 Step3: Then select desired location and click on the install button to start installation
procedure.

2|Page
INDUSTRY 4.0 LAB REPORT

 Step4: After completing installation click on the finish button to finish installation
process.

 Step5: now go to start  all programs (or click windows button) and click on the
spyder IDE to launch.

3|Page
INDUSTRY 4.0 LAB REPORT

What you have learned?


We have learned many things regarding python. I learned what python is and how its
requirements arise. I also learned its syntax and about editors which use python and what are
the various projects and programs we can implement using python.

How can you use it for a long term project?


By using basics of python we can implement many programs here are some
of the examples
1. Print any message and any number:

4|Page
INDUSTRY 4.0 LAB REPORT

2. Taking input of two variable or message from user

Conclusion
Python is very easy to understand. It is very useful language. Its syntax in easy and not
much complex and it also has in-built library of function which helps newbies a lot. It is also
used in different projects and fields that’s why basics of python are very much important.
Many people find python easier than C++/C language to learn and can be used a starter
language to learn coding. I myself prefer python as I am in chemical engineering and coding
is not my first subject.

5|Page
INDUSTRY 4.0 LAB REPORT

Experiment 2

Title: introduction to Arduino embedded platform.


Introduction:
Arduino is an open-source platform in electronics based on easy-to-use hardware and
software. It is a microcontroller based board which can be used in developing digital
applications. It can read inputs and convert it in to output. The Arduino board can be
programmed to do anything by simple concepts of programming the microcontroller on
board using a set of particular instructions (c or cpp language). The Arduino board contains
aUSB plug to communicate with computer and a set of connection sockets that can be wired
to external devices like servo motors, LEDs etc. The aim of Arduino is to make us familiar
with the world of electronics. Arduino is an open source electronics project i.e. all the design
specifications, schematics, software are available openly to all the users. Hence, Arduino
boards can be bought from vendors as they are commercially available.

Procedure
 Step1: First install Arduino IDE in your laptop. It is open source software with all
required tools. To use Arduino board you need to install Arduino IDE.
 Step2: Build circuit related to project. Like wiring, all other connections and use of
any other useful things.
 Step3: Write Arduino sketch (c/cpp programs) in Arduino IDE related to project.
 Step4: After completing Arduino sketch connect Arduino board to computer
throughUSB. Then upload your Arduino sketch.
 Step5: Now test the Arduino whether it is working properly according to project or
not.

What I have learned?


We have learned lots of things about Arduino. We learned what is Arduino and its
usesand application and how it works. About different projects which include usage of
Arduino.We learned about languages that can be used to program Arduino. We learnt to
implement whole project and what are the steps to complete the project.

6|Page
INDUSTRY 4.0 LAB REPORT

How can we implement it for a long term project?


Below are the projects that can be implemented using Arduino:

1. Building an entire home automation system by using Arduino and Raspberry Pi.
2. Arduino 7 Segment Led Display and Counter.
3. Arduino Night Security Alarm using PIR Sensor.
4. Arduino based Car parking system.
5. Earthquake Detector using Arduino.
6. Arduino based Autopilot system
7. Arduino based Temperature Controller.
8. Arduino based Robotic Vehicle etc.

Conclusion
Arduino is the best embedded platform as it provides all the required tools then other
embedded microcontrollers. It just uses simple languages like c, cpp to provide higher level
abstraction and efficiency. So it is really very useful and can help to improve our knowledge.

7|Page

You might also like