INA169 Breakout Board Hookup Guide

Similar documents
APDS-9960 RGB and Gesture Sensor Hookup Guide

ZX Distance and Gesture Sensor Hookup Guide

Community College of Allegheny County Unit 7 Page #1. Analog to Digital

9DoF Sensor Stick Hookup Guide

Lab 2: Blinkie Lab. Objectives. Materials. Theory

// Parts of a Multimeter

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

Sound Detector Hookup Guide

Lesson 3: Arduino. Goals

Breadboard Arduino Compatible Assembly Guide

Touch Potentiometer Hookup Guide

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Congratulations on your purchase of the SparkFun Arduino ProtoShield Kit!

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

You'll create a lamp that turns a light on and off when you touch a piece of conductive material

EARTH PEOPLE TECHNOLOGY. EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual

EM Arduino 4-20mA Shield Documentation. Version 1.5.0

Arduino An Introduction

Rotary Switch Potentiometer Hookup Guide

Adafruit 16-Channel Servo Driver with Arduino

The µbotino Microcontroller Board

.:Twisting:..:Potentiometers:.

Arduino Sensor Beginners Guide

EE 210: CIRCUITS AND DEVICES

Module: Arduino as Signal Generator

Arduino: Sensors for Fun and Non Profit

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

+Denotes lead(pb)-free and RoHS compliant.

INA3221 Breakout Board

Adafruit 16-Channel Servo Driver with Arduino

nrf24l01+ Transceiver Hookup Guide

AS726X NIR/VIS Spectral Sensor Hookup Guide

Lab 2.4 Arduinos, Resistors, and Circuits

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Pi Servo Hat Hookup Guide

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Programming 2 Servos. Learn to connect and write code to control two servos.

University of Jordan School of Engineering Electrical Engineering Department. EE 204 Electrical Engineering Lab

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

EXPERIMENT 3 Circuit Construction and Operational Amplifier Circuits

Photon Wearable Shield Hookup Guide

Adafruit 16-Channel Servo Driver with Arduino

In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC.

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi B+

Coding with Arduino to operate the prosthetic arm

Arduino Lesson 1. Blink. Created by Simon Monk

Introduction to the Op-Amp

Adafruit 16-channel PWM/Servo Shield

Lab 4: Analysis of the Stereo Amplifier

Ardweeny 1.60" 0.54" Simple construction - only 7 parts plus pins & PCB! Ideal for breadboard applications

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

Practical 2P12 Semiconductor Devices

SEN Description. Features. MG-811 Specifications

Grove - Gas Sensor(MQ9)

TWEAK THE ARDUINO LOGO

MAX44265 Evaluation Kit Evaluates: MAX44265

ENGN/PHYS 207 Fall 2018 Assignment #5 Final Report Due Date: 5pm Wed Oct 31, 2018

EGR Laboratory 9 - Operational Amplifiers (Op Amps) Team Names

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

Adafruit 16-channel PWM/Servo Shield

FABO ACADEMY X ELECTRONIC DESIGN

µpad: Proto Base Manual

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

HANDS-ON LAB INSTRUCTION SHEETS MODULE

HC-SR501 Passive Infrared (PIR) Motion Sensor

Getting started with the SparkFun Inventor's Kit for Google's Science Journal App

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Oct 10 & 17 EGR 220: Engineering Circuit Theory Due Oct 17 & 24 Lab 4: Op Amp Circuits

Lab 06: Ohm s Law and Servo Motor Control

MAX9633 Evaluation Kit Evaluates: MAX9633

Oscilloscope Current Probe Adapter Plus

EEC WINTER Instructor: Xiaoguang Leo" Liu. Application Note. Baseband Design. Duyen Tran ID#: Team DMK

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Breadboard Primer. Experience. Objective. No previous electronics experience is required.

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Sunday, November 4, The LadyUno Sound Unit

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

Assembly Manual for VFO Board 2 August 2018

The Motor sketch. One Direction ON-OFF DC Motor

Building a Microcontroller based potentiostat: A Inexpensive and. versatile platform for teaching electrochemistry and instrumentation.

Component List L2, L3 2 Q1, Q2 2 J1, J3, J4 3

Laboratory Project 1a: Power-Indicator LED's

Arduino Programming Part 3

INTRODUCTION to MICRO-CONTROLLERS

Internet of Things with Arduino and the CC3000

INTRODUCTION to MICRO-CONTROLLERS

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I

Adafruit 16-Channel PWM/Servo HAT & Bonnet for Raspberry Pi

Getting Started with the micro:bit

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

555 Morse Code Practice Oscillator Kit (draft 1.1)

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

MATERIALS TO GATHER. Electronic Parts

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

Unit 3: Introduction to Op- amps and Diodes

