IoT Lab Experiment 1-5
IoT Lab Experiment 1-5
ls, cd, touch, mv, rm, man, mkdir, rmdir, tar, gzip, cat, more, less, ps,
sudo,cron, chown,chgrp, ping etc.
Exp-2 Run some python programs on Pi like:
a) Read your name and print Hello message with name
b) Read two numbers and print their sum, difference, product and division.
c) Word and character count of a given string.
d) Area of a given shape (rectangle, triangle and circle) reading shape and
appropriate values from standard input.
(a) Read your name and print Hello message with name
(b) Read two numbers and print their sum, difference, product and division.
(c) Word and character count of a given string.
d) Area of a given shape (rectangle, triangle and circle) reading shape and appropriate
values from standard input
Exp-3 Run some python programs on Pi like:
a) Print a name 'n' times, where name and n are read from standard
input,using for and while loops.
b) Handle Divided by Zero Exception.
c) Print current time for 10 times with an interval of 10 seconds.
d) Read a file line by line and print the word count of each line.
(a) Print a name 'n' times, where name and n are read from standard
input,using for and while loops.
(b) Handle Divided by Zero Exception.
(c) Print current time for 10 times with an interval of 10 seconds.
(c)Read a file line by line and print the word count of each line.
Exp No. 4
(a) Light an LED through Python program
(b) Get input from two switches and switch on corresponding LEDs
(c) Flash an LED at a given on time and off time cycle, where the two times
are taken from a file.
(a) Light an LED through Python program
(b) Get input from two switches and switch on corresponding LEDs
(c) Flash an LED at a given on time and off time cycle, where the two times are taken from
a file.
Exp-5
(a) Flash an LED based on cron output (acts as an alarm)
(b) Switch on a relay at a given time using cron, where the relay's contact
terminals are connected to a load.
(c) Get the status of a bulb at a remote place (on the LAN) through web.
(a) Flash an LED based on cron output (acts as an alarm)
(b) Switch on a relay at a given time using cron, where the relay's contact terminals are
connected to a load.
(c) Get the status of a bulb at a remote place (on the LAN) through web.