SlideShare a Scribd company logo
1 of 7
IISC Bangalore CPDM
Project Report: Motor Angle Controller
17/Dec/2019
Parnika Gupta
Banasthali Vidyapith
B.Tech Electronics & Comm. Eng
Completed Tasks
1. Make a DC motor work like a stepper - you input an angle the motor must turn to that
angle. Use a feedback control system. Implement this in hardware, no simulations
allowed.
Ans.
 Schematic
 Arduino Code
int SENSOR_B=2;
int motor=5;
int encoderCounter;
int counter;
int encoder_angle;
int c;
int sensed_angle=0;
int Max_count= 100;
void encoderIncrementISR()
{
counter++;
}
void setup() {
Serial.begin(9600);
pinMode(SENSOR_B, INPUT_PULLUP);
pinMode(motor, OUTPUT);
attachInterrupt(digitalPinToInterrupt(SENSOR_B), encoderIncrementISR, CHANGE);
}
void loop() {
//Serial.print(sensed_angle, DEC);
counter=0;
encoder_angle= 0;
if(Serial.available()>0)
{
encoder_angle = Serial.readString().toInt();
//Serial.print("MOTOR ANGLE: ");
//encoder_angle = (encoder_angle, DEC);
Serial.print("t");
encoderCounter = map(encoder_angle, 0, 360, 0, Max_count);
//Serial.print("ENCODER COUNTER: ");
//encoderCounter = (encoderCounter, DEC);
//Serial.print("n");
delay(3000);
while(counter <= encoderCounter)
{
digitalWrite(motor, HIGH);
c = counter;
}
sensed_angle = map(c, 0, Max_count , 0, 360);
digitalWrite(motor, LOW);
Serial.print(sensed_angle, DEC);
Serial.print("n");
delay(2000);
}
}
2. Make a GUI with python using pyside2 library to control the motor overUART. The
GUI must take the input angle and display the sensed angle from motor. A minimal
GUI is acceptable; however, it must function as required.
 Schematic
 PySide2 and PySerial App
import serial
import time
import sys
from PySide2.QtWidgets import *
from PySide2.QtGui import *
ser= serial.Serial('com9', 9600)
app = QApplication(sys.argv)
win = QWidget()
win.setWindowTitle("Motor Controller")
l1 = QLabel()
l1.setText("Enter the degrees: ")
l1.setFont(QFont("Arial", 24))
e1 = QLineEdit()
e1.setFont(QFont("Arial", 20))
def Motor_Angle():
val= e1.text()
ser.write(val.encode())
time.sleep(5)
a = ser.readline().strip()
print("Sensed Angle", a.decode())
app.exit()
button = QPushButton("ENTER")
button.clicked.connect(Motor_Angle)
layout = QVBoxLayout()
layout.addWidget(l1)
layout.addWidget(e1)
layout.addWidget(button)
win.setLayout(layout)
win.show()
sys.exit(app.exec_())
3. Make a video demonstration and put the link in the document. Also describe what you
did in less than 200 words, add screenshots of the GUI, and attach the code(s).
Ans. (Approx. 280 words)
 The video demonstration link:
https://photos.app.goo.gl/tfvM9Kho7qVa1rmm7
 Motor Controller
o Aim
a. DC motor work like a stepper - you input an angle the motor must turn to that
angle
b. Use a feedback control system
c. Make a GUI with python using pyside2 library to control the motor over UART
d. The GUI must take the input angle and display the sensed angle from motor.
o Components Used
a. Arduino Mega: For controlling the motor by Arduino programming
b. DC Motor: For angular rotation demonstration
c. Rotatory disc: For indicating steps the motor rotated IR speed motor
d. IR LM393: For counting the steps of motor
o Working
 The GUI app takes the angle and saves in a ‘val’ / value which is sent to the
serial port of the Arduino by PySerial library through UART.
 The angle is converted into the counter/ step values that the motor has the
count to make user defined angle.
 The steps taken by the motor is again converted into the angle and shown in
