lecture 8 - home | nyu tandon school of...
TRANSCRIPT
![Page 1: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/1.jpg)
Lecture 8
Servomotors
![Page 2: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/2.jpg)
SMART 2010SMART 2010
Servo Motor• DC motors with feedback
position control • As long as the coded signal
exists on the input line, the servo will maintain the angular position of the shaft
• As the coded signal changes, the angular position of the shaft changes
![Page 3: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/3.jpg)
SMART 2010SMART 2010
Servo Motor: How It Work?• Consists of some control circuit
and a potentiometer• This potentiometer allows the
control circuitry to monitor the current angle of the servo motor
• If the shaft is at the correct angle, then the motor shuts off
• If the circuit finds that the angle is not correct, it will turn the motor in the correct direction until the angle is corrected
![Page 4: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/4.jpg)
SMART 2010SMART 2010
Servo Motor Wiring
![Page 5: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/5.jpg)
SMART 2010SMART 2010
Servo Motor with BS2Only when you use AA battery pack
2 servo motors only Need another capacitor for additional servo motors
![Page 6: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/6.jpg)
SMART 2010SMART 2010
Sample CodeX var byteOutput 12
Here:For X = 1 to 100Pulsout 12, 500Pause 10NextPause 500
For X = 1 to 100Pulsout 12, 1000Pause 10NextPause 500
Goto Here
Pulsout Pin #, Duration12 is pin number of BS2500 means 1millisecond
![Page 7: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/7.jpg)
SMART 2010SMART 2010
PWM
• Pulse-Width-Modulation• An efficient method to deliver controlled amount of
power to loads such as motors• Use square voltage pulses• Modulation
– Process of controlling the duty cycle of square wave
• Pulse-width-modulator– The circuit used to achieve modulation tasks
![Page 8: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/8.jpg)
SMART 2010SMART 2010
PWM - Duty Cycle
Amount of power delivered to load depending on duration of each pulse
![Page 9: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/9.jpg)
SMART 2010SMART 2010
The Basic PWM Control
![Page 10: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/10.jpg)
SMART 2010SMART 2010
Stepper Motor
•Do not spin freely with just power
•Driven by the interaction (attraction and repulsion) of magnetic fields
•With proper sequence of the on-off pattern of the magnetic fields, the stepper turns (when it’s not, the stepper sits and quivers).
![Page 11: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/11.jpg)
SMART 2010SMART 2010
Stepper Motor with BS2
ULN 2803 high-current transistor driver
![Page 12: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/12.jpg)
SMART 2010SMART 2010
Motor ExperimentsExperiments Chapters
What’s micro controller 4Basic A and D
Process Control
Boe Bot Robotics 2
Smart Sensors
Others
![Page 13: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/13.jpg)
Lecture 9
555 Timer
![Page 14: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/14.jpg)
SMART 2010SMART 2010
Pulse Generation
• Pulsout– Software version of pulse generation– Pulsout pin, Period
• Pin: specified I/O pin from 0 to 15• Period: 2 μsec per each unit
• 555 Timer– Hardware version of pulse generation– BS2 can do other works– Microcontroller is not necessary
![Page 15: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/15.jpg)
SMART 2010SMART 2010
555 Timer• Highly stable devices for generating
accurate time delay or oscillation
• Not programmable
• Controlled by resistors and capacitors
• Applications
– Pulse generation
– PWM
– Time delay generation
![Page 16: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/16.jpg)
SMART 2010SMART 2010
555 Timer Block Diagram
5 5 5
![Page 17: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/17.jpg)
SMART 2010SMART 2010
Connection Diagram
Identifier
![Page 18: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/18.jpg)
SMART 2010SMART 2010
555 Timer without BS2
Connect to P1
![Page 19: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/19.jpg)
SMART 2010SMART 2010
555 Timer with BS2
P1
![Page 20: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/20.jpg)
SMART 2010SMART 2010
Astable Operation 1
![Page 21: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/21.jpg)
SMART 2010SMART 2010
Calculation of Duty Cycle
lowhigh
lowhigh
high
high
low
ttf
ttt
cycleDuty
CRRtCRt
+=
+=
+==
1
)(693.0693.0
21
2
![Page 22: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/22.jpg)
SMART 2010SMART 2010
Calculation of Duty Cycle
Hzmsms
f
msmsmscycleDuty
msnFKKtmsnFKt
high
low
426.91.14
1
6.06.91.14
1.14
1.14)680)(2010(693.06.9)680)(20(693.0
=+
=
=+
=
=+===
![Page 23: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/23.jpg)
SMART 2010SMART 2010
Astable Operation 2
![Page 24: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/24.jpg)
SMART 2010SMART 2010
Applications 1
• It will sound an alarm if it gets too dark all over sudden
• The LDR enables the alarm when light falls below a certain level
![Page 25: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/25.jpg)
SMART 2010SMART 2010
Applications 2
• This circuit can be used as a audible 'Power-out Alarm'
• When the line voltage fails, the tone will be heard in the speaker
![Page 26: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/26.jpg)
SMART 2010SMART 2010
Applications 3
• Actually really a alarm circuit, it shows how to use a 555 timer and a small glass-encapsulated mercury switch to indicate 'tilt'.
![Page 27: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/27.jpg)
SMART 2010SMART 2010
Applications 4
• A Metronome is a device used in the music industry
• It indicates the rhythm by a 'tic-toc' sound which speed can be adjusted with the 250K potentiometer
![Page 28: Lecture 8 - Home | NYU Tandon School of Engineeringengineering.nyu.edu/.../smart/pdf/SMART2010/PDFLectrues/Lectures… · Lectures(Day4).ppt Author: Administrator Created Date: 7/4/2010](https://reader036.vdocument.in/reader036/viewer/2022070714/5ed662398368e16df13cdfb1/html5/thumbnails/28.jpg)
SMART 2010SMART 2010
555 Timer ExperimentsExperiments Chapters
What’s micro controller 5Basic A and D 6
Process Control
Boe Bot Robotics
Smart Sensors
Others