© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Remote Communication.

Slides:



Advertisements
Similar presentations
Wireless network Usually use Radio Frequency (RF) technology Adv :
Advertisements

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Tree Surveying Existing Design.
Robot Soccer Challenge
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Automated Mining Project.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Choose a Sensor.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Guard Robot Project.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System One-Way Communication.
Introduction to Sensors
Remote Control Using Bluetooth. 1. Give two examples of electrical connections. 2. What is the difference between wired and wireless connections? 3. What.
What Is Bluetooth? How Does It Differ from a Wired Connection?
Computer Architecture Ports.  There are lots of external devices that you can connect to your computer. All external devices connect to the computer’s.
Smartphones. Lesson Objectives To understand and demonstrate an understanding of Smartphones.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
Dr. Wenbin Luo Engineering Department St. Mary’s University San Antonio, TX June 9, 2012.
Wireless Networking 102.
Robotics Catchup/Review: switch, arithmetic, range, loop Bluetooth Lab: Finish parallel parking. Next: Use Bluetooth communication for calculate & send.
Networks CSCI-N 100 Dept. of Computer and Information Science.
Methods of communication
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Tree Measurer Project.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Scanning and.
Infrared is used on mobile phones and barcode scanners and in photography. On a phone infrared is used to send and receive data from one phone to another,
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
Introduction to the Basic Parts of LEGO’s NXT Robotics
2-3 note. 2 Peripheral Devices “Peripheral devices” are hardware plugged into ports or connected to a computer wirelessly. These devices can be for input,
NETWORK TOPOLOGIES There are three basic configurations used to connect computers they are the  Bus  Ring  Star.
Information Technology Lecture No 3 By: Khurram Shahid.
Unit 1—Computer Basics Lesson 7 Networks.
Computer Concepts 2014 Chapter 5 Local Area Networks.
Chapter 8: Mobile Computing BY Chasity Cummings Cummings 1.
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Use bluetooth for communication 1. enable bluetooth in NXT and also enable visibility 2. configure setting in brickCC –Wait about 30 seconds for searching.
Bluetooth Communication Module 3. Warm Up SWQ: 30 – Oct. – 2013 Give examples where Bluetooth technology is used What is the range for the Bluetooth ?
Overview: The goal of this lesson is to transition from discussing robots in general to the specifics of NXT robot. Objectives: Students will be able.
Real-Time Data through Data Hubs. Begin by adding a basic Move block, 5 rotations 75% power.
Blue Tooth Communication ROBOTICS – ll MODULE 4. Set up a Bluetooth connection between two NXTs. Send/receive messages wirelessly using send/receive message.
Sentry System Multiple Sensors
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Modems How They Work. Modem A device used by a PC to communicate over a phone line or cable A device used by a PC to communicate over a phone line or.
Unit 1—Computer Basics Lesson 1 Understanding Computers and Computer Literacy.
Data Communication and Networks Chapter 5. What’s a Network? a network consists of two or more computers that are connected together to share information.
Understand how a router works and its purpose
Lesson 7 Networks Unit 1—Computer Basics. Computer Concepts BASICS - 2 Objectives Describe the benefits and disadvantages of networks. List and describe.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 9 Networks and Communications.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
CHAPTER 8 Communication and Network Copyright © Cengage Learning. All rights reserved.
Mobile Robots Why do robots need to move?. What defines a robot? Sense – a robot has to take in information about its environment Plan – a robot has to.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Integration.
Network types Point-to-Point (Direct) Connection Dedicated circuit boards connected by cable; To transfer data from A to B: – A writes on its circuit board;
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Networking Objectives
Remote Control Using Bluetooth
Exploring Computer Science Lesson 6-5
Introduction to Wireless Technology
Introduction To Programming with LEGO NXT 2
Robot Soccer Challenge
Sensors Training.
Displaying sensor values while a robot is running
Exploring Computer Science Lesson 6-5
Forward Until Touch Robot goes forward until it hits a wall.
Storing Values as Variables
Warm Up- What is a robot? Describe in one sentence what you understand by the term ‘robot’ 2. What are the main parts of a robot? What do people do to.
Lego EV3 Mindstorms SW Programming Blocks.
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Remote Communication See Teacher Guide for printing instructions

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Opening Activity Identify five different ways you can get a message to someone in the next room. What are some advantages and disadvantages of the different methods?

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Opening Activity Walk over and talk Walk over and deliver a note by hand Write a note and throw it through a window Call using a telephone Yell through the wall Tap out a signal on the wall using morse code Yell to someone in the hall, and have that person yell it to the person in the other room Some possible methods:

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Opening Activity Speed? Privacy? Reliability? Complexity? Advantages and Disadvantages…

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Electronic Communication Computers need to get messages back and forth to each other Traditionally, computers are connected electronically through special wires that are used to carry the messages as electronic signals Computers connected in this way form a network When you plug your NXT in to your desktop or laptop computer using USB, you are essentially forming a tiny network! NXT Wired to PC This NXT communicates with the PC through its USB connection. The PC is also connected to other PCs in the room using an Ethernet network connection.

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Wireless Networks Recent developments in computer-to-computer communication involve networks without wires These technologies allow electronic devices to communicate using radio signals through air instead of electricity in a wire There are many different wireless technologies with various capabilities in terms of speed, range, privacy, robustness, and many other characteristics Mobile Phone This mobile phone actually communicates using two different wireless methods: one (GSM) for telephone calls, and a second (Bluetooth) to interface with the headset Placeholder for: Cell phone with Bluetooth headset

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Bluetooth One of these wireless technologies is called Bluetooth™ The NXT uses Bluetooth In the NXT system, Bluetooth can be used for communicating: –Between two NXTs –Between a desktop computer and an NXT We will be focusing on the NXT-to-NXT communication aspect for this activity NXT Bluetooth These two NXTs are connected using Bluetooth

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 NXT Bluetooth NXTs connected by Bluetooth can send messages back and forth to each other 1.Establish connection between NXTs 2.Send message from one NXT 3.Receive message on other NXT See Advanced > Bluetooth section… –Bluetooth Overview –Sending and Receiving Messages

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 NXT Bluetooth For this activity, you will write a program that sends sensor data from your NXT to your partner’s NXT –Your group will write both programs –You will load your Sender program on your own NXT –Your will load your Receiver program on your partner group’s NXT (SHARE!) –You and your partner must agree on whose NXT will initiate the Bluetooth connection, and always start the connection from that NXT in the future

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 NXT Bluetooth The Bluetooth connection must be established manually before programs can use the Send or Receive Message blocks –When communicating by Bluetooth, one NXT always “contacts” the other first to establish a Connection –Data “messages” can then be sent back and forth Send Message Block This block sends a message from one NXT… Receive Message Block …then this block receives it on a second NXT.

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Remote Communication: Technical Review Data Hubs & Wires Display Block Bluetooth Send & Receive Loops

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Data Hubs & Wires Many blocks have data hubs which can be opened by clicking the notch in the lower-left corner of the block. A data hub contains many data plugs, which allow information to flow in and out of the block. Data wires control the flow of data between blocks. Output plugs typically send out a sensor value, or the result of a computation. Such information usually goes into another block’s input plug, allowing the reading or result to be used as a value inside the block. Speed Controlled by Sensor Ultrasonic Sensor distance output plug controls the value of the Move Block’s power setting

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Display Block: Number The Display Block displays images or text on the NXT’s LCD display. The Display Block does not have built-in support for displaying Numbers. In order to display a Number, you must first convert it to Text using the Number to Text Block. The Display Block must also be configured to display Text, or it will ignore the wired-in value. Display (Local) Ultrasonic Sensor Value Ultrasonic Sensor on Port 4’s reading is converted to Text then displayed on the NXT’s LCD screen

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Bluetooth: Send Message The Send Message and Receive Message blocks work together to allow information to get from one NXT to another. Using Bluetooth in a program requires two NXTs connected in advance. The Send Message block is used to send data from the NXT where it is run, over a specified Connection Number, and places it in a mailbox (also specified in the Send block) on the destination NXT. Send Ultrasonic Sensor Value The Ultrasonic sensor value is read (once) and sent into Mailbox 1 on the NXT on the other end of Connection Number 1. We assume the Connection has been set up before running. More information about Bluetooth Messages can be found in Advanced > Bluetooth > Sending and Receiving Messages

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Bluetooth: Receive Message The Send Message and Receive Message blocks work together to allow information to get from one NXT to another. Using Bluetooth in a program requires two NXTs connected in advance. The Receive Message block retrieves a message from a specified mailbox. This also removes the message from the mailbox. Receive and Display Wait 3 seconds to give time for a message to arrive, then display the value of the Number message in Mailbox 1 on the NXT’s view screen for 5 seconds More information about Bluetooth Messages can be found in Advanced > Bluetooth > Sending and Receiving Messages

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Infinite Loop The Loop Block runs the blocks inside it over and over again, until a certain stopping condition is met. The infinite loop or “forever” loop has no stopping condition, and therefore will repeat the blocks inside over and over, forever. Back and Forth The loop causes the robot to repeat the forward-then-back motion forever

© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Electronic devices communicate through both wired and wireless means NXTs use Bluetooth wireless communication to send and receive messages to and from other NXTs Summary You must connect two NXTs using the Bluetooth menus before you can use Send and Receive blocks in your programs One NXT will run a program with a Send Message block, then the other will use a Receive Message block to retrieve the data See the Advanced > Bluetooth section for more information