GUI and the sensed counts are converted back to angle and shown on
PyCharm terminal.
o Graph
o Conclusion
a. DC motor work like a stepper, you input an angle the motor must turn to that
angle – By mapping one rotation step counts to 0 to 360 degree angle range
b. Make a GUI with python using pyside2 library to control the motor over UART-
By PySide2 GUI app and PySerial serial connection to Arduino Com port library
from PyCharm tool
c. The GUI must take the input angle- GUI takes the angle input in the QLineEdit
widget
d. Display the sensed angle from motor- PyCharm console shows angle that has
been travelled by the motor by converting the step count at the time of rotation
of motor to the corresponding angle.
4. Research on non-contact temperature sensors and the types available for medical
applications. Do a write up in about 250 words.
Ans. (Approx. 266 words)
Introduction
Non- contact temperature sensors are basically used where there is vacuum or
controlled atmosphere and quick response is required like while measuring temperature
18
32
54
75
93
118
136
154
180 190
216
237
255
270
298
313
334
356
0
50
100
150
200
250
300
350
400
20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360
Entered Angle VS Sensed Angle Sensed Angle
of ventilation chamber or of 100s of people in a place having epidemics with an error of
±2 °C or ±4 °F and does not come with worldwide standardization. They are generally
used in monitoring devices, works on portable battery and digital mechanisms.
Working
Principle of Planck’s Law for thermal radiation is used, higher the temperature, the
faster the molecules move. It is measured by calibrating the intensity/energy emitted by
different wavelengths since unlike the contact sensors these do not maintain
equilibrium with the object’s temperature.
Types
Non- contact sensors are preferably divided into broadband, narrowband, ratio and
optical sensors devices. Broadband and narrow bands devices measure intensity and
differentiated with range of wavelengths, only dust, water vapour, smoke, radiation
absorptive and steam can create errors while measuring. Ratio radiation devices
calculates the ratio of the two energies with function of the temperature of the object
and optical radiation devices are sensitive to optical brightness and works majorly in
visible range.
Medical application types
For medical applications basically there are spot IR thermometers, IR scanning systems,
IR thermal imaging cameras. Here, the IR pyrometers are used for instantaneous
measurement of body of child (like- IR ear laser thermometer used by keeping in the ear
of child) or of a critical patient. IR scanners can be utilized for manufacturing of the
medicines, sanitation and security purpose in hospitals whereas the IR thermal cameras
are used for medical image processing, images are known as thermogram.
Thank you

More Related Content

What's hot

Fire Fighting Robot using arduino UNO PPT
Fire Fighting Robot using arduino UNO PPTFire Fighting Robot using arduino UNO PPT
Fire Fighting Robot using arduino UNO PPT
FarhanAhmade
 

What's hot (20)

DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINODESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled Wheelchair
 
IRJET- Multi - Purpose Fire Fighter Robot
IRJET- Multi - Purpose Fire Fighter RobotIRJET- Multi - Purpose Fire Fighter Robot
IRJET- Multi - Purpose Fire Fighter Robot
 
Fire fighting robot
Fire fighting robot Fire fighting robot
Fire fighting robot
 
Fire Fighting Robot using arduino UNO PPT
Fire Fighting Robot using arduino UNO PPTFire Fighting Robot using arduino UNO PPT
Fire Fighting Robot using arduino UNO PPT
 
IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...
IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...
IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...
 
Fire fighting Robot
Fire fighting RobotFire fighting Robot
Fire fighting Robot
 
IRJET-Android Controlled Firefighting Robot using Arduino
IRJET-Android Controlled Firefighting Robot using ArduinoIRJET-Android Controlled Firefighting Robot using Arduino
IRJET-Android Controlled Firefighting Robot using Arduino
 
Animatronic hand controller
Animatronic hand controllerAnimatronic hand controller
Animatronic hand controller
 
Robo arm final 2 (2)
Robo arm final  2 (2)Robo arm final  2 (2)
Robo arm final 2 (2)
 
Automatic Fire Fighting Robot by St John College
Automatic Fire Fighting Robot by St John CollegeAutomatic Fire Fighting Robot by St John College
Automatic Fire Fighting Robot by St John College
 
Gesture controlling of Robots
Gesture controlling of Robots Gesture controlling of Robots
Gesture controlling of Robots
 
Flexible robotic hand
Flexible robotic hand Flexible robotic hand
Flexible robotic hand
 
Temperature based fan speed control &amp; monitoring using arduino
Temperature based fan speed control &amp; monitoring using arduinoTemperature based fan speed control &amp; monitoring using arduino
Temperature based fan speed control &amp; monitoring using arduino
 
Air Conditioning Measurement Device
Air Conditioning Measurement DeviceAir Conditioning Measurement Device
Air Conditioning Measurement Device
 
Fire fighting robot ppt
Fire fighting robot pptFire fighting robot ppt
Fire fighting robot ppt
 
