Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass

Similar documents
Application Note Using MagAlpha Devices to Replace Optical Encoders

Activity 4: Due before the lab during the week of Feb

3.3V regulator. JA H-bridge. Doc: page 1 of 7

I 2 C RedBot & DC Motor Servo Motor Control

Interfacing Sensors & Modules to Microcontrollers

EL6483: Sensors and Actuators

CS545 Contents XIV. Components of a Robotic System. Signal Processing. Reading Assignment for Next Class

Introduction to the Arduino Kit

ZKit-51-RD2, 8051 Development Kit

DC motor control using arduino

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

FIRST Robotics Control System

DS1803 Addressable Dual Digital Potentiometer

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

2F. No.25, Industry E. 9 th Rd., Science-Based Industrial Park, Hsinchu, Taiwan Application Note of OGM220, AN001 V1.8

A Wireless Mesh IoT sensor system FEATURES DESCRIPTION. Vicotee Njord series Nodes

Project Name Here CSEE 4840 Project Design Document. Thomas Chau Ben Sack Peter Tsonev

Servo click. PID: MIKROE 3133 Weight: 32 g

Brushed DC Motor Control. Module with CAN (MDL-BDC24)

Hardware Platforms and Sensors

The Datasheet and Interfacing EE3376

In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics:

Sensors Fundamentals. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

802.11g Wireless Sensor Network Modules

DASL 120 Introduction to Microcontrollers

The PmodIA is an impedance analyzer built around the Analog Devices AD bit Impedance Converter Network Analyzer.

X3M. Multi-Axis Absolute MEMS Inclinometer Page 1 of 13. Description. Software. Mechanical Drawing. Features

Figure 1: Functional Block Diagram

ZKit-ARM-1769, ARM Dev. Kit

Welcome to Electrical Design and Wiring for Indiana F.I.R.S.T Teams

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module

EE 314 Spring 2003 Microprocessor Systems

Ocean Controls KT-5221 Modbus IO Module

AMS0805WAH. CATALOG No.: AMS0805WAH. Motion Sensor Data Sheet Ver Advanced Material on Technology

Programming PIC Microchips

Training Schedule. Robotic System Design using Arduino Platform

DNT24MCA DNT24MPA. Low Cost 2.4 GHz FHSS Transceiver Modules with I/O. DNT24MCA/MPA Absolute Maximum Ratings. DNT24MCA/MPA Electrical Characteristics

DNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O

Trademarks & Copyright

Tarocco Closed Loop Motor Controller

Simple Servo USER Instructions

DS1807 Addressable Dual Audio Taper Potentiometer

SGD 43-A 4.3 PanelPilotACE Compatible Display

Brushless 5 click. PID: MIKROE 3032 Weight: 25 g

ECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

RS-232 Electrical Specifications and a Typical Connection

Systems & Devices Part 1

INF8574 GENERAL DESCRIPTION

Sensors and Sensing Motors, Encoders and Motor Control

Characteristic Sym Notes Minimum Typical Maximum Units Operating Frequency Range MHz. RF Chip Rate 11 Mcps RF Data Rates 1, 2, 5.

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett

Specifications.

Master Op-Doc/Test Plan

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

PRESENTED BY HUMANOID IIT KANPUR

Wire S/C Term Pot Speed Control RED VREF VH 5V Pot Hookup YEL DC IN VW BLU GND VL GND

Job Sheet 2 Servo Control

Integrated Servo Motor UCS57

nrf24l01+ Transceiver Hookup Guide

DNT2400. Low Cost 2.4 GHz FHSS Transceiver Module with I/O

MDM5253 DC Motor Driver Module with Position and Current Feedback User Manual

Meshreen MS5168 ZigBee Module MS5168-Mxx series USER MANUAL FCC ID :2AC2E-68M04

Embedded Robotics. Software Development & Education Center

Figure 1: Functional Block Diagram

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

30-80V, 8.2A Peak, No Tuning, Nulls loss of Synchronization

