ADC Cobbler. User Manual

Similar documents
1-Wire Automation Software

UniPi technical documentation REV 1.1

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Arbitration and Switching Between Bus Masters

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Designing VM2 Application Boards

Using Altera MAX Series as Microcontroller I/O Expanders

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

Future Technology Devices International Ltd

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information

AN111: Using 8-Bit MCUs in 5 Volt Systems

FLYPORT Wi-Fi G

UPiS - Uninterruptible Power intelligent Supply

Web Site: Forums: forums.parallax.com Sales: Technical:

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

DS1621 Digital Thermometer and Thermostat

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

DS1621 Digital Thermometer and Thermostat

Atmel Norway XMEGA Introduction

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

SD21-21 Channel Servo Driver Module Power Servo's

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

PAC52XX Clock Control Firmware Design

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

USER GUIDE EDBG. Description

Vinco Development Module. Datasheet

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

Internal Oscillator. I 2 C Interface. SPI Interface. Controller. Internal Registers Port Controller. Eight I/O Pins. Figure 1.

CryptoAuth Xplained Pro

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Setting up IO Python Library on BeagleBone Black

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

AN3332 Application note

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

HP03 BAROMETER MODULE Version: 1.1

AN TDA8026ET - 5 slots smart card interface. Document information

Simplifying System Design Using the CS4350 PLL DAC

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AN LPC1700 RTC hardware auto calibration. Document information. RTC, Hardware Auto Calibration, LPC1700, Graphic LCD

USB I/O CONTROL BOX 8 relays, 8 digital I/O lines and 8 HV inputs

Bob Rathbone Computer Consultancy

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