Temperature based fan controller
Temperature based fan controllerTemperature based fan controller
Temperature based fan controller
 
Robotic hand Bionics
Robotic hand BionicsRobotic hand Bionics
Robotic hand Bionics
 
IRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One MeterIRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One Meter
 
Build your 1st robot arm controlled by arduino
Build your 1st robot arm controlled by arduinoBuild your 1st robot arm controlled by arduino
Build your 1st robot arm controlled by arduino
 

Similar to IISC CPDM Task 2 Report

Fire Fighting Robot System
Fire Fighting Robot SystemFire Fighting Robot System
Fire Fighting Robot System
ijtsrd
 
Camera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEWCamera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEW
ijtsrd
 

Similar to IISC CPDM Task 2 Report (20)

Digital Tachometer using Aurdino
Digital Tachometer using AurdinoDigital Tachometer using Aurdino
Digital Tachometer using Aurdino
 
Fire Fighting Robot System
Fire Fighting Robot SystemFire Fighting Robot System
Fire Fighting Robot System
 
Camera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEWCamera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEW
 
Automatic room ventilation.pptx
Automatic room ventilation.pptxAutomatic room ventilation.pptx
Automatic room ventilation.pptx
 
PC Based DC Motor Speed Control using PID for Laboratory
PC Based DC Motor Speed Control using PID for LaboratoryPC Based DC Motor Speed Control using PID for Laboratory
PC Based DC Motor Speed Control using PID for Laboratory
 
quadcopter
quadcopterquadcopter
quadcopter
 
Orientation of Radar Antenna
Orientation of Radar AntennaOrientation of Radar Antenna
Orientation of Radar Antenna
 
L010127578
L010127578L010127578
L010127578
 
Orientation of Radar Antenna
Orientation of Radar AntennaOrientation of Radar Antenna
Orientation of Radar Antenna
 
A Review on Smart Generator Control using Android Application
A Review on Smart Generator Control using Android ApplicationA Review on Smart Generator Control using Android Application
A Review on Smart Generator Control using Android Application
 
IRJET- Weather Station Quadcopter using Arduino with NRF24L01 and GPS Module
IRJET-  	  Weather Station Quadcopter using Arduino with NRF24L01 and GPS ModuleIRJET-  	  Weather Station Quadcopter using Arduino with NRF24L01 and GPS Module
IRJET- Weather Station Quadcopter using Arduino with NRF24L01 and GPS Module
 
Ranisha FAN.pptx
Ranisha FAN.pptxRanisha FAN.pptx
Ranisha FAN.pptx
 
Design and Implementation of a Simple HMC6352 2-Axis-MR Digital Compass
Design and Implementation of a Simple HMC6352 2-Axis-MR Digital Compass Design and Implementation of a Simple HMC6352 2-Axis-MR Digital Compass
Design and Implementation of a Simple HMC6352 2-Axis-MR Digital Compass
 
IRJET - Transformers Monitoring using Arduino
IRJET -  	  Transformers Monitoring using ArduinoIRJET -  	  Transformers Monitoring using Arduino
IRJET - Transformers Monitoring using Arduino
 
Sensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controllerSensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controller
 
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
IRJET-  	  Closed Loop Speed Control of DC Motor by using PI ControllerIRJET-  	  Closed Loop Speed Control of DC Motor by using PI Controller
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
 
SATELLITE DISH POSITIONING CONTROL BY DC MOTOR USING IR REMOTE CONTROL
SATELLITE DISH POSITIONING CONTROL BY DC MOTOR USING IR REMOTE CONTROL SATELLITE DISH POSITIONING CONTROL BY DC MOTOR USING IR REMOTE CONTROL
SATELLITE DISH POSITIONING CONTROL BY DC MOTOR USING IR REMOTE CONTROL
 
4. exp.2 rotary encoder
4. exp.2 rotary encoder4. exp.2 rotary encoder
4. exp.2 rotary encoder
 
IRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoTIRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoT
 
Development of Smart system for Monitoring Windmill
Development of Smart system for Monitoring WindmillDevelopment of Smart system for Monitoring Windmill
Development of Smart system for Monitoring Windmill
 

More from PARNIKA GUPTA

Cypherock Assessment (1).pdf
Cypherock Assessment (1).pdfCypherock Assessment (1).pdf
Cypherock Assessment (1).pdf
PARNIKA GUPTA
 

More from PARNIKA GUPTA (12)