Design of double loop-locked system for brush-less DC motor based on DSP

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Home Automation, Inc. Omnistat2. RC-1000 and RC-2000 Communicating Thermostat. Serial Protocol Description

Serial Servo Controller

ZKit-51-RD2, 8051 Development Kit

ESE 350 HEXAWall v 2.0 Michelle Adjangba Omari Maxwell

DNT900. Low Cost 900 MHz FHSS Transceiver Module with I/O

DNT90MC DNT90MP. Low Cost 900 MHz FHSS Transceiver Modules with I/O

Figure 1: One Possible Advanced Control System

MT6803 Magnetic Angle Sensor IC

LAX016 Series Logic Analyzer User Guide

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Interfacing to External Devices

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Datasheet of the Easy Servo Drive ES-D VAC or VDC, 8.2A Peak, Close-loop, No Tuning. Version

M7 Over-The-Air Protocol. Overview. Technical Brief AN187 Rev A1

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

ES86 Series Closed-loop Stepper Drive + Motor System (ES-D808 Drive+ Motor/Encoder)

Integrated Easy Servo

Series SPPM2 Graphical User Interface Panel Meter. Specifications - Installation and Operating Instructions MINI USB PORT

DMP Electronics Inc Robotic Division

ies-2309 Integrated Easy Servo

SGD 43-A 4.3 PanelPilotACE Compatible Display

TMS320F241 DSP Boards for Power-electronics Applications

SPI, Talking to Chips, and Minimizing Noise

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

Introduction to the EXPANSION HUB

IN1307N/D/IZ1307 CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM

Dual Protocol Transceivers Ease the Design of Industrial Interfaces

ZKit-51-V664, 8051 Development Kit

CL86T. 24~80VDC, 8.2A Peak, Closed-loop, No Tuning. Descriptions. Closed-loop. Stepper. Applications. Datasheet of the Closed-loop Stepper CL86T

Transcription:

Citrus Circuits Fall Workshop Series Roborio and Sensors Paul Ngo and Ellie Hass

Introduction to Sensors Sensor: a device that detects or measures a physical property and records, indicates, or otherwise responds to it Digital and physical responses

Why Use Sensors? Feedback for positioning robot parts Calibration encoders for position / speed limit switches Motion control drive chain encoders gyroscope accelerometer Detecting field elements in/out of robot mechanical limit switch proximity sensor line following vision

Implementation Mounting Protected sensor must see target must be secure, sensor must not move with respect to what it is mounted to must be able to easily remove / replace sensor wires to sensor should be a connector, not soldered Noise Motors magnetic field can interfere with delicate sensors High current wires can interfere with sensors, or signal from sensor to roborio. If a sensor seems inconsistent, try moving it. Faraday cages help with electric field noise, but not with magnetic field noise

Implementation Interface types boolean (DIO) easy to interpret / use Analog more information possible noise, not precise Digital serial Precise high resolution more complex to utilize

Choosing a Sensor Indicator lights power light sensor output light Boolean analog and serial may have some other light, or none at all Operating range distance of detection optical conditions maximum speed (encoders) electrical characteristics: 5v preferred, 12v if necessary (custom circuit) Accuracy / precision Dependent on application

Examples of Sensors Limit switch Boolean potential for mechanical failure can detect field elements cheap Hall effect boolean or analog detects magnetic fields replaces limit switch for many applications cheap - medium price http://www.wcproducts.net/wcp-0971

Examples of Sensors cont. Encoder boolean outputs, but more complex information rotational position / rate feedback loops medium - expensive http://www.usdigital.com/products/encoders/incremental/rotary/shaft/s4#description http://www.newark.com/webapp/wcs/stores/servlet/search?catalogid=15003&langid=-1&storeid=10194&categoryid=800000005726&st=opti cal%20encoder&pagesize=25&showresults=true Potentiometer Analog rotational position cheap

Examples of Sensors cont. Gyroscope Serial angular motion control medium Accelerometer Serial translational motion control included in RoboRIO Not accurate, don t use Proximity & beam break boolean / analog / serial detects distance to object optical, use with field elements cheap to medium https://www.sparkfun.com/products/242 http://www.keyence.com/products/sensor/photoelectric/pz-v_m/models/pz-m32p/index.jsp

