A lecture for Arduino Course, Winter 2017/18

Slides:



Advertisements
Similar presentations
Chapter 7 Series-Parallel Circuits. Objectives Analyze series-parallel circuits Analyze loaded voltage dividers Analyze ladder networks Analyze a Wheatstone.
Advertisements

Arduino Guitar Pedal Ian Andal IME 458 Dr. Pan.
555 Timer ©Paul Godin Updated February Oscillators ◊We have looked at simple oscillator designs using an inverter, and had a brief look at crystal.
Diode Applications Half wave rectifier and equivalent circuit with piece-wise linear model Ideal Vc Rf vi v i = VM sin (t)
Fundamentals of Power Electronics 1 Chapter 20: Quasi-Resonant Converters 20.2 Resonant switch topologies Basic ZCS switch cell: SPST switch SW : Voltage-bidirectional.
Cellular Neuroscience (207) Ian Parker Lecture # 1 - Enough (but not too much!) electronics to call yourself a cellular neurophysiologist
9/20/2004EE 42 fall 2004 lecture 91 Lecture #9 Example problems with capacitors Next we will start exploring semiconductor materials (chapter 2). Reading:
BASIC ELECTRONICS.
LECTURE 9 INTRO TO POWER ELECTRONICS
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 4P. 1Winter Quarter Analog Electronics Lab 4.
Electronics 1 Lecture 7 Diode types and application
ELECTRONICS PRIMER. Assignment: WEB-based Electronics Tutorial Basic definitions Components Ohm's Law LEDs and Transistors Additional electronics tutorials.
09/16/2010© 2010 NTUST Today Course overview and information.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lab 3P. 1Winter Quarter Analog Electronics Lab.
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
Concurrent Assessment DC Electronics 1 1.When you have a complete series circuit, is the current flow the same at every place in the circuit? 2.What is.
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
DC Circuits. EMF and Terminal Voltage Electric circuit needs a battery or generator to produce current – these are called sources of emf. Battery is a.
Capacitor-Resistor Circuits
SMV ELECTRIC TUTORIALS Nicolo Maganzini, Geronimo Fiilippini, Aditya Kuroodi 2015.
Introduction to Clock Tree Synthesis
1.0 LINEAR DC POWER SUPPLY The importance of DC Power Supply Circuit For electronic circuits made up of transistors and/or ICs, this power source.
SMV Electric Tutorials
1 Surge Current in the Capacitor filter Initially the filter capacitor is uncharged. At the instant the switch is closed, voltage is connected to the bridge.
Motor TYWu.
Instrumental Analysis AC Circuits. Alternating Currents I.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
A Requirement for Superposition. Objective of Lecture Introduce the property of linearity Chapter 4.2.
Arduino Application: Speed control of small DC Motors
Final Year Project: Wireless Power Transfer For Mobile Phone Kong Chin Hung D Supervisor: Dr. Wei-Nong FU.
BASICS OF ELECTRONICS.
ELECTRONICS PRIMER.
SENSORS.
Recall Lecture 8 Full Wave Rectifier Rectifier Parameters
Switched-mode power supply charger
Half-wave Rectifier.
Diode Circuits and DC Power Supply
Zero-current Switching Quasi-resonant Converters
CHAPTER 6 VOLTAGE REGULATOR Tulus Ikhsan Nasution.
Chapter 1 Introduction to Electronics
INDUSTRIAL ELECTRONICS/ELECTRICITY
Diode Clipping Circuits
Rectifiers and Filters
UNIT-IV Application of Special I.C’s.
555 Timer EEE DEPARTMENT KUMPAVAT HARPAL( )
Capacitive AC Circuits
Chem. 133 – 1/31 Lecture.
AC Inlet & AC Input Filter
Diode Applications Half wave rectifier and equivalent circuit with piece-wise linear model Ideal Vc Rf vi v i = VM sin (t)
How to avoid catching things on fire.
Unit IV 555 Timer.
Digital Electronics, Software and Hardware
Basic Laws of Electric Cicuits II
TEXTBOOK Please be informed that the Electronics textbook will be available from next week at OSCENT, an engineering textbook selling booth arranged by.
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
General Licensing Class
EET 1131 Unit 13 Multivibrators and the 555 Timer
Digital Control Systems Waseem Gulsher
Capacitor-Resistor Circuits
Recall Lecture 8 Full Wave Rectifier Rectifier Parameters
סימנים מוסכמים בחשמל ואלקטרוניקה
CSCI1600: Embedded and Real Time Software
Reading: Malvino chapter 3, Next: 4.10, 5.1, 5.8
Review Half Wave Full Wave Rectifier Rectifier Parameters
Multi-vibrators
ELECTRONICS II 3rd SEMESTER ELECTRICAL
Review Half Wave Full Wave Rectifier Rectifier Parameters
CSCI1600: Embedded and Real Time Software
Rectifiers.
Presentation transcript:

