digital and analog electronics for the hobbyist

77
Digital and Analog Electronics for the Hobbyist Electrofrolics Shaastra 2010 Nagendra Krishnapura Dept. of EE, IIT Madras 30 th September 2010

Upload: lamkhanh

Post on 10-Feb-2017

244 views

Category:

Documents


15 download

TRANSCRIPT

Page 1: Digital and Analog Electronics for the Hobbyist

Digital and Analog Electronics for the Hobbyist

ElectrofrolicsShaastra 2010

Nagendra KrishnapuraDept. of EE, IIT Madras30th September 2010

Page 2: Digital and Analog Electronics for the Hobbyist

Signal processing systems

DSP...0100011011...

Digital Processing

Interface Electronics

(A-D and D-A Conversion)

. . .

Sensor(s) Actuator(s). . .

. . .

(Signal Conditioning)

Continuous-timeContinuous-amplitude

Discrete -timeDiscrete -amplitude

Continuous-timeContinuous-amplitude

Page 3: Digital and Analog Electronics for the Hobbyist

Why digital?

Page 4: Digital and Analog Electronics for the Hobbyist

Why digital?

• Digital levels less corrupted by noise • Convenient storage• Convenient signal processing

Page 5: Digital and Analog Electronics for the Hobbyist

Why analog?

Page 6: Digital and Analog Electronics for the Hobbyist

Why analog?

• Interface with the natural world• Higher maximum speed of operation• Analog to digital conversion• Digital to analog conversion

Page 7: Digital and Analog Electronics for the Hobbyist

Digital

Page 8: Digital and Analog Electronics for the Hobbyist

Digital logic circuits

• Simple logic gates• Complex logic gates

– Encoders– Adders

• Storage elements– Latches– Flip flops

• Input and output interfaces

Page 9: Digital and Analog Electronics for the Hobbyist

Digital logic-basic gates

• 7404 Inverter• 7400(NAND), 7402(NOR)• 7408(AND), 7432(OR)• 7486: XOR gate

Page 10: Digital and Analog Electronics for the Hobbyist

Digital logic-more complex blocks

• 74147: 10-Line to 4-Line Priority Encoder• 74154: 4-Line to 16-Line Decoder• 74273: 8 bit register with reset• 7483: 4 bit full adder• 7447 BCD to 7 segment decoder

Page 11: Digital and Analog Electronics for the Hobbyist

Digital logic-encoder

Figure reproduced from manufacturer’s datasheet

Page 12: Digital and Analog Electronics for the Hobbyist

Digital logic-adder (7483)

Figure reproduced from manufacturer’s datasheet

Page 13: Digital and Analog Electronics for the Hobbyist

Digital logic-storage

Figure reproduced from manufacturer’s datasheet

Page 14: Digital and Analog Electronics for the Hobbyist

Human interface-input

Page 15: Digital and Analog Electronics for the Hobbyist

Human interface-input

Page 16: Digital and Analog Electronics for the Hobbyist

Human interface-output(display)

Page 17: Digital and Analog Electronics for the Hobbyist

Driving an LED

Page 18: Digital and Analog Electronics for the Hobbyist

Driving a 7 segment display

Page 19: Digital and Analog Electronics for the Hobbyist

Driving a 7 segment display: Multiplexing

Page 20: Digital and Analog Electronics for the Hobbyist

Driving a 7 segment display: Multiplexing

Page 21: Digital and Analog Electronics for the Hobbyist

Analog

Page 22: Digital and Analog Electronics for the Hobbyist

Analog circuit components

• Opamp• CMOS inverter• Transistors• Diodes

Page 23: Digital and Analog Electronics for the Hobbyist

Opamp

• Provides a high gain• Used to provide negative feedback• vd =0 in negative feedback

Page 24: Digital and Analog Electronics for the Hobbyist

Opamp

Page 25: Digital and Analog Electronics for the Hobbyist

Opamp: LM741

• Single opamp in a package

• 1MHz gain bandwidth product

