Serial Communication with Arduino

Similar documents
Application Note 83 Fundamentals of RS 232 Serial Communications

Using Xbee in Serial Communication

Serial Communications

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

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

Cable Specifications and Information

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

Bluetooth Serial Adapter

How to setup a serial Bluetooth adapter Master Guide

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

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

Bluetooth UART/RS232 Module

Monitoring solar PV output

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

Advanced Data Capture and Control Systems

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

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

UniPi technical documentation REV 1.1

Manual Serial PCI Cards

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

LINDY ELECTRONICS LIMITED & LINDY-ELEKTRONIK GMBH - SECOND EDITION

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

RS-232 COMMUNICATIONS

Bluetooth to Serial Adapter

Model 2120 Single Port RS-232 Terminal Server Frequently Asked Questions

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

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

Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information

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

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

PN532 NFC RFID Module User Guide

WinLIN Setup and Operation:

NMEA 0183 INSTALLATION AND OPERATING GUIDELINES

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

RJ11 RS-232 Interface

Serial to Bluetooth Adapter

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

MDM192 MULTI-DROPS DIGITAL MODEM FOR PRIVATE LINE. USER GUIDE Document reference :

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

CKM-EP2500, CKM-EP1501, and CKM-EP1502 Mercury Network Controllers

The components. E3: Digital electronics. Goals:

ACT-IR2000UL FIR USB PORT ADAPTOR For PC USB port to give user wireless data transfer for data

UMI (Universal Metering Interface)

Chapter 2 - The TCP/IP and OSI Networking Models

Overview of the Cisco 2500 Series Access Server

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

DECT Module UM-9802 Datasheet

Computer buses and interfaces

RN-XV-RD2 Evaluation Board

Wireless Communication With Arduino

Work with Arduino Hardware

Development of GSM and GPS based Cost Effective Telematics Module

RS485 Adapters. User Manual October 26, 2008 V1.02 Copyright Light O Rama, Inc. 2006, 2007, 2008 SC485 USB485B USB485 USB485-ISO

APx4 Wireless System-on-Module 5/8/2013 1

Networking 101 (Networking Basics) Presentation to UCHUG - 1/03/07 G. Skalka

USB to RS-422/485 Serial Adapter

Cable Specifications and Information

A-307. Mobile Data Terminal. Android OS Platform Datasheet

KTA-223 Arduino Compatible Relay Controller

OPT SERIAL TO FIBER OPTIC CONVERTER

Wireless Home Security System

Bluetooth HC-06 with serial port module Easy guide

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

FLYPORT Wi-Fi G

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

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

Technical Note A007 Modbus Gateway Vantage Pro2 25/09/2009 Rev. A 1 de 7

SB-2000 USB Radio Interface Operating Manual CG Antenna Co. Ltd.

Build SalesForce IoT applications with ARM mbed

LMU Hardware and Installation Guide

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

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

TO RJ45&WIFI CONVERT SERVER

Cable Pinouts. SRP I/O Module

CENTRONICS interface and Parallel Printer Port LPT

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

isco Connecting Routers Back to Back Through the AUX P

Remote Serial over IP Introduction on serial connections via IP/Ethernet

SG Miniature Wi-Fi Radio

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

