design of the new handy board for robotics using the ni labview embedded module for adi blackfin...

28
Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science Eric Morrison, Undergrad, Electrical Engineering University of Massachusetts Lowell

Upload: joanna-little

Post on 05-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for

ADI Blackfin Processor

Fred Martin, Assistant Professor, Computer ScienceEric Morrison, Undergrad, Electrical Engineering

University of Massachusetts Lowell

Page 2: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Overview

• Brief history of educational robot control boards• The Blackfin Handy Board hardware• BF-HB LabVIEW VIs• LabVIEW starter projects for an undergrad mobile robotics course

• The future

Page 3: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

The Original Handy Board

• Developed for MIT LEGO Robot Design Competition (1991)

• Goal: Give students everything they need to start building robots

– 2 MHz Motorola 68HC11– 32,768 bytes of RAM– 4 motor outs– 7 analog, 9 digital sensor inputs– Built-in battery pack; LCD screen– Interactive C language

• Open-source design; over 10,000 in use

Page 4: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

More Influential Robot Control Boards(A biased history – dates approximate)

• Mini Board (1988) • Handy Board (1991)• Parallax Basic Stamp (1990s)• MIT Crickets (1990s)• LEGO Mindstorms RCX (1998)

Note #1 – Whole concept of single-board computer for robots was once new!Note #2 – All make entire robot system design easy— including sensors, actuators, and programming

Page 5: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Design Goals for the Blackfin Handy Board

• Expose power of ADI Blackfin processor – a 16-bit DSP + 32-bit RISC core

• Build a cool set of robot-friendly I/O onto a single board• Keep what made the original HB successful:

– All-in-one solution– Good in the classroom– Low threshold, high ceiling

Page 6: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

The Blackfin Handy Board

Page 7: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Blackfin Handy Board Feature Set

• 600 MHz ADI BF ’537, 64 MB SDRAM, 256 MB NAND flash, 1 MB boot flash

• Xilinx Spartan 3E FPGA, end-user-programmable, with “board support package”

• 4 DC motor outs (12v, 1A) and 8 servo motor outs

• LCD screen, buttons, knob, speaker, DAC

• 12-bit ADCs with 12 external analog ins, integral 2-axis accel, 8 digital ins

• 8 digital outs; i2c interface• Blackfin PPI port for

Omnivision CMOS cam• Integral 12v, 2 AH batt pack,

batt charger, 5v, 5A p/s• ADI “Debug Agent”; 10/100

Ethernet; RS-232 serial

Page 8: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

LabVIEW Toolkit for the Blackfin Handy Board

• Expose all of the BF-HB’s cool features to LabVIEW users

• Leverage the NI LabVIEW Embedded Module for ADI Blackfin Processors

Page 9: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

DC Motor Outputs

• Choose Sign/Magnitude PWM or Locked Antiphase modes with motor enable VI

• Set motor power and direction

• Disable motor output

Page 10: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Back EMF Motor Sensing

• Reports motor velocity from any DC motor

Page 11: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Servo Motor Control

• Individually enable and disable servo motor outputs

• Establish servo motor setpoint

• Report previously-established setpoint

Page 12: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Analog Inputs

• Read external input• Read accelerometer channel• Read knob• Read battery level

Page 13: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Sonar Decoding

• Use low-cost ultrasonic sensors for distance sensing

• Up to 8 sonars; each requires one digital in and one digital out

Page 14: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Shaft Encoder Tracking on Digital Inputs

• FPGA-based quadrature shaft decoding

• Report position and velocity

Page 15: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Digital Outputs

• Set, clear, or toggle output bits

• Report value of output bit

Page 16: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

LCD Screen

• Display messages on BF-HB’s built-in LCD screen

Page 17: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

User LEDs

• Control any/all of the 4 user LEDs

Page 18: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

User Buttons

• Report press and release for user “Start” and “Stop” buttons

• There’s also a user knob in the analog palette

Page 19: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Sample Projects for Mobile Robots Course

• Light avoidance & attraction (Braitenberg-style)• Obstacle avoidance• Line-following• Sonar space-seeking• Subsumption

Page 20: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Braitenberg Vehicles

Page 21: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Light Seeking

Page 22: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Light Avoiding

Page 23: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Obstacle Avoidance

Page 24: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Line Following

Page 25: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Sonar Open-Space Seeking

Page 26: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Subsumption Architecture

• Control architecture for mobile robots developed by Rodney Brooks in the mid-1980s

• Layered approach where advanced competencies build upon or override primitive ones

• Our implementation includes object avoidance, dark avoidance, and random explore

From Dautenhahn/Coles, 2001

Page 27: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

Subsumption Architecture Front Panel

Page 28: Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science

The Future

• First LabVIEW Embedded mobile robotics course will be run in Fall 2006 semester; courseware online

• Blackfin Handy Board and LabVIEW Toolkit will be available to public also in fall 2006 – sign up for info at www.cs.uml.edu/blackfin

• Questions?