The RoboRIO Pin spacing:.1 User manual: http://www.ni.com/pdf/manuals/374474a.pdf

CAN Controller Area Network Electronic Control Units (nodes), connected by a bus (network) Each node requires a: CPU (central processing unit)/microprocessor Decides what the received messages mean and what messages it wants to transmit. CAN controller - part of the microcontroller Will wait and store a message until it is fully delivered Will wait until the bus is free before sending a message Transceiver Receiving: Converts data from CANbus level (voltage) to levels that the CAN controller uses. Transmitting: Converts data from the CAN controller to (higher) CANbus levels. Web interface makes setting up different nodes easy http://wpilib.screenstepslive.com/s/4485/m/24166/l/216217-updating-andconfiguring-pneumatics-control-module-and-power-distribution-panel

CAN cont.

I2C I2C is a simple protocol to talk to sensors That said, using I2C with sensors may require some tricky programming One master, three slaves (3.3Vcc) Device addresses to communicate, 7 bits for an address and the 8th for r/w. Serial Clock Line (labeled SCL on the RoboRIO), Serial Data Line (labeled SDA) LCD/LED drivers EEPROMs (nonvolatile electrically erasable programmable read-only memory) capacitive sensors (can measure non-air conductivity) real-time clocks digital temperature ICs IR Range Finders

RS-232 (Serial) Three pins on the RoboRIO GND RxD (Data receiving) TxD (Data transmitting) Normally there are more pins, but RTS (request to send) and CTS (clear to send) is not necessary because the sensor will be constantly receiving and transmitting information. Not used in everyday computing: low transmission speed, large voltage swing (the signal swings between +12V for HIGH and -12V for low; within +-3V is unused to reduce noise)

DIO Three Pins Ground Voltage (5V) This gives the sensor power Signal (boolean) The sensor outputs a 1 (3.3V/5V) or a 0 (0V) for the RoboRIO to detect

PWM Pulse Width Modulation Cycles of full and ground voltage; the programmers can control the width of the pulse (high time) Usually mirrors a percentage in actuators (motor voltage%, servo motor degrees out of 360) Three pins Voltage (6V) - will work with many 5V devices Ground Signal (boolean) - 5V/0V The RoboRIO (and most computers) use PWM to approximate an analog out signal.

SPI - Serial Peripheral Interface (Bus) Another master-slave control example; however, in this case, once the master has initiated the selection of the slave (SS or CS-chip select) and the clock, the slave and master output 8 (or 12 or 16) bit words to each other in a loop. Only the slave that has been selected with CS(#) will respond with this loop. 5V and 3.3V sources SCLK: Set Clock, used for timing signals MOSI: Master Output, Slave Input MISO: Master Input Slave Output

Relay 5V controllable outputs on both FWD and REV pins. Ground pin on GND. Useful for certain devices: Spike H-Bridge Relay from VEX Robotics, for motor control (forward and reverse)

MXP (myrio Expansion Port) Multi-purpose extension for DIO,I2C, PWM and UART.RX (receiving) and UART.TX (transmitting) Has an analog input which is multiplexed and interpreted by the RoboRIO. Also has an analog output which involves a digital to analog converter. Ready made expansion board: http://www.revrobotics.com/rioduino/

RSL, Ethernet, USB device and host, and power USB device port USB host ports

Citrus Circuits Fall Workshop Series paulngo123@gmail.com Thank You!

How Encoders Work Optical Encoder Rotary Encoder voltage white black white black white time http://www.anaheimautomation.com/manuals/forms/encoder-guide.php

What a Gyroscope Measures Gyroscopes measure angular velocity, not angular position. It tells you how fast you are turning, not the direction you are facing. Luckily, in FIRST, measurements are picked up in 20ms increments, so: Angular position = (Old angular position) + angular velocity * 20 ms Note: it is still wise to measure the time between readings, in case that 20ms interval changes for some reason.