Name & SID 1 : Name & SID 2:

Transcription:

Page 1 of 10 INA169 Breakout Board Hookup Guide CONTRIBUTORS: SHAWNHYMEL Introduction Have a project where you want to measure the current draw? Need to carefully monitor low current through an LED? The INA169 is the chip for you! The INA169 is a high-side current monitor, which means that you place a resistor (a shunt resistor ) on the positive power rail and the INA169 measures the voltage drop across that resistor. The INA169 outputs a small current based on the measured voltage drop. If you place a resistor from the output of the INA169 to ground, you can measure the voltage at the output. With some basic math, the output voltage gives you the current through the shunt resistor. Covered In This Tutorial In this tutorial, we cover how the board should be used. The Board Overview section covers some theory and math on how the current sensing works, so feel free to skip to the Hookup Example if you just want to see the board in action. The Hookup Example shows how to connect the board to

Page 2 of 10 an Arduino in order to measure the current through an LED, and the Example Code provides a quick Arduino sketch for displaying the measured current to the Serial Monitor. Required Materials Arduino, RedBoard or any Arduino-compatible board. Male headers to solder to the board and make it breadboard compatible. Jumper wires to connect from breadboard to Arduino. Breadboard to tie everything together. Basic Red LED so we have something to light up. 330Ω Resistor to limit the current through the LED. Suggested Reading Voltage, Current, Resistance, and Ohm s Law Resistors LEDs How to Use a Breadboard What is an Arduino? How to Solder Working with Wire Board Overview Take a look at the schematic, and you will notice that the breakout board consists of a shunt resistor (R S), the INA169 chip, and an output resistor (R L). While RS and RL might appear to have 2 resistors, only one is populated on the board. If you would like to change the values of the resistors, you can replace them or put another resistor in parallel.

Page 3 of 10 INA169 Current Sensing Breakout Schematic As current passes from VIN+ through RS to V IN-, it creates a current drop across R S. The op-amp inside of the INA169 chip measures the difference between the VIN+ and VIN- voltages and outputs a voltage based on that difference. The output of the op-amp is amplified through the internal transistor, which sources a current out of the INA169 chip. As that current passes through R to ground, a voltage level is generated at V. IMPORTANT: The INA169 is configured to measure DC only. The VIN+ pin must be at a higher potential than the VIN- pin, which means that the INA169 cannot measure AC. Measuring Current The voltage at VOUT can be measured using an oscilloscope or an analogto-digital converter. A bit of math is needed to convert to the source current (I ): S L OUT I is the current we want to measure. S V OUT is the voltage we measured at the output of the INA169. 1kΩ is a constant resistance value we need to include due to the internals of the INA169. RS is the value of the shunt resistor. If you do not modify the board, then this is set at 10Ω. RL is the value of the output resistor. If you do not modify the board, then this is set at 10kΩ.

Page 4 of 10 Example For example, let s say that you hook up the board and you measure 2.8V at V. Plugging this into our equation, we would get: OUT This shows that you have 0.028A (or 28mA) flowing through your line. The Pinout There are only 5 pins on the breakout board. GND should be connected to ground of the circuit you are trying to measure VIN+ needs to be connected to the positive side of the source (e.g. battery, output pin, etc.) VIN- needs to be connected to the positive side of the load (e.g. VCC on Arduino, positive side of an LED, etc.) VOUT is the measured output and should be connected to something that measures voltage levels, such as a multimeter, oscilloscope, or an Arduino ADC pin VCC is the supply power to the INA169, which needs to be connected to 3.3V, 5V, etc. This can be anywhere from 0 to 75V. Note that the VOUT range depends on the voltage supplied by VCC. In addition to the pins on VIN+ and VIN-, the board also has two large pads around R S, which are capable of taking alligator clips should you want to have a temporary hookup. Note that GND and VCC will still need to be connected for the board to function. Modifying Functionality

Page 5 of 10 The INA169 cannot sense any differences across RS greater than 500mV, and the output error increases once the voltage across RS dips below 35mV. If you include the voltage drop across the internal transistor, this means that the default setup of the breakout board is limited to measuring a current range of about 3.5mA to 35mA. If you would like to change that range, RS and RL can be replaced with resistors of different values. RS can be removed and replaced with another resistor fairly easily. RL is a bit more difficult as it is a small, surface mount resistor. Changing either of the resistors changes the equation from above. With R at 10kΩ, changing R gives us the following ranges: L S R S 10Ω 1Ω Current Sense Range 3.5mA - 35mA 35mA - 350mA 0.1Ω 350mA - 3.5A IMPORTANT: Be careful with the power rating on the resistor! If you choose a 0.1Ω resistor for RS and expect to see 3.5A through it, this can result in 1.2W of heat being generated - way too much for your average ¼W resistor! You will need a resistor that can handle at least 2W. The following power resistors are recommended: Ohmite 1Ω 1% 3W Ohmite 0.1Ω 1% 3W Hookup Example Assembly You will need to solder either wires or straight male headers to the 5 header holes on the board. If you need to measure over 35mA, you will need to desolder the RS resistor and solder a lower value (e.g. 1Ω), higher power (e.g. 3W) resistor to the holes around RS.

