29
Lecture 9

Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

Lecture 9

Page 2: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 3: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 4: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

555 Timer Block Diagram

5 5 5

Page 5: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

Connection Diagram

Identifier

Page 6: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

555 Timer without BS2

Connect to P1

Page 7: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

555 Timer with BS2

P1

Page 8: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

Astable Operation 1

Page 9: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

Calculation of Duty Cycle

lowhigh

lowhigh

high

high

low

ttf

ttt

cycleDuty

CRRtCRt

+=

+=

+==

1

)(693.0693.0

21

2

Page 10: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 11: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

Astable Operation 2

Page 12: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 13: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 14: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 15: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

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 16: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science SMART Funded by The National Science FoundationFoundation

555 Timer Experiments

17 and 18StampWorks

Others

Robotics

Earth measurements

6Basic A and D5What’s micro controller

ChaptersExperiments

Page 17: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

Lecture 10

Page 18: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

DS1620

• Digital thermometer– Provides 9-bit

temperature readings– Temperature range from

-55oC to 125oC– Acts as a thermostat

Page 19: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

Detail Description

Page 20: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

DS1620 with BS2

Page 21: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

Programming for DS1620 1

Low 13

High 13

Shiftout 15,14,lsbfirst,[12,2]

Low 13

End

Ready to start

Waiting state of DS1620

Sending the data bytes to P15 Clock

Least significant bit is sent first

Two bytes from BS2 to DS1620

Page 22: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

high 13 Shiftout 15,14,lsbfirst,[238] low 13

Temploop: high 13 shiftout 15,14,lsbfirst,[170] shiftin 15,14,lsbpre,[x] low 13 degC=x/2Goto Temploop

Programming for DS1620 2

Start conversionReady to start

Send “get data” command Get the data

Page 23: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

AD592• Analog temperature sensor

– Provides an output current proportional to absolute temperature

– Temperature range from -25oC to 105oC

– Acts as a thermostat– Extended out away from the

recording instruments

Page 24: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

Temperature Probe with AD592

• The part needs to be protected before being inserted into liquid

Page 25: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

How to Make Temperature Probe 11. Identify the AD 592’s (-), NC,

and (+) pins from this picture as viewed from the bottom

2. Slip the solder sleeve over the black wire and pin 3 (-)

3. Slip another solder sleeve over the red wire and pin 1 (+)

4. Heat up the connections until the wires are joined

Page 26: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

How to Make Temperature Probe 2

5. Slip the heat shrink tubing over the entire package

6. Fasten the package with a heat gun, and while it’s still hot clamp the top portion to ensure that it stays shut

Clamp here

Page 27: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

AD592 with BS2

Page 28: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

Caution!!

• Be careful when you put your finger on it

• Specially for a big finger

Page 29: Lecture 9 - NYU Tandon School of Engineeringengineering.nyu.edu/mechatronics/smart/pdf/lectures/LECT9_10.pdf · Lecture 10 SMART Funded by The National Science Foun dation DS1620

SMART Funded by The National Science FounSMART Funded by The National Science Foundationdation

Temperaure Sensors Experiments

28StampWorks

Others

Robotics

1, 2, 3*, and 4Earth measurements

Basic A and DWhat’s micro controller

ChaptersExperiments

*Use 2 wires for Simple Resistance Detector with proper resistor and capacitor