INTEGRATION_ASPECTS_OF_TELEMETRY_SYSTEM_FOR_A_SURVEILLANCE_UAV.pdf
INTEGRATION_ASPECTS_OF_TELEMETRY_SYSTEM_FOR_A_SURVEILLANCE_UAV.pdfINTEGRATION_ASPECTS_OF_TELEMETRY_SYSTEM_FOR_A_SURVEILLANCE_UAV.pdf
INTEGRATION_ASPECTS_OF_TELEMETRY_SYSTEM_FOR_A_SURVEILLANCE_UAV.pdf
 
Cypherock Assessment (1).pdf
Cypherock Assessment (1).pdfCypherock Assessment (1).pdf
Cypherock Assessment (1).pdf
 
Swadeshi Microprocessor Quiz 2020 (Start-up India)
Swadeshi Microprocessor Quiz 2020 (Start-up India)Swadeshi Microprocessor Quiz 2020 (Start-up India)
Swadeshi Microprocessor Quiz 2020 (Start-up India)
 
IISC CPDM Task 1 Report
IISC CPDM Task 1 ReportIISC CPDM Task 1 Report
IISC CPDM Task 1 Report
 
Remote sensing and gis based identification of hazardous
Remote sensing and gis based identification of hazardousRemote sensing and gis based identification of hazardous
Remote sensing and gis based identification of hazardous
 
Beam forming- New Technology
Beam forming- New TechnologyBeam forming- New Technology
Beam forming- New Technology
 
LoRa application for detecting the harmful gases
LoRa application for detecting the harmful gasesLoRa application for detecting the harmful gases
LoRa application for detecting the harmful gases
 
Human Computer Interface Glove for Sign Language Translation
Human Computer Interface Glove for Sign Language TranslationHuman Computer Interface Glove for Sign Language Translation
Human Computer Interface Glove for Sign Language Translation
 
GIS application in Defense
GIS application in DefenseGIS application in Defense
GIS application in Defense
 
Transceiver System requirement specifications for 20 km range UAV video datalink
Transceiver System requirement specifications for 20 km range UAV video datalinkTransceiver System requirement specifications for 20 km range UAV video datalink
Transceiver System requirement specifications for 20 km range UAV video datalink
 
HAPTIC SUIT- Project Report(2018)
HAPTIC SUIT- Project Report(2018)HAPTIC SUIT- Project Report(2018)
HAPTIC SUIT- Project Report(2018)
 
HAPTIC SUIT presentation (2018)
HAPTIC SUIT presentation (2018) HAPTIC SUIT presentation (2018)
HAPTIC SUIT presentation (2018)
 

Recently uploaded

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 