XBee USB Adapter Board (#32400)

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

SyncLink GT2/GT4 Serial Adapter

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

DS Wire Digital Thermometer and Thermostat

DS1307ZN. 64 x 8 Serial Real-Time Clock

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Figure 1. 8-Bit USB Debug Adapter

Sam440ep-flex User Guide

TESLA K20 GPU ACCELERATOR

The Universal DAQ Device. Connect and measure immediately!

PCIe XMC x8 Lane Adapter

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

USER MANUAL V5.0 ST100

AND8326/D. PCB Design Guidelines for Dual Power Supply Voltage Translators

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Hardware Development Kit

AN10866 LPC1700 secondary USB bootloader

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Flexible Active Shutter Control Interface using the MC1323x

RN-XV-RD2 Evaluation Board

AN2680 Application note

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM Version 1.32r 10/9/2012 USER MANUAL

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

MAX5417L Evaluation Kit/Evaluation System

User Manual. AS-Interface Programmer

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

AVR315: Using the TWI Module as I2C Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Copyright 2012 by Fen Logic Ltd. All rights reserved.

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

nanoetxexpress Specification Revision 1.0 Figure 1 nanoetxexpress board nanoetxexpress Specification Rev 1.

AN-812 APPLICATION NOTE

Matrix and 7-Segment LED Backpack with the Raspberry Pi

Thermostat Application Module Kit

PCI-to-SATA RAID Adapter AEC-6890M. User s Manual Version:1.0

Command Processor for MPSSE and MCU Host Bus Emulation Modes

PiFace Control & Display

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE

ZL30136 GbE and Telecom Rate Network Interface Synchronizer

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Manual Serial PCI Cards

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

Transcription:

August 01

Table of Contents 1 Features Technical Specifications Installation Hardware Board Overview GPIO Breakout Pins (K, K) Level Converters (K, K) Analog-to-Digital Converter Software Python AbioCard GUI 6 6 6 Legal Information Disclaimer Trademarks Contact Information Revision History Date Authors 01-0- Peter S'heeren Description Initial release.

1 Features Breakout board for GPIO connector. On-board ADC chip with IC interface. Eight analog-to-digital channels, 0.0 V input range. Four bidirectional. V V level converters. Fits on a breadboard. For use with Raspberry Pi model A+, model B+, and Raspberry Pi. For use with Banana Pi M1+, M, M. For use with Orange Pi, Mini, Mini, Plus. Technical Specifications Dimensions 9 mm x 0 mm x 1 mm (W x D x H) Weight 1 g Installation 0x pin ribbon cable with female connectors

Hardware Board Overview 1 Mark Label Description 1 K1 x0 pin box header for connecting to Raspberry Pi GPIO header K Even-numbered GPIO pins K Odd-numbered GPIO pins K, Level converter. V pins LO[1..] K, Level converter V pins HI[1..] GPIO Breakout Pins (K, K) The pins of K and K are directly connected with the GPIO header on the host computer. Additionally, a number of pins are wired to the on-board ADC chip and voltage level converters. Level Converters (K, K) The board incorporates four bidirectional voltage level converters. Each converter converts between V on HI[1..] and. V on LO[1..].

Analog-to-Digital Converter The board incorporates a Maxim MAX1161EEE+ analog-to-digital converter chip that operates at. V. The chip converts voltages in the range of 0...0 V to 1-bit values. The eight analog inputs are shared with GPIO pins: ADC pin GPIO pin GPIO function PCB Labels AIN0 1 GPIO 1 AD0, #1 AIN1 16 GPIO AD1, # AIN 1 GPIO AD, # AIN GPIO AD, # AIN GPIO 1 AD, #1 AIN 6 GPIO 16 AD, #16 AIN6 GPIO 0 AD6, #0 AIN 0 GPIO 1 AD, #1 The chip is connected to SDA1 (pin ) and SCL1 (pin ) of the GPIO header. The IC slave address is 0110011b / h. The chip supports 00 khz Fast Mode and 1. MHz High-Speed Mode. The chip synchronizes analog-to-digital conversion with IC communication. Conversion and reading of the results happen during a single SLA+R transfer. When the chip has recognized its slave address, analog-to-digital conversion starts at the falling edge of the ninth clock. The chip holds low SCL for the duration of the conversion (this is known as IC clock stretching). After the conversion completes, the chip stores the results in memory and releases SCL. The IC master then reads the values.

Software Python # adccobbler_ex.py import RPi.GPIO as gpio import smbus # Hardware configuration IC_AD_ADC = 0x # Settings - change these if required IC_BUS = 1 GPIO_CH = # Disable GPIO warnings gpio.setwarnings(false) # Use BCM numbering for the GPIO pins gpio.setmode(gpio.bcm) # Use /dev/ic-<n> where <n> is the first parameter bus = smbus.smbus(ic_bus) # Initialize the MAX1161 chip bus.write_ic_block_data(ic_ad_adc,0xd,[0x0f]) # Initialize the GPIO pin gpio.setup(gpio_ch,gpio.in) try: while 1: # Read data. When the ADC recognizes its slave address it will trigger A/D # conversion, so we've to read all data bytes at once. # # The api of smbus has no function for just reading multiple bytes, so # let's write the configuration byte before reading. # adcres = bus.read_ic_block_data(ic_ad_adc,0x0f,16) # Read the GPIO pin input = gpio.input(gpio_ch) # Print results print adcres, input except KeyboardInterrupt: pass Run the program with root permissions: 6

$ sudo python adccobbler_ex.py The example Python program shows how to sample all eight analog inputs whilst reading one of the digital I/O lines. Press CTRL-C to exit the program. The program uses module RPi.GPIO for performing digital I/O, and module smbus for accessing the IC bus. These modules require root permissions. The ADC as a setup byte and a configuration byte. Together these bytes define the behavior of the ADC. The program writes both bytes as detailed next. Setup byte: Bit Name Value Description REG 1b 6.. SEL[..0] 101b CLK 0b Use internal clock. BIP/UNI 0b Unipolar. 1 RST 1b Don't reset configuration register to default. 0 X 0b Don't care. Select setup byte. Use internal reference. Configuration byte: Bit Name Value REG 0b 6.. SCAN[1..0] 00b..1 CS[..0] 0111b 0 SGL/DIF 1b Description Select configuration byte. Scan up from AIN0 to the input selected by CS CS0. Scan AIN0..AIN. Single-ended mode. The API of the smbus module is a bit simplistic in that it can't initiate a SLA+R transfer that reads a number of data bytes. Nevertheless, use of the smbus module is recommended as it is widely known and available. AbioCard GUI You can use the AbioCard GUI program for directly accessing the ADC chip on the board. The ADC chip on the board is compatible with the ADC on the AbioCard and has the same IC slave address. As such, the AbioCard GUI program sees the as an (incomplete) AbioCard and connects to it successfully.

6 Legal Information Disclaimer Axiris products are not designed, authorized or warranted to be suitable for use in space, nautical, space, military, medical, life-critical or safety-critical devices or equipment. Axiris products are not designed, authorized or warranted to be suitable for use in applications where failure or malfunction of an Axiris product can result in personal injury, death, property damage or environmental damage. Axiris accepts no liability for inclusion or use of Axiris products in such applications and such inclusion or use is at the customer's own risk. Should the customer use Axiris products for such application, the customer shall indemnify and hold Axiris harmless against all claims and damages. Trademarks Maxim Integrated is a trademark of Maxim Integrated Products, Inc. Raspberry Pi is a trademark of the Raspberry Pi Foundation. All product names, brands, and trademarks mentioned in this document are the property of their respective owners. Contact Information Official website: http://www.axiris.eu/