Signal Processing in So.ware and Electric Field Sensing

Similar documents
Experiment # (4) AM Demodulator

DAC Digital To Analog Converter

Constructing a precision SWR meter and antenna analyzer. Mike Brink HNF, Design Technologist.

Section 3. Sensor to ADC Design Example

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Reading: HH Sections , (pgs , )

Lab 7: Operational Amplifiers Part I

Atmel Norway XMEGA Introduction

Lecture 24. Inductance and Switching Power Supplies (how your solar charger voltage converter works)

RF Measurements Using a Modular Digitizer

Building a Simulink model for real-time analysis V Copyright g.tec medical engineering GmbH

POCKET SCOPE 2. The idea 2. Design criteria 3

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Measuring Impedance and Frequency Response of Guitar Pickups

Electrical Resonance

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Tire pressure monitoring

Germanium Diode AM Radio

Digital Transmission of Analog Data: PCM and Delta Modulation

Android based Alcohol detection system using Bluetooth technology

Solar Energy Conversion using MIAC. by Tharowat Mohamed Ali, May 2011

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Pulse Width Modulation

Operational Amplifier - IC 741

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Op Amp Circuit Collection

DDX 7000 & Digital Partial Discharge Detectors FEATURES APPLICATIONS

Lock - in Amplifier and Applications

25. AM radio receiver

WHY DIFFERENTIAL? instruments connected to the circuit under test and results in V COMMON.

a leap ahead in analog

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Lab 1: The Digital Oscilloscope

W a d i a D i g i t a l

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

MAS.836 HOW TO BIAS AN OP-AMP

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Software Defined Radio

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Timer A (0 and 1) and PWM EE3376

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Fundamentals of Power Electronics. Robert W. Erickson University of Colorado, Boulder

LOW COST MOTOR PROTECTION FILTERS FOR PWM DRIVE APPLICATIONS STOPS MOTOR DAMAGE

Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems

Chapter 6: From Digital-to-Analog and Back Again

Making Accurate Voltage Noise and Current Noise Measurements on Operational Amplifiers Down to 0.1Hz

FFT Frequency Detection on the dspic

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Prepared by: Paul Lee ON Semiconductor

AM TRANSMITTERS & RECEIVERS

RLC Series Resonance

FREQUENCY RESPONSE ANALYZERS

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

Digital Signal Controller Based Automatic Transfer Switch

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Circuits with inductors and alternating currents. Chapter 20 #45, 46, 47, 49

Type-D EEG System for Regular EEG Clinic

Scaling and Biasing Analog Signals

Switch Mode Power Supply Topologies

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Modification Details.

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Bi-directional Power System for Laptop Computers

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Precision Diode Rectifiers

Positive Feedback and Oscillators

ECONseries Low Cost USB DAQ

User s Guide DDS-3X25 USB ARBITRARY FUNCTION GENERATOR

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Dayton Audio is proud to introduce DATS V2, the best tool ever for accurately measuring loudspeaker driver parameters in seconds.

Designing Gain and Offset in Thirty Seconds

The Calculation of G rms

OPERATIONAL AMPLIFIERS. o/p

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

DDX 7000 & Digital Partial Discharge Detectors FEATURES APPLICATIONS

Karaoke Circuit Building Instructions

A Short Discussion on Summing Busses and Summing Amplifiers By Fred Forssell Copyright 2001, by Forssell Technologies All Rights Reserved

EET272 Worksheet Week 9

Bipolar Transistor Amplifiers

Measuring Insulation Resistance of Capacitors

DEVELOPMENT OF DEVICES AND METHODS FOR PHASE AND AC LINEARITY MEASUREMENTS IN DIGITIZERS

Analog to Digital Conversion of Sound with the MSP430F2013

Apple iphone/ipod Touch - ieffect Mobile Guitar Effect Accessory & Application

Measuring Biased Inductors with the GenRad Digibridge

Very Low Frequency Electromagnetic Field Detection

AFG-100/200 series USB Modular Arbitrary Function Generator. Date: Oct, 2014

