Command Module Owners manual



Download 354.47 Kb.
View original pdf
Page1/9
Date20.10.2018
Size354.47 Kb.
  1   2   3   4   5   6   7   8   9

iRobot
®
Command Module
Owners manual www.irobot.com



iRobot Command Module Owner’s Manual
Important Safety Instructions
General saFeTY InsTruCTIOns
• Read all safety and operating instructions before operating iRobot Command Module.
• Retain the safety and operating instructions for future reference. Follow all operating and use instructions. Refer all non-routine servicing to iRobot.
COmmanD mODule use resTrICTIOns
• The Command Module is for indoor use only.
• Do not sit or stand on this device. Keep the switch in the off position, otherwise the Create robot battery will drain when iRobot Command Module is on.
• Do not pour or spray water onto iRobot Command Module.
• Do not expose iRobot Command Module to anything hazardous, or anything that is burning or smoking.
• iRobot Create has built-in safety sensors to keep it from falling downstairs and bumping hard into walls. iRobot is not responsible for any product issues that may arise if you disable those sensors using the Command Module.
• Never handle the Command Module with wet hands.
• Only experienced users should attempt to design and build their own circuitry.
ePort saFeTY InsTruCTIOns
The maximum voltage available on the ePort is V, so the ePort pins will not shock you if they contact your skin.
However, the ePort can supply over 20 watts of electrical power. In the event of an electrical fault, this can generate enough heat to burn you or start afire in the event of an electrical fault. Only experienced users should attempt to design and build their own circuitry.Prebuilt ePort modules are available from a supplier listed in the Appendix A and are suitable for users who lack the experience to design their own circuitry.
• Always use care when wiring custom circuitry to an ePort.
• Never run your iRobot Create unattended. Always fully test your new designs under close supervision. Always remove the battery from Create or remove the ePort add-on circuitry from Create before handling it. Never touch the circuitry with the power turned on. Enclose your add-on circuitry so it is not inadvertently shorted during operation.
• The Vcc and Vpwr supplies are protected by a self-resetting fuse within Create. If you exceed the current ratings, power Create off for 30 seconds to reset the fuse.



iRobot Command Module Owner’s Manual
Introduction ...........................................................................................5 1.1 Anatomy .........................................................................................5 1.2 Overview ........................................................................................5 1.3 Example applications ......................................................................5
. Getting started ..................................................................................6 2.1 Plugging in the Command Module ....................................................6 2.2 Running the preinstalled drive demo program ................................6 2.3 Installing the development tools ......................................................7 2.4 Installing the USB serial port ...........................................................8
. Your First Project ...............................................................................10 3.1 Developing for the Command Module ...............................................10 3.2 Setting up anew project ..................................................................10 3.3 Compiling your project .....................................................................11 3.4 Downloading your project over the USB link ......................................12 3.5 Testing the input example program ................................................13 3.6 Creating your own project ................................................................14 4. software reference ............................................................................15 4.1 Declaring and using variables and registers on the ATMega168 .........15 4.2 IO Pin Basics ................................................................................15 4.3 The Command Module’s connectors ................................................15 4.4 The Digital IO control registers .......................................................16 4.5 DDRx: Setting the direction of a pin ..................................................16 4.6 PORTx: Setting pullups on an input pin .............................................16 4.7 PORTx: Setting the state of an output pin .........................................16 4.8 PINx: Reading the state of an input or output pin ..............................16 4.9 Using bitwise operators to selectively change bit values Table of Contents