• 1V/s slew rate

Figure reproduced from manufacturer’s datasheet

Page 26: Digital and Analog Electronics for the Hobbyist

Opamp: LM324• 4 opamps in a

package• 1MHz gain bandwidth

product• 0.5V/s slew rate

Figure reproduced from manufacturer’s datasheet

Page 27: Digital and Analog Electronics for the Hobbyist

Opamp: LF347• 4 opamps in a

package• 4MHz gain bandwidth

product• 13V/s slew rate

• OUR CHOICE!

Figure reproduced from manufacturer’s datasheet

Page 28: Digital and Analog Electronics for the Hobbyist

Opamp: Amplifiers

Page 29: Digital and Analog Electronics for the Hobbyist

Opamp: Adders

Page 30: Digital and Analog Electronics for the Hobbyist

Opamp: Negative feedback

Page 31: Digital and Analog Electronics for the Hobbyist

Opamp: Negative feedback

Page 32: Digital and Analog Electronics for the Hobbyist

Opamp: Negative feedback

Page 33: Digital and Analog Electronics for the Hobbyist

Opamp: Integrator??

Page 34: Digital and Analog Electronics for the Hobbyist

Opamp: Integrator??

Page 35: Digital and Analog Electronics for the Hobbyist

Opamp: Filters

Page 36: Digital and Analog Electronics for the Hobbyist

Opamp: Filters

Page 37: Digital and Analog Electronics for the Hobbyist

Opamp: Logarithmic amplifiers

Page 38: Digital and Analog Electronics for the Hobbyist

Opamp: Logarithmic amplifiers

Page 39: Digital and Analog Electronics for the Hobbyist

Opamp: Digital to analog converter

Page 40: Digital and Analog Electronics for the Hobbyist

Opamp: Digital to analog converter

Page 41: Digital and Analog Electronics for the Hobbyist

Opamp: Schmitt trigger

Page 42: Digital and Analog Electronics for the Hobbyist

Opamp: Schmitt trigger

Page 43: Digital and Analog Electronics for the Hobbyist

Comparator

Figure reproduced from manufacturer’s datasheet

Page 44: Digital and Analog Electronics for the Hobbyist

CMOS inverter for analog

Page 45: Digital and Analog Electronics for the Hobbyist

CMOS inverter for analog

Page 46: Digital and Analog Electronics for the Hobbyist

Oscillator circuits

Page 47: Digital and Analog Electronics for the Hobbyist

Oscillator circuits

Page 48: Digital and Analog Electronics for the Hobbyist

Audio power amplifier-LM386

• LM386 audio amplifier IC ~ Rs. 12/-• Works without fuss with a minimum

number of external components• Gain of 20 or 200• Can be used for any of your projects• Data sheet has several example circuits

Page 49: Digital and Analog Electronics for the Hobbyist

Audio power amplifier-LM386

Figure reproduced from manufacturer’s datasheet

Page 50: Digital and Analog Electronics for the Hobbyist

Other analog chips

• Analog multiplier• MC1496 balanced modulator• CXA1619BM/BS AM/FM radio chip• LM565 Phase locked loop• LM566 Voltage controlled oscillator• … and many more

Page 51: Digital and Analog Electronics for the Hobbyist

More advanced circuit blocks

• Microcontrollers: PIC, 8051• Microcontrollers with ADC/DAC• Cypress PSoC

– Programmable analog and digital blocks

Page 52: Digital and Analog Electronics for the Hobbyist

Suggestions for projects

Page 53: Digital and Analog Electronics for the Hobbyist

Calculator

• Optimization– Minimize the number of chips– Combine the adder/subtractor

• Multiplier– Shift and add

Page 54: Digital and Analog Electronics for the Hobbyist

Analog to digital converter

• ADC using DAC and binary search

Page 55: Digital and Analog Electronics for the Hobbyist

Class D audio amplifier

Page 56: Digital and Analog Electronics for the Hobbyist

Spectrum analyzer