Page 6 of 10 Headers are optional but recommended if you are using a breadboard. Connecting the INA169 Breakout Board Fritzing of the INA169 connected to an Arduino As shown in the diagram, connect the Arduino 5V to the INA169 VCC and the Arduino GND to the INA169 GND. To read the output voltage level, we need to run a jumper cable from the Arduino A0 to the INA169 VOUT pin. Use a jumper wire to connect the INA169 VCC and VIN+ pins, as we want to power the LED with the Arduino 5V. If you use a different power source (other than the Arduino 5V or 3.3V) through VIN+ and VIN-, make sure you connect the ground of the power source to the ground of the INA169 board. Just ensure that the voltage level as measured from VIN+ to ground does not exceed 60V. Bad things will happen to the board if you do. Connect a 330Ω resistor from the INA169 VIN- to the anode of the LED and a jumper wire from the LED s cathode to GND.

Page 7 of 10 Actual circuit example If you want to measure the current going to something else, you can use alligator clips on the bare metal pads around RS. Make sure that the INA169 board is inline with the positive power rail and that the INA169 GND is connected to the target s GND. Example Code Open the Arduino program and paste the following code into the sketch:

Page 8 of 10 /* 11 14 2013 SparkFun Electronics 2013 Shawn Hymel This code is public domain but you buy me a beer if you use t his and we meet someday (Beerware license). Description: This sketch shows how to use the SparkFun INA169 Breakout Board. As current passes through the shunt resistor (Rs), a voltage is generated at the Vout pin. Use an analog read and some math to determine the current. The current value is displayed through the Serial Monitor. Hardware connections: Uno Pin INA169 Board Function +5V VCC Power supply GND GND Ground A0 VOUT Analog voltage measurement VIN+ and VIN need to be connected inline with the positive DC power rail of a load (e.g. an Arduino, an LED, etc.). */ // Constants const int SENSOR_PIN = A0; // Input pin for measuring Vout const int RS = 10; // Shunt resistor value (in ohms) const int VOLTAGE_REF = 5; // Reference voltage for analog re ad // Global Variables float sensorvalue; ad float current; // Variable to store value from analog re // Calculated current value void setup() { // Initialize serial monitor Serial.begin(9600); }

Page 9 of 10 void loop() { // Read a value from the INA169 board sensorvalue = analogread(sensor_pin); // Remap the ADC value into a voltage number (5V reference) sensorvalue = (sensorvalue * VOLTAGE_REF) / 1023; // Follow the equation given by the INA169 datasheet to // determine the current flowing through RS. Assume RL = 10k // Is = (Vout x 1k) / (RS x RL) current = sensorvalue / (10 * RS); // Output value (in amps) to the serial monitor to 3 decimal // places Serial.print(current, 3); Serial.println(" A"); // Delay program for a few milliseconds delay(500); } Plug in the Arduino and upload the code. You should see the LED light up as soon as you apply power. The INA169 will measure the current through the LED. Select the appropriate board (Arduino Uno in this case) from Tools->Board and the correct COM port from Tools->Serial Port. Click the upload button, and wait for the program to be compiled and uploaded to the Arduino. Open the Serial Monitor from Tools->Serial Monitor and you should see current measurements being printed.

https://learn.sparkfun.com/tutorials/ina169-breakout-board-hookup-guide?_ga=1.105780741.725293211.142... Page 10 of 10 2/12/2015 If you are using a basic red LED, a 330Ω resistor, and a 5V supply, you should see 0.009A (9mA) on the Serial Monitor. If we want to verify this reading, we can use a multimeter to measure the voltage across the 330Ω resistor. You should see around 3V across the resistor. Using Ohm s Law, we can calculate the current flowing through the resistor and LED is 0.00909 A, which matches the reading from the INA169. Going Further The INA169 is a useful chip if you want to know how much current something is using. For example: On The Uncertain 7-Cube, you can connect the INA169 inline with the battery s positive power wire (that s the red wire!) and measure the current draw to figure out how long your battery will last. Similarly, connect the INA169 to the HUB-ee Buggy s power and determine how much time you get before you need to replace those AA batteries. Or use the INA169 to determine how much power is being consumed if the Humidor Control Box is left on all the time. Resources INA169 Datasheet Breakout Board Schematic Eagle and Project Files GitHub Repository