4
iRobot Command Module Owner’s Manual Command Module Internal Pins .....................................................17 4.11 Adding a button and LED to the input example program ...................18 4.12 Taking an analog measurement using the ADC ................................18 4.13 Using an analog measurement in the light example program ............19 4.14 Using a timer ................................................................................20 4.15 Debouncing a Button Input ............................................................21 4.16 Setting up and using the serial port ...............................................22 4.17 Using the USB Port for Serial Debugging ........................................23 4.18 Powering Create ...........................................................................23 4.19 Putting the Command Module to Sleep ...........................................24 5. Open Interface reference ...................................................................5 5.1 Starting the Open Interface .............................................................25 5.2 Changing the baud rate ...................................................................25 5.3 Controlling Creates LEDs ................................................................26 5.4 Composing and playing songs ..........................................................26 5.5 Moving Create ................................................................................27 5.6 Controlling Creates low-side power drivers .......................................27 5.7 Sending an Infrared Character .........................................................28 5.8 Reading Creates sensors ...............................................................28 6.microcontroller reference .....................................................................9 7. Bootloader reference ..........................................................................0 8. Hardware reference ............................................................................1 8.1 ePort Pinouts .................................................................................31 8.2 ePort IO connections .....................................................................31 8.3 ePort connection types and interfacing .............................................32 8.4 ePort electrical specifications ..........................................................33 8.5 ePort safety and cautions ................................................................33 8.6 Component Suppliers ......................................................................34


5
iRobot Command Module Owner’s Manual Introduction
1.1
anatomy
LED LED Top Left ePort
USB Indicator
USB
Hold Down Screws
Soft Button
Reset
Top Center ePort
Power LED
Power Switch
Cargo Bay ePort
Top Right ePort iRobot Create Connector
(under the Command Module)
1.2
Overview
The iRobot Command Module works with iRobot Create, giving you away to write your own programs in Cor C+ to control Create and to add custom hardware to expand Creates capabilities without tethering the robot to a PC.
The Command Module plugs into Creates Cargo Bay Connector, and it has four expansion ports that provide additional inputs and outputs for your custom hardware. Three of the connectors are on the top surface, spaced to provide easy attachment points for an array of sensors, and one connector is on the back for easy access from the cargo bay. The Command Module is powered by an Atmel AVR
ATMega168 microcontroller which can be reprogrammed by downloading programs from your Windows XP computer with the included USB cable. Your programs can use the iRobot Open Interface serial protocol to control Creates motors, lights, and speaker, and read its sensors. At the same time, the microcontroller can directly interface with your own custom hardware through its IO connections. Start with one of the example programs and expand and change it to add your own functionality. Updates and more information are available at www.irobot.com/create.
This manual assumes intermediate knowledge of the Cor C+ programming languages, including bitwise operators. If you don’t know either of these languages, pickup a book on C from a library or bookstore. You can also find a lot of good reference materials and tutorials online by searching for C language in an internet search engine. The manual also assumes a basic familiarity with microcontrollers, including IO pins, registers, and interrupts, as well as experience with compilers and interactive development environments (IDEs).
For more information on how to use the Command Module’s software capabilities, please seethe Software Reference chapter and the Open Interface reference guide found at www.irobot.com/create.
1.3
example applications
Whether you area hacker, educator, or robotics hobbyist, the Command Module opens many exciting possibilities. The applications are limited only by your imagination:
• Teach robotics and programming at high schools or universities. iRobot Create is a robust, affordable robotic platform that enables students to each have their own robot.
• Add new sensors and carryout your own robotics experiments. Create a low-cost swarm of robots to investigate collective behavior.
• Have fun with robot art exhibits, song and dances or other entertaining behaviors. Add a camera and internet connection to create a low cost sentry robot.


6
iRobot Command Module Owner’s Manual
2.1
Plugging in the irobot Command module
Turn off Create.
Plug the Command Module into the Creates Cargo Bay Connector as shown in Figure 1. Make sure it is firmly seated. Command
Module
Cargo Bay Connector iRobot Create



Share with your friends:
  1   2   3   4   5   6   7   8   9


The database is protected by copyright ©userg.info 2017
send message

    Main page

bosch
camera
chevrolet
epson
fiat
Honda
iphone
mitsubishi
nissan
Panasonic
Sony
volvo
yamaha