Grove 4Ch/16Bit ADC 0058-GRV4CADC-DSBT

Similar documents
UniPi technical documentation REV 1.1

DS1621 Digital Thermometer and Thermostat

DS Wire Digital Thermometer and Thermostat

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

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

DS1621 Digital Thermometer and Thermostat

ic-mq EVAL MQ1D EVALUATION BOARD DESCRIPTION

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Introduction. Getting familiar with chipkit Pi

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

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

XBee USB Adapter Board (#32400)

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

ABB Drives. User s Manual HTL Encoder Interface FEN-31

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

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

KTA-223 Arduino Compatible Relay Controller

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

HP03 BAROMETER MODULE Version: 1.1

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

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

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

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

FLYPORT Wi-Fi G

Lab Experiment 1: The LPC 2148 Education Board

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

Advanced Data Capture and Control Systems

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

SYSTEM 4C. C R H Electronics Design

DS1307ZN. 64 x 8 Serial Real-Time Clock

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

Pololu DRV8835 Dual Motor Driver Shield for Arduino

DK40 Datasheet & Hardware manual Version 2

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Introducing AVR Dragon

PN532 NFC RFID Module User Guide

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

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

Bluetooth UART/RS232 Module

SYSTEM 45. C R H Electronics Design

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

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

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

Wireless Security Camera

MILE Encoder for EC 90 flat

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

FM4100 USER MANUAL V1.4

TEECES DOME LIGHTING SYSTEMS

1. Introduction IIM7010A Features. WIZnet Inc.

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

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

RC2200DK Demonstration Kit User Manual

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

PROGRAMMABLE WIRELESS STAMP (PWS) USER MANUAL

Rayson. Bluetooth Module

Flight Controller. Mini Fun Fly

Real Time Clock USB Evaluation Board V3.0

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

Bob Rathbone Computer Consultancy

PCAN-MicroMod Evaluation Test and Development Environment for the PCAN-MicroMod. User Manual. Document version ( )

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

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

ATB50v1 GPRS / GPS Based Fleet Management Terminal. Datasheet

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

PolyBot Board. User's Guide V1.11 9/20/08

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

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

EZmoto V2. Product description Rev. 6 10/01/2014. EZmoto V2 Product description Rev.6 10/01/2014

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

MCP3426/7/8. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Features.

Bidirectional wireless communication using EmbedRF

HP4000EX Hardware Manual

TOSR0X-D. USB/Wireless Timer Relay Module. User Manual. Tinysine 2013 Version 1.0

CAN-Bus Shield Hookup Guide

Model 5511 Filler Controller User s Manual Version 1.1 October 2011

Fiber Optic Monitor and Control Evaluation Kit

An Introduction to MPLAB Integrated Development Environment

Using Xbee in Serial Communication

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

Memory Module Specifications KVR667D2D4F5/4G. 4GB 512M x 72-Bit PC CL5 ECC 240-Pin FBDIMM DESCRIPTION SPECIFICATIONS

Digital Single Axis Controller

Strato Pi Hardware Guide

Antenna Rotator System

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 2.6 Nov 2012 StrongLink

EasyPIC4 User s Manual

Software User Guide UG-461

Thermostat Application Module Kit

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

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

DECT Module UM-9802 Datasheet

ADS9850 Signal Generator Module

CMOS OV7660 Camera Module 1/5-Inch 0.3-Megapixel Module Datasheet

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

TSL2561 Luminosity Sensor

ADT7467. dbcool Remote Thermal Monitor and Fan Controller

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Transcription:

The Grove 4 Channel 16 bit Analog to Digital Converter has 4 Grove Analog ports and one I2C port and operates at 3.3V or 5V. It uses the industry standard ADS1115. Features and Benefits: The Missing Board for the Raspberry Pi 4 Channels with Grove Connectors Grove I2C connector provided Headers provided for non Grove usage Supports both 3.3V and 5V I2C Quantity Discounts Available Immediate Availability Introduction No question about it. The lack of an Analog to Digital Converter is a pain on the Raspberry Pi. We want to read those real world signals all the time and we didn't have a good way of doing it. And not one really workable ADC for the Grove either. So, we designed the board above. 4 channels of 16 bit Analog to Digital nirvana. The Grove 4 Ch 16bit ADC connects to a Grove I2C connector and supplies 4 channels of Grove Analog plugs for your projects. Version 1.1 - Page 1 of 14

What are Grove Connectors? A Grove connector is a four pin standardized size connector used to plug into the Pi2Grover base unit and Grove devices and modules. These standardized connectors (common to all types of Grove Connectors) are the key to making this system work. They are keyed to prevent plugging them in backwards, and the four types of connectors (see below) are all designed so that if you plug the wrong type of device into the wrong type of base unit, there is no problem. They just won t work. This is a good thing. Less smoke, more prototyping! The Four Types of Grove Connectors Below are some of the specifics of each of the four types of connectors. First of all, physically all of them are the same. Exactly. The differences are in the signal types that are provided. Now, note. You will never short out power and ground by mis-plugging one type of Grove connector in the other. However, it is possible to plug a 3.3V Grove Module into a 5.0V Grove connector and damage the device. The same could happen with an output coming back from a Grove button or switch for example into another output. While you do need to be careful and think about what you are doing, it is a lot less risky than soldering or using just jumpers to wire up devices to your Pi or Arduino. Generically, all of the Grove connectors are wired the same: Signal 1, Signal 2, Power, Ground. Grove Digital (Note: The Grove 4Ch 16bit ADC has no Grove Digital Ports) A digital Grove connector consists of the standard four lines coming into the Grove plug. The two signal lines are generically called D0 and D1. Most modules only use D0, but some do (like the LED Bar Grove display) use both. Often base units will have the first connector called D0 and the second called D1 and they will be wired D0/D1 and then D1/D2, etc. Version 1.1 - Page 2 of 14

Grove Digital Pin 1 D0 Primary Digital Input/Output Pin 2 D1 Secondary Digital Input/Output Pin 3 VCC Power for Grove Module (5V or 3.3V) Pin 4 GND Ground Examples of Grove Digital modules are: Switch Modules, the Fan Module, and the LED Module. Grove Analog An Grove Analog connector consists of the standard four lines coming into the Grove plug. The two signal lines are generically called A0 and D0. Most modules only use A0. Often base units will have the first connector called A0 and the second called A1 and they will be wired A0/A1 and then A1/A2, etc. Grove Analog Pin 1 A0 Primary Analog Input Pin 2 A1 Secondary Analog Input Pin 3 VCC Power for Grove Module (5V or 3.3V) Pin 4 GND Ground Examples of Grove Analog modules are: Potentiometer, Voltage Divider and the Grove Air Quality Sensor. Grove UART ((Note: The Grove 4Ch 16bit ADC has no Grove UART Ports)) The Grove UART module is a specialized version of a Grove Digital Module. It uses both Pin 1 and Pin 2 for the serial input and transmit. The Grove UART plug is labeled from the base unit point of view. In other words, Pin 1 is the RX line (which the base unit uses to receive data, so it is an input) where Pin 2 is the TX line (which the base unit uses to transmit data to the Grove module). Version 1.1 - Page 3 of 14

Grove UART Pin 1 RX Serial Receive (from base point of view) Pin 2 TX Serial Transmit (from base point of view) Pin 3 VCC Power for Grove Module (5V or 3.3V) Pin 4 GND Ground Examples of Grove UART modules are: XBee Wireless Sockets, 125KHz RFID Reader Grove I2C The Grove I2C connector has the standard layout. Pin 1 is the SCL signal and Pin 2 is the SDA signal. Power and Ground are the same as the other connectors. This is another special version of the Grove Digital Connector. In fact, often the I2C bus on a controller (like the ESP8266, Raspberry Pi and the Arduino) just uses Digital I/O pins to implement the I2C bus. The pins on the Raspberry Pi and Arduino are special with hardware support for the I2C bus. The ESP8266 is purely software. Grove I2C Pin 1 SCL I2C Clock Pin 2 SDA I2C Data Pin 3 VCC Power for Grove Module (5V or 3.3V) Pin 4 GND Ground Version 1.1 - Page 4 of 14

Theory of Operation The ADS1115 is a very small, low-power, 16-bit, delta-sigma (ΔΣ) analog-to-digital converter (ADC). The ADS111/5 are extremely easy to configure and design into a wide variety of applications, and allow precise measurements to be obtained with very little effort. Both experienced and novice users of data converters find designing with the ADS1115 to be intuitive and problem-free. The ADS111/5 consists of a ΔΣ analog-to-digital (A/D) core with adjustable gain, an internal voltage reference, a clock oscillator, and an I 2 C interface. An additional feature available on the ADS1115 is a programmable digital comparator that provides an alert on a dedicated pin. All of these features are intended to reduce required external circuitry and improve performance. The ADS1115 functional block diagram is shown above. The ADS1115 A/D core measures a differential signal, V IN, that is the difference of AIN P and AIN N. A MUX is available on the ADS1115. This architecture results in a very strong attenuation in any common-mode signals. The converter core consists of a differential, switched-capacitor ΔΣ modulator followed by a digital filter. Input signals are compared to the internal voltage reference. The digital filter receives a high-speed bitstream from the modulator and outputs a code proportional to the input voltage. Version 1.1 - Page 5 of 14

The ADS1115 has two available conversion modes: single-shot mode and continuous conversion mode. In single-shot mode, the ADC performs one conversion of the input signal upon request and stores the value to an internal result register. The device then enters a low-power shutdown mode. This mode is intended to provide significant power savings in systems that only require periodic conversions or when there are long idle periods between conversions. In continuous conversion mode, the ADC automatically begins a conversion of the input signal as soon as the previous conversion is completed. The rate of continuous conversion is equal to the programmed data rate. Data can be read at any time and always reflect the most recent completed conversion. Version 1.1 - Page 6 of 14

Pinout Physical dimensions of board: 43mm x 37 mm x 10mm(max). Two mounting holes are provided. Key: A - Analog Pin I - Digital Input O - Digital Output I/O - Bi-directional Input/Output Version 1.1 - Page 7 of 14

JP1 - Pin Header The ADS1115 is a precision analog-to-digital converter (ADC) with 16 bits of resolution. The ADS1115 is designed with precision, power, and ease of implementation in mind. Data are transferred via an I2C-compatible serial interface; four I2C slave addresses can be selected. See JP2 - ADDR Pin. NAME PIN I/O DESCRIPTION A3 JP1 / 1 A Differential channel 2: Negative Input or single-ended channel 4 input A2 JP1 / 2 A Differential channel 2: Positive Input or single-ended channel 3 input. A1 JP1 / 3 A Differential channel 1: Negative Input or single-ended channel 2 input. A0 JP1 / 4 A GND JP1 / 5 A GND 3V3 JP1 / 6 A VDD - 3.3V or 5V Differential channel 1: Positive Input or single-ended channel 1 input SDA JP1 / 7 I/O Serial bus data line; open-drain input/output. 10K Pullup on line to VDD SCL JP1 / 8 I Serial bus clock line; open-drain input. 10K Pullup on line to VDD JP2 - ADDR The ADDR pin can be connected to various pins to change the I2C address of the Grove 4 Ch 16 Bit ADC Board. The ADS1115 chips have a base 7-bit I2C address of 0x48 and an addressing scheme that allows four different addresses using just one address pin. To program the address, connect the address pin as follows: 0x48 (1001000) ADDR -> GND 0x49 (1001001) ADDR -> VDD 0x4A (1001010) ADDR -> SDA 0x4B (1001011) ADDR -> SCL The ADDR pin comes with a 10K pullup to GND on board. This means the default address is 0x48. NAME PIN I/O DESCRIPTION ADDR JP2 / 1 I I2C slave address select. Connected internally by a 10K Ohm Pulldown to GND. Version 1.1 - Page 8 of 14

JP3 - ALERT The ADS1115 is equipped with a customizable comparator that can issue an alert on the ALERT/RDY pin. This feature can significantly reduce external circuitry for many applications. The comparator can be implemented as either a traditional comparator or a window comparator via the COMP_MODE bit in the Config register. The ALERT/RDY pin can also be configured as a conversion ready pin. See the ADS1115 specification ( http://www.switchdoc.com/wp-content/uploads/2016/05/ads1115.pdf ) for details. NAME PIN I/O DESCRIPTION ALERT JP3 / 1 O Digital comparator output or conversion ready Version 1.1 - Page 9 of 14

How To Use the Board Warning: Always turn off the power before you remove or replace any Grove devices or wires on board. You may damage your devices or your computer! Basically, there are two steps to using this board. 1) Download the software drivers for the Grove4Ch16BitADC 2) Install a Grove Connector from your computer I2C port to the Grove4Ch16BitADC I2C Port 3) Connect up the Grove device producing an analog voltage (Grove Analog) to your chosen A0-A4 port on the Grove4Ch16BitADC device Or you can use the provided JP1 Header to hook up this device to your I2C bus or the voltages to be measured. Remember a common ground! All of the channels can perform conversions at rates up to 860 samples per second (SPS) and can measure signals from 0 - VDD. Note: If you want to measure voltages higher than VDD (3.3V or 5V), you must use a voltage divider to reduce the voltage below VDD. See the Arduino and Raspberry Pi Drivers for software examples. Operating Values Min Normal Max Unit VDD 2.0V 5.5 V Analog Input Voltage to GND SDA, SCL, ADDR, ALERT/RDY voltage to GND GND VDD V GND 5.0 V Version 1.1 - Page 10 of 14