Page 57: Digital and Analog Electronics for the Hobbyist

Hobby of the era: Robotics

• Control systems • Electrical, mechanical engg.• Digital and analog electronics

• Lots of college level participation• International level events like Robocon

Page 58: Digital and Analog Electronics for the Hobbyist

Radio projects

• See “Radios for the hobbyist” Shaastra 2007 presentation

http://www.ee.iitm.ac.in/~nagendra/misc/20071006iitm_shaastra.pdf

Page 59: Digital and Analog Electronics for the Hobbyist

Assembling circuits

Page 60: Digital and Analog Electronics for the Hobbyist

Assembling circuits

• Breadboard– Quick assembly– Low frequency/low precision circuits– Not very robust

• PCBs– Takes time for assembly– High frequency/high precision circuits– Very robust

Page 61: Digital and Analog Electronics for the Hobbyist

A Neat Board : Guaranteed

Page 62: Digital and Analog Electronics for the Hobbyist

Guaranteed

: Not to work ! …

Page 63: Digital and Analog Electronics for the Hobbyist

Spaghetti is good stuff, but not on your board

Page 64: Digital and Analog Electronics for the Hobbyist

What can happen with messy wiring

Page 65: Digital and Analog Electronics for the Hobbyist

Both channels connected to the

same signal!

Page 66: Digital and Analog Electronics for the Hobbyist
Page 67: Digital and Analog Electronics for the Hobbyist

What can happen with messy wiring

Page 68: Digital and Analog Electronics for the Hobbyist

A Neatly Wired Breadboard

Page 69: Digital and Analog Electronics for the Hobbyist

Another one…

Page 70: Digital and Analog Electronics for the Hobbyist

Good practices

Colour : Red for Vdd, Black for ground

Page 71: Digital and Analog Electronics for the Hobbyist

Good practices

Colour : Neatly placed components

Page 72: Digital and Analog Electronics for the Hobbyist

PCBs

• Homebrewing– Copper clad board– Pattern transfer (from photocopies)– Ferric chloride etching

• Commercial (2 layer boards)– 3 medium sized boards for Rs. 500/ to 1000/-– ~ 1 week for fabrication– Many vendors in major cities

Page 73: Digital and Analog Electronics for the Hobbyist

From hobby to profession

Page 74: Digital and Analog Electronics for the Hobbyist

Theory and practice

• Not separate entities, go hand in hand• All the stuff from digital and analog circuits

classes are used in practical circuits• Need theory to push circuits’ performance• Need practice to be finally useful

– Takes a lot more time than solving textbook problems!

• BE METICULOUS, NOT SLOPPY!

Page 75: Digital and Analog Electronics for the Hobbyist

Links

Page 76: Digital and Analog Electronics for the Hobbyist

The internet

• Circuit schematics• Data sheets• Troubleshooting information• Many sites dedicated to hobbyists

– http://www.flashwebhost.com/circuit/index.php– http://www.juliantrubin.com/fairprojects/electronics/radio.html– http://my.integritynet.com.au/purdic/

• Many sites dedicated to robotics, many colleges have active robotics groups

Page 77: Digital and Analog Electronics for the Hobbyist

My pages• http://www.ee.iitm.ac.in/ nagendra/E4332/2005/courseinfo.html

– E4332: VLSI design laboratory– Design of an AM radio and a digital clock on an integrated circuit

• http://www.ee.iitm.ac.in/ nagendra/E4332/2005/handouts/amradio- trf.pdf– AM radio on a chip– Theory of Tuned frequency radios– Receiver block and schematic diagrams (more suitable for IC designs)

• http://www.ee.iitm.ac.in/ nagendra/E4332/2005/handouts/digital- clock.pdf– Has information on crystal oscillators

• http://www.ee.iitm.ac.in/vlsi/courses/ec330_2010/start– Many experiments using CMOS inverters as amplifiers

• http://www.ee.iitm.ac.in/~nagendra/misc/20071006iitm_shaastra.pdf– Radios for the hobbyist