Analog Signal Conditioning

STM32L. Ultra-low-power Cortex -M3 devices

Lab 5 Getting started with analog-digital conversion

Wireless Home Security System

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

Inductors in AC Circuits

Transcription:

Signal Processing in So.ware and Electric Field Sensing CSE 466: So.ware for Embedded Systems Winter 2009 B. Mayton <bmayton@cs.washington.edu> University of Washington CSE & Intel Research SeaMle CSE 466 Winter 2009 Electric Field Sensing 1

Labs 3 and 4: Building a Sensor You ll build an electric field sensor with basic components and your AVR microcontroller Can sense your hand above the board without actually touching it Transmit and receive signals are generated and demodulated in so.ware Will send the sensor readings to a PC for further processing and moving around in a color space CSE 466 Winter 2009 Electric Field Sensing 2

E Field Sensing in Nature Black Ghost Knifefish (Apteronotus albifrons) Generates an electric field around 1 khz Uses E field to detect prey, avoid objects, and communicate CSE 466 Winter 2009 Electric Field Sensing 3

Electric Field Sensors: Applicacons CSE 466 Winter 2008 added 4 channel E field sensor (the AirScck ) to the imote 2 to allow control of a soccer player in a mulcplayer game CSE 466 Winter 2009 Electric Field Sensing 4

Electric Field Sensors: Applicacons Personal Roboccs at Intel Research SeaMle E Field adds sense of Pretouch to a robot hand and arm, allowing it to detect that it is close to objects without touching them CSE 466 Winter 2009 Electric Field Sensing 5

Theory of Operacon Create an AC electric field with constant amplitude with transmit electrode Measure current induced in receive electrode Nearby grounded objects shunt some current to ground, reducing the received current. Object in range of sensor Receive Transmit CSE 466 Winter 2009 Electric Field Sensing 6

Parts of the Sensor Receive Antenna Transmit Antenna Transmit Resonator Analog Front End Sampling (ADC) Waveform Generacon (Timer 0 Output Compare) Demodulacon (So.ware) CSE 466 Winter 2009 Electric Field Sensing 7

Transmikng an Electric Field Use cmer hardware on AVR to generate a square wave; frequency can be tuned with prescaler value and output compare value Resonator circuit boosts 5V square wave to a sine wave with an amplitude of around 100V Transmit in the tens of khz range; higher frequencies work bemer but give less cme to process interrupts CSE 466 Winter 2009 Electric Field Sensing 8

Resonant Circuits Driving a resonant circuit with small amounts of energy at the right cmes (at the resonant frequency) will cause high amplitude oscillacons The LC resonator on the sensor board allows the AVR to create a large electric field from a supply of only 5V The resonant frequency of an LC circuit is f = 2π 1 LC CSE 466 Winter 2009 Electric Field Sensing 9

Amplifying the Received Signal Transimpedance amplifier converts current flowing into received electrode into voltage Voltage gain stage amplifies the signal to levels that work well with the ADC in the AVR CSE 466 Winter 2009 Electric Field Sensing 10

Operaconal Amplifiers Very useful, versacle, and ubiquitous analog circuit devices amplify voltages can turn high impedance signals into low impedance signals (weak signals into robust signals) perform mathemaccal operacons on signals in the analog domain (used to be how most signal processing was done) Signal processing has moved into the digital domain, but op amps are scll useful, parccularly when it comes to interfacing sensors with microcontrollers CSE 466 Winter 2009 Electric Field Sensing 11

Operaconal Amplifiers Two input terminals: invercng ( ) and non invercng (+) almost no current flows into the inputs (they are high impedance) Voltage at output terminal is the difference between the two inputs mulcplied by some gain Output changes to try to keep the voltages at both inputs equal to each other Output is low impedance: we can draw some current from it without affeccng its voltage significantly CSE 466 Winter 2009 Electric Field Sensing 12