LEDs on There are two LEDs on Board. LED1 (Power) - On if Raspberry Pi is supplying 5V to the r Board LED2 (I2C Activity) - Flashes when there is activity on the I2C bus. Version 1.1 - Page 11 of 14

Software Drivers for Arduino and Raspberry Pi Raspberry Pi Pure Python Software is at: https://github.com/switchdoclabs/sdl_pi_grove4ch16bitadc Arduino Software is at: https://github.com/switchdoclabs/sdl_arduino_grove4ch16bitadc Raspberry Pi Test Output pi@rpi3:~/sdl_pi_grove4ch16bitadc $ sudo python TestGrove4Ch16BitADC.py -------------------- Channel 0 =0.323875V raw=0x A1D Channel 1 =0.642375V raw=0x1020 Channel 2 =1.617125V raw=0x3288 Channel 3 =0.566750V raw=0x116d -------------------- -------------------- Channel 0 =0.323750V raw=0x A1D Channel 1 =0.553125V raw=0x147f Channel 2 =1.612750V raw=0x3260 Channel 3 =0.584625V raw=0x1240 -------------------- -------------------- Channel 0 =0.323625V raw=0x A1E Channel 1 =0.630875V raw=0x1005 Channel 2 =1.610125V raw=0x3277 Channel 3 =0.557750V raw=0x121c -------------------- Arduino Test Output Grove4Ch16BitADC Test Channel 0 Voltage =0.23V ad0=0x4c7 Channel 1 Voltage =0.58V ad0=0xc0a Channel 2 Voltage =0.48V ad2=0xa04 Channel 3 Voltage =0.58V ad3=0xbfb Version 1.1 - Page 12 of 14

Channel 0 Voltage =0.23V ad0=0x4c7 Channel 1 Voltage =0.58V ad0=0xc1f Channel 2 Voltage =0.48V ad2=0xa04 Channel 3 Voltage =0.58V ad3=0xc11 Example Project Here is a simple IOT project on the Raspberry Pi using the Pi2Grover board, Grove Analog to Digital board and an Grove Analog Air Quality Sensor. Air Quality Sensor Project Version 1.1 - Page 13 of 14

We built this in a matter of minutes. Plugged the Pi2Grover into the Raspberry Pi, the Grove Analog to Digital to a Grove I2C connector and the Grove Air Quality Sensor into the Grove Analog A0 input on the Grove Analog to Digital board. Done. We installed the software and here are the results. For your information, we caused the air pollution alert with a can of hairspray. Hairspray Air Pollution Detected! Version 1.1 - Page 14 of 14