XBee USB Adapter Board (#32400)

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

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Serial Cables & Adapters

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

Operating Manual Ver.1.1

Bluetooth Solutions for Apple ios Devices 2/14/2013 1

Cabling Guide for Console and AUX Ports

When we look at the connector pinout of the RS232 port, we see two pins which are certainly used

Bluetooth to serial HC-06 wireless module

BLE113 DEVELOPMENT KIT

ARM Cortex -A8 SBC with MIPI CSI Camera and Spartan -6 FPGA SBC1654

Android Controlled Based Interface

FOSTCDR. Industrial Serial to Multimode Fiber Optic Converter PRODUCT INFORMATION B&B ELECTRONICS. Specifications Serial Technology

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

Encore Controller to Router Connections

RC2200DK Demonstration Kit User Manual

Tech Info Document: PIC16F84A LCD Satellite Antenna Tracking Interface

Transcription:

Serial Communication with Arduino Serial Communication with the Arduino Serial, UART, TTL, FTDI, USB Bluetooth Wi-Fi Interfacing with One-Wire (Dallas Semiconductor Bus) Devices Interfacing with I2C (Two-Wire) Devices Discussion of Serial Communication Serial Ports and Comm Ports DB9, DB25, RS-232, UART, TTL, FTID, USB Serial Ports Older Technology Serial Connections DB-9 and DB-25

RS-232 Communication Protocol https://en.wikipedia.org/wiki/rs-232 In telecommunications, RS-232 is a standard for serial communication transmission of data. It formally defines the signals connecting between a DTE (data terminal equipment) such as a computer terminal, and a DCE (data circuit-terminating equipment, originally defined as data communication equipment), such as a modem. The RS-232 standard is commonly used in computer serial ports. The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size and pinout of connectors. The current version of the standard is TIA-232-F Interface Between Data Terminal Equipment and Data Circuit- Terminating Equipment Employing Serial Binary Data Interchange, issued in 1997. UART https://en.wikipedia.org/wiki/universal_asynchronous_receiver/transmitter A universal asynchronous receiver/transmitter is a computer hardware device that translates data between parallel and serial forms. UARTs are commonly used in conjunction with communication standards such as RS- 232. The universal designation indicates that the data format and transmission speeds are configurable. The electric signaling levels and methods (such as differential signaling etc.) are handled by a driver circuit external to the UART. A UART is usually an individual (or part of an) integrated circuit (IC) used for serial communications over a computer or peripheral device serial port. Many modern ICs now come with a UART that can also communicate synchronously; these devices are called USARTs (universal synchronous/asynchronous receiver/transmitter). TTL https://en.wikipedia.org/wiki/transistor%e2%80%93transistor_logic Transistor-Transistor-Logic (TTL) is a class of digital circuits built from bipolar junction transistors (BJT) and resistors. After their introduction in integrated circuit form in 1963, TTL integrated circuits were manufactured by several semiconductor companies, with the 7400 series (also called 74xx) by Texas Instruments becoming particularly popular. TTL manufacturers offered a wide range of logic gate, flip-flops, counters, and other circuits (Generally, +5 VDC, however, there are also CMOS devices with voltages up to + 18 VDC.) TTL devices were originally made in ceramic and plastic dual-in-line (DIP) packages, and flat-pack form. FTDI - Future Technology Devices International Converts RS-232 or TTL serial transmissions to USB signals. Note: Arduino UNO incorporates an FTDI that allows seamless communication between the board and USB. USB Universal Serial Bus is an industry standard developed in the mid-1990s that defines the cables, connectors and communications protocols used in a bus for connection, communication, and power supply between computers and electronic devices.

Bluetooth Short range wireless interconnection for cell phones computers, electronics devices originally conceived as a wireless replacement for RS-232 cables. Developed by Eriksson, a Swedish company and named after a Danish King, Harold Bluetooth. Classis Bluetooth - Always on, continuously streams data. Class Maximum Permitted Power Typical Range (mw) (dbm) (m) 1 100 20 100 2 2.5 4 10 3 1 0 1 https://en.wikipedia.org/wiki/bluetooth Bluetooth Low Energy (BLE) Extremely low energy (range 100 meters), intermittently streams data (2MB bps). Coin Size Battery CR-2032 estimates of 5-10 years from remote sensors (100 Kbps). Current version Bluetooth 4.2 Pairing Process Not all Bluetooth devices are designed to pair One or more profiles iphone has seven different profiles but lacks Serial Port Profile (SPP) SPP defines how to setup virtual serial ports and connect two Bluetooth enabled devices Passkey required to complete the pairing. Uses simple numbering system; examples: 0000, 1234, etc. Arduino compatible Bluetooth HC-05/06 Master / Client 4 wire - Power, GND, RX, TX https://www.arduino.cc/en/reference/ With the Arduino Shield, this library allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). Arduino communicates with the shield using the SPI bus. This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used to select the W5100, but it must be kept as an output or the SPI interface won't work. Wi-Fi https://www.arduino.cc/en/main/arduinowifishield101 Arduino Wi-Fi Shield 101 is a powerful IoT shield with crypto-authentication, developed with ATMEL, that wirelessly connects Arduino to the Internet using the IEEE 802.11 wireless specifications. It is based on the Atmel SmartConnect-WINC1500 module, compliant with the IEEE 802.11 b/g/n standard. The WINC1500 module provides a network controller capable of both TCP and UDP protocols. The Wi-Fi Shield 101 also features an hardware encryption/decryption security protocol provided by the ATECC508A CryptoAuthentication chip that is an ultra secure method to provide key agreement for encryption/decryption.

Arduino Serial Communication Shields Interfacing with One-Wire (Dallas Semiconductor Bus) Devices Interfacing with I2C (Two-Wire) Devices Interfacing with SPI Devices 1-Wire Bus https://en.wikipedia.org/wiki/1-wire Device communications bus system designed by Dallas Semiconductor that provides low-speed data, signaling, and power over a single signal. A 1-Wire is similar in concept too I²C, but with lower data rates and longer range. It is typically used to communicate with small inexpensive devices such as digital thermometers and weather instruments. I2C - Two Wire Pronounced "Eye-Two-Sea" or "I Squared C" https://en.wikipedia.org/wiki/i%c2%b2c SPI - Serial Peripheral Buss https://en.wikipedia.org/wiki/serial_peripheral_interface_bus Additional Resources http: //www.instructables.com/id/andruino-a-simple-2-way-bluetooth-based-android-c/ https://www.arduino.cc/en/tutorial/helloworld http: //playground.arduino.cc/code/lcd https://learn.adafruit.com/adafruit-arduino-lesson-11-lcd-displays-1/overview http: //www.instructables.com/id/connecting-an-lcd-to-the-arduino/ https://arduino-info.wikispaces.com/lcd-blue-i2c http: //www.geeetech.com/wiki/index.php/serial_i2c_1602_16%c3%972_character_lcd_module

10/29/2015 Serial Communication with Arduino Serial Communications Serial, UART, TTL, FTDI, USB Bluetooth Wi Fi Interfacing One Wire (Dallas Semiconductor Bus) Devices I2C (Two Wire) Devices SPI Devices Serial Ports Older Technology Serial Connections DB 9 and DB 25 DB 25 1

10/29/2015 RS 232 Communication Protocol In telecommunications, RS 232 is a standard for serial communication transmission of data. UART A universal asynchronous receiver/transmitter is a computer hardware device that translates data between parallel and serial forms. TTL Transistor Transistor Logic (TTL) is a class of digital circuits built from bipolar junction transistors (BJT) and resistors. Introduced in 1963, TTL integrated circuits were manufactured by several semiconductor companies, with the 7400 series (also called 74xx) by Texas Instruments becoming particularly popular. TTL manufacturers offered a wide range of logic gate, flip flops, counters, and other circuits (Generally, +5 VDC, also CMOS devices with voltages up to +18 VDC.) TTL devices were originally made in ceramic and plastic dual in line (DIP) packages, and flat pack form. FTDI Future Technology Devices International Converts RS 232 or TTL serial transmissions to USB signals. Note: Arduino UNO incorporates an FTDI that allows seamless communication between the board and USB. USB Universal Serial Bus is an industry standard developed in the mid 1990s that defines the cables, connectors and communications protocols used in a bus for connection, communication, and power supply between computers and electronic devices. Bluetooth Short range wireless interconnection for cell phones computers, electronics devices originally conceived as a wireless replacement for RS 232 cables. Developed by Eriksson, a Swedish company and named after a Danish King, Harold Bluetooth. Classis Bluetooth Always on, continuously streams data. Bluetooth Classic Maximum Permitted Power Class (mw) (dbm) Typical Range (Meters) 1 100 20 100 2 2.5 4 10 3 1 0 1 Bluetooth Pairing Process Pairing Process Not all Bluetooth devices are designed to pair One or more profiles Note: iphone has seven different profiles but lacks Serial Port Profile (SPP) SPP defines setup of virtual serial ports and connecting of two Bluetooth enabled devices Passkey required to complete the pairing. Uses simple numbering system; examples: 0000, 1234, etc. Arduino compatible Bluetooth HC 05/06 Master / Client 4 wire Power, GND, RX, TX Bluetooth Low Energy (BLE) Extremely low energy (range 100 meters), intermittently streams data (2MB bps). Coin Size Battery CR 2032 estimates of 5 10 years from remote sensors (100 Kbps). Current version Bluetooth 4.2 With the Arduino Shield, this library allows an Arduino board to connect to the Internet (via RJ 45 connector and cable). It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). 2