The Analog Front End Now that we know about op amps, we ll look at the two stages of the analog front end. AGND is at 2.5V; this will add a DC offset to the output voltage, bringing zero into the middle of our usable range for the ADC CSE 466 Winter 2009 Electric Field Sensing 13

The Transimpedance Amplifier Converts current entering the receive electrode into a voltage signal When no current is flowing in from the le., there is no voltage drop across the resistor, and the output voltage will be the same as the two input terminals. 0 µa 2.5 V + 0 V 2.5 V CSE 466 Winter 2009 Electric Field Sensing 14

The Transimpedance Amplifier Converts current entering the receive electrode into a voltage signal Current entering from the le. can t go into the invercng input, so it goes through R3 and creates a voltage drop In order to keep the voltage at the invercng input equal to the noninvercng input, the output voltage must be decreased 1 µa 2.5 V + 1 V 1.5 V CSE 466 Winter 2009 Electric Field Sensing 15

The Voltage Amplifier Amplifies (and inverts) the input voltage. Basic invercng op amp configuracon Output voltage for the circuit at the right is v out = v in R5 R4 CSE 466 Winter 2009 Electric Field Sensing 16

Where are we now? We ve created an electric field and it s induced a current in our receive electrode. We ve amplified the received signal and brought it into a usable range for our AVR s ADC to sample. Now, we need to make sense of the signal CSE 466 Winter 2009 Electric Field Sensing 17

Demodulacon We ll be receiving our signal, but there will also be a lot of noise. Need to recover the amplitude of our signal, but ignore the noise. CSE 466 Winter 2009 Electric Field Sensing 18

Demodulacon: Basic Idea + +... Instead of one sample, we ll accumulate mulcple samples in an intelligent manner. Sample at mulcple points on the received waveform If we add samples when we re transmikng a posicve signal and subtract signals when we re transmikng negacve signal, we cancel out a lot of unwanted noise (and the DC offset) Accumulate about 20 to 255 samples for a measurement Result of accumulacon represents amplitude CSE 466 Winter 2009 Electric Field Sensing 19

What about phase shi.s? If the samples aren t perfectly in phase with the received waveform, we re missing out on signal to noise Gekng perfectly lined up is difficult at high transmit frequencies, even one instruccon cycle shi.s the sample by quite a bit Solucon: also sample at 90 and 270 in addicon to 0 and 180, in a separate accumulator The accumulator for 0 and 180 is the in phase component, and the 90 and 270 accumulator is the quadrature component We can now recover the magnitude of the received signal regardless of its phase: magnitude = inphase 2 + quad 2 CSE 466 Winter 2009 Electric Field Sensing 20

Timing Issues The ADC isn t fast enough to make all these samples on every period of the received waveform. Lining up the samples with the right parts of the waveform is a challenge. but... The ADC takes some cme to perform conversions, but the actual sample and hold window is short and can be precisely placed. We can make the ADC s samples synchronous with the transmimed waveform by using free running mode and sekng up the prescalers so that the ADC samples every n + ¼ periods of the transmimed waveform. CSE 466 Winter 2009 Electric Field Sensing 21

Timing The result is that we re only sampling every few periods of the waveform, but we stay lined up because we re using the same clock for the transmimed signal and the ADC. Since we set up the ADC to sample every n + ¼ periods of the transmimed waveform, each sample will be offset by 90. Each set of four samples gives us the posicve and negacve values to add to each of our two accumulators. CSE 466 Winter 2009 Electric Field Sensing 22

Implementacon in Labs 3 and 4 For labs 3 and 4, you will: calculate prescaler and output compare values to enable synchronous undersampling and demodulacon calculate the capacitor value needed to make the transmimer resonant at your transmit frequency build the e field sensor hardware use SPI and USB to send the values of the in phase and quadrature accumulators to a PC use the PC to compute the magnitude of the received waveform from its components use the value from the sensor as a virtual knob to move around in a color space display a color wheel indicacng the current color on the PC screen, and send it back to your AVR to be displayed on your tri color LED CSE 466 Winter 2009 Electric Field Sensing 23