A lecture for Arduino Course, Winter 2017/18 A few useful circuits Boris van Sosin, Commissar-Engineer A lecture for Arduino Course, Winter 2017/18 Technion, IIT

Voltage Divider 𝐼= 𝑉 𝑅 Ohm’s Law: 𝐼= 𝑉 𝑅 𝐶𝑢𝑟𝑟𝑒𝑛𝑡= 𝑉𝑜𝑙𝑡𝑎𝑔𝑒 𝑅𝑒𝑠𝑖𝑠𝑡𝑎𝑛𝑐𝑒

Voltage Divider Assume: When open: Voltage reader has R=∞ to ground 𝐼= 𝑉 𝑅 Assume: Voltage reader has R=∞ to ground When open: V read = 0V 𝑉=0𝑉 𝐼=0 𝑉= 𝑉 𝐺𝑁𝐷 =0𝑉

Voltage Divider Assume: When closed: Voltage reader has R=∞ to ground 𝐼= 𝑉 𝑅 Assume: Voltage reader has R=∞ to ground When closed: V read = 5V 𝑉=5𝑉 𝐼= 𝑉𝐶𝐶 𝑅1 𝑉= 𝑉 𝐺𝑁𝐷 =0𝑉

Generalized Voltage Divider 𝐼= 𝑉 𝑅 Total current: 𝐼= 𝑉𝐶𝐶 𝑅1+𝑅2 Equal to current over each resistor 𝐼= 𝐼 𝑂𝑣𝑒𝑟 𝑅2 Therefore: 𝑉 𝑂𝑣𝑒𝑟 𝑅2 = 𝐼 𝑂𝑣𝑒𝑟 𝑅2 ⋅ 𝑅 2 =𝑉𝐶𝐶⋅ 𝑅 2 𝑅 1 + 𝑅 2 𝐼= 𝑉𝐶𝐶 𝑅1+𝑅2 𝑉= 𝑉 𝐺𝑁𝐷 =0𝑉 𝑉 𝑂𝑣𝑒𝑟 𝑅2 =𝑉𝐶𝐶⋅ 𝑅 2 𝑅 1 + 𝑅 2

Voltage Divider Uses: Lots of Arduino inputs

Low-Pass Filter Charging a capacitor through a resistor Initially capacitor is empty 𝑉 𝑟𝑒𝑎𝑑 =0𝑉 As capacitor charges, 𝑉 𝑟𝑒𝑎𝑑 rises

Low-Pass Filter Charging a capacitor through a resistor RC Law: 𝑉 𝑡 = 𝑉 𝑚𝑎𝑥 ⋅ 1− 𝑒 −𝑡⋅𝐶𝑜𝑛𝑠𝑡 𝑉 𝑡 Chart by desmos.com

Low-Pass Filter Charging a capacitor through a resistor RC Law RC Constant depends on resistor and capacitor 𝑉 𝑡 = 𝑉 𝑚𝑎𝑥 ⋅ 1− 𝑒 − 𝑡 𝑅⋅𝐶 Greater resistance and/or capacitance means slower charge

Low-Pass Filter Uses: Smoothing a signal

Low-Pass Filter Uses: Smoothing a signal Smoothing digital waveform to (nearly) analog Smoothing high frequency analog Noise filtering

H-Bridge Recall first tutorial: Powering a DC motor: Reversing a motor:

H-Bridge Control direction via logic? Simplified solution: Switches

H-Bridge Control direction via logic Close diagonal pair of switches to power motor Close other pair to reverse

H-Bridge Control direction via logic Problem: illegal states Short circuit!

H-Bridge Connecting to logic: Replace switches with transistors HIGH (or PWM) to D5 HIGH (or PWM) to D6 for reverse direction NEVER POWER BOTH! What is missing?

H-Bridge Connecting to logic Diodes, capacitor, protection against illegal state

H-Bridge Can be contained in a chip L293D 4x Half H-Bridge L298 2x Full H-Bridge

Increasing No. of Outputs Arduino UNO has 20 I/O pins TX/RX 12 digital I/O 6 digital Out + Analog In How can this be increased?

Shift Register Shift register Recall from Digital Systems / Logic Design Convert Serial to parallel

Shift Register Shift register Demo: Write 1100 to a 4-bit shift register Strategy: Write in reverse order

Shift Register Shift register Write 0 ? ? ?

Shift Register Shift register Write another 0 ? ?

Shift Register 1 1 Shift register Write 1 ?

Shift Register 1 1 Shift register Write another 1 1

Shift Register Problem: look at previous state Current output is 100 Is it valid? ?

Shift Register Problem: Intermediate output states Solution: second layer of registers Requires “Latch out” control