anders ernevi - · pdf filebasic electronics anders ernevi. voltage and current • two...

24
Basic electronics Anders Ernevi

Upload: dangminh

Post on 26-Mar-2018

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Basic electronics

Anders Ernevi

Page 2: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Voltage and current

• Two different kinds: AC and DC – do not confuse...

• Polarity• Fixed voltage, varying current

consumption

Page 3: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Ohm’s law

• V=RI• I=V/R This is the most common case,

finding what current a certain loadconsumes at a fixed voltage

• R=V/I Very useful for calculating whatload we need to draw a certain current at a fixed voltage

Page 4: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Schematic diagrams

• Symbolic• Not always representing component layout• Lines crossing, with and without

connection

Page 5: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Connections

• Wires, Connected, Crossing

• Wires, Not Connected, Crossing

Page 6: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Schematic diagram

Page 7: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Components

• Resistor

• Capacitor

• Transistor

• Inductor

Page 8: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

• Op Amp

• IC

• Battery

• Ground

• LED/Diode

Page 9: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

BasicX-24

• 18 mm x 32 mm• ~ 50 mA• Basic• Price ~ $50

Basic Speed 65,000 instructions per second

EEPROM 32K bytes (User program and data storage)

Max program length 8000+ lines of Basic code

RAM 400 bytes

Available I/O pins 21 (16 standard + 2 serial only + 3 accessed outside standard dip pin area)

Analog Inputs (ADCs) 8 (8 of the 16 standard I/O pins can individually function as 10bit ADCs or standard digital I/Os or a mixture of both)

Serial I/O speed 1200 - 460.8K Baud

Programming interface High speed Serial

Physical Package 24 pin DIP module

Page 10: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Some Sensors

• Temperature• Pressure• Humidity• Soil humidity• Acceleration• Noise• Material stress

• Biometric• Motion• Distance• Touch• Location• Orientation• Light

Page 11: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Classification

• Simple vs. complex• Analog vs. digital• Continuous vs. discrete• Active vs. passive• Cost• Energy consumption• Size

Page 12: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

RFID

• Radio transmits energy to a tagthat sends back its unique id

• Antenna and tag size determinereading distance

• Reading distance 3 cm up to10-20 m

Page 13: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Cables and conventions

• Black = Ground, negative,-• Red = Positive,+• Use different colors for different signals –

except for above• Stiff wire on circuit board, soft wire for

connections

• Universial standard

Page 14: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Prototyping

• Breadboard• Prototype

board• Wire wrapping• Printed circuit

board

Page 15: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Breadboard

• Push components in• Certain holes are

connected• Be careful not to short

circuit

Page 16: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions
Page 17: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Prototype board

• Also called veroboard

• Copper on the back –solder side

• Three different layouts

Page 18: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

•Strips (shown)

•Groups of three

•Single rings

Page 19: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Wire wrapping• Quick prototyping• Risk for rats nests• Requires special

sockets and tools

Page 20: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Layout

• Start with the IC:s and work outwards• Keep wires short• Make a ground bus and a positive bus• A neat layout is easy to debug

Page 21: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Soldering

• Components as closeas possible

• Components restingon the board for stability

• Solder flowing out like a tent

Page 22: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Printed circuit board

• Better layout• Reproducible• Long lasting

Page 23: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Debugging

• Use ’beep’ mode on multi meter• Ceck that there’s one ground everywhere• Check voltages on all IC:s and other

places• Break problem into small blocks and

debug them first• Use different cable colors

Page 24: Anders Ernevi - · PDF fileBasic electronics Anders Ernevi. Voltage and current • Two different kinds: AC and DC – do not ... • Basic • Price ~ $50 Basic Speed 65,000 instructions

Tomorrow

• Exercise: Chuckles• Prototyping both on bread board and vero

board• Soldering• Check webpage