10/29/2015 Wi Fi Arduino Wi Fi Shield 101 is a powerful IoT shield with crypto authentication, developed with ATMEL, that wirelessly connects Arduino to the Internet using the IEEE 802.11 wireless specifications. It is based on the Atmel SmartConnect WINC1500 module, compliant with the IEEE 802.11 b/g/n standard. The WINC1500 module provides a network controller capable of both TCP and UDP protocols. The Wi Fi Shield 101 also features an hardware encryption/decryption security protocol provided by the ATECC508A CryptoAuthentication chip that is an ultra secure method to provide key agreement for encryption/decryption. Arduino Serial Communication Shields Interfacing with One Wire (Dallas Semiconductor Bus) Devices Interfacing with I2C (Two Wire) Devices Interfacing with SPI Devices One Wire I2C Two Wire SPI Serial Peripheral Buss Additional Resources http://www.instructables.com/id/andruino A Simple 2 Way Bluetooth based Android C/ https://www.arduino.cc/en/tutorial/helloworld http://playground.arduino.cc/code/lcd https://learn.adafruit.com/adafruit arduino lesson 11 lcd displays 1/overview http://www.instructables.com/id/connecting an LCD to the Arduino/ https://arduino info.wikispaces.com/lcd Blue I2C http://www.geeetech.com/wiki/index.php/serial_i2c_1602_16%c3%972_charact er_lcd_module 3