Recently uploaded (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 

IISC CPDM Task 2 Report

  • 1. IISC Bangalore CPDM Project Report: Motor Angle Controller 17/Dec/2019 Parnika Gupta Banasthali Vidyapith B.Tech Electronics & Comm. Eng Completed Tasks 1. Make a DC motor work like a stepper - you input an angle the motor must turn to that angle. Use a feedback control system. Implement this in hardware, no simulations allowed. Ans.  Schematic
  • 2.  Arduino Code int SENSOR_B=2; int motor=5; int encoderCounter; int counter; int encoder_angle; int c; int sensed_angle=0; int Max_count= 100; void encoderIncrementISR() { counter++; } void setup() { Serial.begin(9600); pinMode(SENSOR_B, INPUT_PULLUP); pinMode(motor, OUTPUT); attachInterrupt(digitalPinToInterrupt(SENSOR_B), encoderIncrementISR, CHANGE); } void loop() { //Serial.print(sensed_angle, DEC); counter=0; encoder_angle= 0; if(Serial.available()>0) { encoder_angle = Serial.readString().toInt(); //Serial.print("MOTOR ANGLE: "); //encoder_angle = (encoder_angle, DEC); Serial.print("t"); encoderCounter = map(encoder_angle, 0, 360, 0, Max_count); //Serial.print("ENCODER COUNTER: "); //encoderCounter = (encoderCounter, DEC); //Serial.print("n"); delay(3000);
  • 3. while(counter <= encoderCounter) { digitalWrite(motor, HIGH); c = counter; } sensed_angle = map(c, 0, Max_count , 0, 360); digitalWrite(motor, LOW); Serial.print(sensed_angle, DEC); Serial.print("n"); delay(2000); } } 2. Make a GUI with python using pyside2 library to control the motor overUART. The GUI must take the input angle and display the sensed angle from motor. A minimal GUI is acceptable; however, it must function as required.  Schematic  PySide2 and PySerial App import serial import time import sys from PySide2.QtWidgets import * from PySide2.QtGui import * ser= serial.Serial('com9', 9600)
  • 4. app = QApplication(sys.argv) win = QWidget() win.setWindowTitle("Motor Controller") l1 = QLabel() l1.setText("Enter the degrees: ") l1.setFont(QFont("Arial", 24)) e1 = QLineEdit() e1.setFont(QFont("Arial", 20)) def Motor_Angle(): val= e1.text() ser.write(val.encode()) time.sleep(5) a = ser.readline().strip() print("Sensed Angle", a.decode()) app.exit() button = QPushButton("ENTER") button.clicked.connect(Motor_Angle) layout = QVBoxLayout() layout.addWidget(l1) layout.addWidget(e1) layout.addWidget(button) win.setLayout(layout) win.show() sys.exit(app.exec_()) 3. Make a video demonstration and put the link in the document. Also describe what you did in less than 200 words, add screenshots of the GUI, and attach the code(s). Ans. (Approx. 280 words)  The video demonstration link: https://photos.app.goo.gl/tfvM9Kho7qVa1rmm7
  • 5.  Motor Controller o Aim a. DC motor work like a stepper - you input an angle the motor must turn to that angle b. Use a feedback control system c. Make a GUI with python using pyside2 library to control the motor over UART d. The GUI must take the input angle and display the sensed angle from motor. o Components Used a. Arduino Mega: For controlling the motor by Arduino programming b. DC Motor: For angular rotation demonstration c. Rotatory disc: For indicating steps the motor rotated IR speed motor d. IR LM393: For counting the steps of motor o Working  The GUI app takes the angle and saves in a ‘val’ / value which is sent to the serial port of the Arduino by PySerial library through UART.  The angle is converted into the counter/ step values that the motor has the count to make user defined angle.  The steps taken by the motor is again converted into the angle and shown in GUI and the sensed counts are converted back to angle and shown on PyCharm terminal. o Graph
  • 6. o Conclusion a. DC motor work like a stepper, you input an angle the motor must turn to that angle – By mapping one rotation step counts to 0 to 360 degree angle range b. Make a GUI with python using pyside2 library to control the motor over UART- By PySide2 GUI app and PySerial serial connection to Arduino Com port library from PyCharm tool c. The GUI must take the input angle- GUI takes the angle input in the QLineEdit widget d. Display the sensed angle from motor- PyCharm console shows angle that has been travelled by the motor by converting the step count at the time of rotation of motor to the corresponding angle. 4. Research on non-contact temperature sensors and the types available for medical applications. Do a write up in about 250 words. Ans. (Approx. 266 words) Introduction Non- contact temperature sensors are basically used where there is vacuum or controlled atmosphere and quick response is required like while measuring temperature 18 32 54 75 93 118 136 154 180 190 216 237 255 270 298 313 334 356 0 50 100 150 200 250 300 350 400 20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 Entered Angle VS Sensed Angle Sensed Angle
  • 7. of ventilation chamber or of 100s of people in a place having epidemics with an error of ±2 °C or ±4 °F and does not come with worldwide standardization. They are generally used in monitoring devices, works on portable battery and digital mechanisms. Working Principle of Planck’s Law for thermal radiation is used, higher the temperature, the faster the molecules move. It is measured by calibrating the intensity/energy emitted by different wavelengths since unlike the contact sensors these do not maintain equilibrium with the object’s temperature. Types Non- contact sensors are preferably divided into broadband, narrowband, ratio and optical sensors devices. Broadband and narrow bands devices measure intensity and differentiated with range of wavelengths, only dust, water vapour, smoke, radiation absorptive and steam can create errors while measuring. Ratio radiation devices calculates the ratio of the two energies with function of the temperature of the object and optical radiation devices are sensitive to optical brightness and works majorly in visible range. Medical application types For medical applications basically there are spot IR thermometers, IR scanning systems, IR thermal imaging cameras. Here, the IR pyrometers are used for instantaneous measurement of body of child (like- IR ear laser thermometer used by keeping in the ear of child) or of a critical patient. IR scanners can be utilized for manufacturing of the medicines, sanitation and security purpose in hospitals whereas the IR thermal cameras are used for medical image processing, images are known as thermogram. Thank you